2012-01-17

Installing Ruby on Rails 3 on Ubuntu 11.10

I followed the directions in this blog
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

It works except for a problem that the single-user install kept going to /usr/share/ruby-rvm
http://stackoverflow.com/questions/8402827/installing-rvm-on-ubuntu
(I had the same problem -- I forgot to uninstall the package)
sudo apt-get --purge remove ruby-rvm 


After doing this I could install without any problems.


But, when I tried to run it. I ran into more problems.
1) Problem with zlib and sqlite3.
    you need to check what other libraries you need to apt-get by using
    rvm requirements


2) Need to modify gemsfile to include gem 'execjs' and gem 'therubyracer'
    And run bundle install again.


3) After that rails server worked.


This blog provided a very comprehensive instructions on how to setup rails on ubuntu 11.10.
http://rails.vandenabeele.com/

No comments:

Post a Comment

Github CoPilot Alternatives (VSCode extensions)

https://www.tabnine.com/blog/github-copilot-alternatives/