Newb Tales with Ruby on Rails – Set Up Woes

I’m using Ubuntu 10.4 and have managed to get a rails environment up and running. It took some Googling and messing around, but it’s working now!

So I started a new application:

rails new <project name> -d=mysql

That managed to setup my project files.

Then I thought I’d get my webrick web server up and running

rails server

That didn’t work. ┬áTry running bundle install says the terminal.

bundle install
This could take a while...

That failed. So I found a spot where I had to do the following. Though I though I did this, I did it again. What’s the harm right?

sudo apt-get install libmysql-ruby libmysqlclient-dev

The I did

gem install rails
bundle install
gem install mysql

With all this, I then did

rails server

and whalah, I go to localhost:3000 and it works. Finally. Though I may have performed some redundant steps, I’m ready to go now. Live and learn.

Leave a Reply

Your email address will not be published. Required fields are marked *