Forums General

Want to update RubyStack to Rails 2.1.0

Subscribe to Want to update RubyStack to Rails 2.1.0 5 post(s), 3 voice(s)

 
Avatar euwero 5 post(s)

Hi, I’m running Rails 2.0.2 installed from bitnami-rubystack-1.1-0-linux-installer on a Linux pc 2.6.24-etchnhalf.1-486 #1 Mon Jul 21 10:36:16 UTC 2008 i686 GNU/Linux machine.
I tried to update Rails as described here: http://bitnami.org/forums/forums/19/topics/509.
After a few minutes it seems like all to be done well. Now I tried rails -v and got errors like missing ‘require’ ...
Can someone help please.
Kind regards
Eugen

 
Avatar carlos 8 post(s)

Hi, can you try the following ?

Install rails 2.1 (just to be sure that all dependencies have been installed):

<installation_directory>/ruby/bin/gem install rails -v2.1.0

And modify the first line of file <installation_directory>/ruby/bin/rails from

#!<installation_directory>/ruby/bin/ruby
to
#!/usr/bin/env <installation_directory>/ruby/bin/ruby

I hope it helps you

 
Avatar euwero 5 post(s)

Hi, thank you so much for your help. Now bitnami-rubystack-1.1-0 works with rails 2.1.0 for me and I’m very glad.
Kind regards
Eugen

 
Avatar thunderkel 6 post(s)

does this procedure word on windows as well ?

 
Avatar carlos 8 post(s)

On windows it should be enough to run:

c:\<installation_diretory>\ruby\bin\ruby gem install rails -v2.1.0
or better
gem install rails -v2.1.0
inside the rubyconsole.

Is not necessary to modify rails file in this case.

Forums General