Topic: Ruby on Rails Mac OS X Installation Guide

Hello-

I'm searching for a comprehensive, detail-oriented guide to installing Ruby on Rails and all the necessary programs on Mac OS X Version 10.4.8. I have not been able to find an updated version that covers the most basic details for a true beginner at programming. Does anyone know of any updated guides?

Re: Ruby on Rails Mac OS X Installation Guide

What's your goal? from scratch, build-it-all-yourself Rails, or just a working dev platform. If you just want to get going, try:

sudo gem install rails
sudo gem install mongrel
rails foo
cd foo
mongrel_rails start

Then point your browser to http://localhost:3000

Re: Ruby on Rails Mac OS X Installation Guide

If you are a beginner at programming in general, I recommend the Learn to Program book. It won't go into the specifics of Rails, but it will give you a great introduction into programming and (best of all) Ruby.

Railscasts - Free Ruby on Rails Screencasts

Re: Ruby on Rails Mac OS X Installation Guide

I posted link and some tips here http://railsforum.com/viewtopic.php?id=2241

Re: Ruby on Rails Mac OS X Installation Guide

For starters use Locomotive. It's a self contained packaged that includes everything you need to  start learning right away. You could manually install everything else but that'll take time away from learning RoR and put it into system administration.

Re: Ruby on Rails Mac OS X Installation Guide

JackBauer wrote:

For starters use Locomotive. It's a self contained packaged that includes everything you need to  start learning right away. You could manually install everything else but that'll take time away from learning RoR and put it into system administration.

I'd say that's a bad decision, Locomotive is great and all for a quick RoR up and running solution - but you won't be able to really get into the nitty-gritty so to say.

It's much easier to just install it on the system and then you can create files anywhere, use the terminal a lot easier and it's just an overall better experience.

http://danielfischer.com - Personal Web-Technology-Blog, Los Angeles.

Re: Ruby on Rails Mac OS X Installation Guide

Opel wrote:

I posted link and some tips here http://railsforum.com/viewtopic.php?id=2241

I agree with Opel, even though the Hivelogic tutorial was done in 2005 it is still relevant today. I used that exact tutorial only a couple of months ago to setup ruby and rails on my Mac and it went without a hitch.  The only things I did differently was to look for the latest stable gems etc.

Re: Ruby on Rails Mac OS X Installation Guide

I suppose the OP has solved his problem by now. But I'd just like to share my tip for easily installing an up-to-date development environment for both Ruby and Rails. It's really simple: install and use MacPorts. If you aren't a Unix hacker or just like installing stuff painlessly, you will love MacPorts.

It's been a while since I did the installation. So forgive me if I miss some details. After installing MacPorts, installation of Ruby and Rails should be as easy as the following:


sudo port install ruby
sudo port install rb-rubygems
sudo gem install rails

That should be it! After that you may want to explore the many other applications and utilities that MacPort provides. For example you may want to use Sqlite3 for development:


sudo port install sqlite3
sudo gem install sqlite3-ruby

You can also install MySQL using MacPorts. However, in this case I opted to use the fine Mac-installer from the people behind MySQL. The main reason is that it also provides a handy preference panel for starting/stopping the server.

One last thing. When using MacPorts, remember that you need "/opt/local/bin:/opt/local/sbin" early in your PATH. This may be done for you when installing MacPorts. I can't quite remember. I plan to do a complete reinstall of OSX soon. This time I will write all the details down and make them available somewhere.