- Run "sudo apt-get install zlib1g zlib1g-dev" in a terminal window
- Install the Ruby Version Manager (rvm) from these instructions
- Run "rvm requirements" in a terminal window
- Install all the packages the output of "rvm requirements" tells you to install (apt-get install...). You must do this before you start installing any rubies with rvm. If you don't, you may have all sorts of problems crop up later, like weird messages from irb ("Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.")
- Do the following in a terminal window:
rvm install 1.9.3-p194
rvm --default 1.9.3
-p194
gem install rails
sudo apt-get install sqlite
sudo apt-get install libsqlite3-dev libmysqlclient-dev
sudo apt-get install nodejs
Now create an application to test:
rails new testapp
cd testapp
rails server
Browse to localhost:3000 and you should see the Rails default page.
Instead of "rvm 1.9.3-p194" i used "rvm install 1.9.3-p194"
ReplyDeleteThank very much! Greatful Tutorial.
Thanks, Raul. I've fixed the line. I'm glad the post helped you.
ReplyDelete