Hi, I''m trying to have rails set up a basic web app structure (e.g. run ''rails test_app''), but I only get the message ''Rails requires Ruby 1.8.2''. I''ve just installed rails 0.11.1 via gem, everything fine so far. I also installed ruby 1.8.2 from http://homepage.mac.com/discord/Ruby/, and changed the path accordingly. Typing ''which ruby'' returns the right path (/usr/local/bin/ruby), and ruby -v returns 1.8.2. I''m running Panther 10.3.8. I also use all the fink stuff, and my rails resides in /sw/bin/. I can''t find a solution to this problem in the archives or elsewhere on the web. Thanks! Ben
I also had similar problems. I don''t know for sure this is going to solve your issue but it was one of the things I did to make mine work. Check to see if the first line in your dispatcher (test_app/public/dispatcher.cgi) explicitly points to /usr/local/bin/ruby. If not, your might try changing that to see if it finds it then. Robert On Apr 2, 2005, at 4:38 PM, Ben wrote:> Hi, > > I''m trying to have rails set up a basic web app structure (e.g. run > ''rails test_app''), but I only get the message ''Rails requires Ruby > 1.8.2''. > > I''ve just installed rails 0.11.1 via gem, everything fine so far. I > also installed ruby 1.8.2 from http://homepage.mac.com/discord/Ruby/, > and changed the path accordingly. Typing ''which ruby'' returns the > right path (/usr/local/bin/ruby), and ruby -v returns 1.8.2. I''m > running Panther 10.3.8. I also use all the fink stuff, and my rails > resides in /sw/bin/. > > I can''t find a solution to this problem in the archives or elsewhere > on the web. > > Thanks! > > Ben > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On Saturday 02 April 2005 19:38, Ben wrote:> ''Rails requires Ruby 1.8.2''.Although you may have installed it, it is likely that Mac OS X is still finding (and using) Ruby 1.6.8 There are instructions on the wiki for how to set your PATH correctly, so that Ruby 1.8.2 will be used. Some people prefer to remove or delete ruby 1.6.8 You''ll probably have to install gems again, using Ruby 1.8.2. -- Nicholas Seckar aka. Ulysses
Thanks, guys. Robert Bousquet wrote: > Check to see if the first line in your dispatcher > (test_app/public/dispatcher.cgi) explicitly points to > /usr/local/bin/ruby. If not, your might try changing that to see if it > finds it then. This looks good to point my existing rails apps to the right version of ruby. Nicholas Seckar wrote:> > You''ll probably have to install gems again, using Ruby 1.8.2. >This did the trick.
Nicholas Seckar wrote:> > Although you may have installed it, it is likely that Mac OS X is still > finding (and using) Ruby 1.6.8 >OSX has an installation of Ruby 1.6.8 in /usr/bin The 1.8.2 installation puts it''s code into /usr/local/bin To get mine working I removed /usr/bin/ruby and then made a link in /usr/bin/ruby to /usr/local/bin/ruby After then install gems. Regards, -Mark