I''ve experienced the common OS X problem of getting ruby 1.6.8 when typing ruby -v in Terminal. I tried to follow the instructions on http://wiki.rubyonrails.com/rails/show/SettingYourPath to solve the problem but this presupposes the bash shell, and I have the default tcsh. Using sudo niutil, I tried to switch to bash, but "echo $SHELL still gives me "/bin/tcsh". Thinking that maybe I need to download and install bash I tried to do so, but got an error when trying to compile it. So I decided to press on regardles and typed in all the commands listed. Unfortunately, after opening a new terminal window and typing ruby -v, I still get the answer "ruby 1.6.8". Any ideas what I can do? Thanks in advance, Rickl
On 17.3.2005, at 13:03, rickla wrote:> I''ve experienced the common OS X problem of getting ruby 1.6.8 when > typing ruby -v in Terminal. I tried to follow the instructions on > http://wiki.rubyonrails.com/rails/show/SettingYourPath to solve the > problem but this presupposes the bash shell, and I have the default > tcsh. Using sudo niutil, I tried to switch to bash, but "echo $SHELL > still gives me "/bin/tcsh". > > Thinking that maybe I need to download and install bash I tried to do > so, but got an error when trying to compile it. So I decided to press > on regardles and typed in all the commands listed. Unfortunately, > after opening a new terminal window and typing ruby -v, I still get > the answer "ruby 1.6.8". Any ideas what I can do?I don''t think you have to compile bash, it should be around by default. Try launching NetInfo Manager from Applications/Utilities, go to users/yourname, and see what the ''shell'' property contains. Chances are that you''ve still got tcsh there. Change that line to /bin/bash and you should be using bash in no time. //jarkko> > Thanks in advance, > Rickl > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Jarkko Laine http://jlaine.net http://odesign.fi _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
> I''ve experienced the common OS X problem of getting ruby 1.6.8 when > typing ruby -v in Terminal. I tried to follow the instructions on > http://wiki.rubyonrails.com/rails/show/SettingYourPath to solve the > problem but this presupposes the bash shell, and I have the default > tcsh. Using sudo niutil, I tried to switch to bash, but "echo $SHELL > still gives me "/bin/tcsh". > > Thinking that maybe I need to download and install bash I tried to do > so, but got an error when trying to compile it. So I decided to press > on regardles and typed in all the commands listed. Unfortunately, > after opening a new terminal window and typing ruby -v, I still get > the answer "ruby 1.6.8". Any ideas what I can do?The instructions on http://wiki.rubyonrails.com/rails/show/SettingYourPath are also for tcsh, I just followed them 5 minutes ago and everything worked like a charm. You have to look at the lower half of the page: " For csh or tcsh....."> Thanks in advance, > RicklGreets, Jonathan
Another solution if you are not going to use ruby 1.6 for some time is to remane the ruby 1.6 binary to ruby1.6. This will keep it form getting used regardless unless you type: ~$ ruby1.6 This way when you type: ~$ ruby it will use 1.8 if it is also called ruby and it is anywhere in your $PATH. Regards- -Ezra On Mar 17, 2005, at 4:10 AM, Jonathan Weiss wrote:>> I''ve experienced the common OS X problem of getting ruby 1.6.8 when >> typing ruby -v in Terminal. I tried to follow the instructions on >> http://wiki.rubyonrails.com/rails/show/SettingYourPath to solve the >> problem but this presupposes the bash shell, and I have the default >> tcsh. Using sudo niutil, I tried to switch to bash, but "echo $SHELL >> still gives me "/bin/tcsh". >> >> Thinking that maybe I need to download and install bash I tried to do >> so, but got an error when trying to compile it. So I decided to press >> on regardles and typed in all the commands listed. Unfortunately, >> after opening a new terminal window and typing ruby -v, I still get >> the answer "ruby 1.6.8". Any ideas what I can do? > > The instructions on > http://wiki.rubyonrails.com/rails/show/SettingYourPath > are also for tcsh, I just followed them 5 minutes ago and everything > worked > like a charm. > > You have to look at the lower half of the page: > " For csh or tcsh....." > >> Thanks in advance, >> Rickl > > Greets, > Jonathan > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-Ezra Zygmuntowicz Yakima Herald-Republic WebMaster 509-577-7732 ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
If you use this package... http://homepage.mac.com/discord/Ruby/ Ruby_1.8.2_Stable.dmg to install ruby 1.8 it will do it all for you. On 18/03/2005, at 12:03 AM, rickla wrote:> I''ve experienced the common OS X problem of getting ruby 1.6.8 when > typing ruby -v in Terminal. I tried to follow the instructions on > http://wiki.rubyonrails.com/rails/show/SettingYourPath to solve the > problem but this presupposes the bash shell, and I have the default > tcsh. Using sudo niutil, I tried to switch to bash, but "echo $SHELL > still gives me "/bin/tcsh". > > Thinking that maybe I need to download and install bash I tried to do > so, but got an error when trying to compile it. So I decided to press > on regardles and typed in all the commands listed. Unfortunately, > after opening a new terminal window and typing ruby -v, I still get > the answer "ruby 1.6.8". Any ideas what I can do? > > Thanks in advance, > Rickl > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Thanks for the many helpful messages. Someone is really on the ball because the instructions for that csh or tsh on the lower half of the page appeared after I sent in this email. Unfortunately, after following the instructions I still get ruby 1.6.8. Maybe the new Ruby was supposed to be put somewhere specific on my hard drive? I think I''ll try Ezra''s trick of renaming ruby 1.6.8. next. Thanks again, everyone, Rickl> > I''ve experienced the common OS X problem of getting ruby 1.6.8 when > > typing ruby -v in Terminal. I tried to follow the instructions on > > http://wiki.rubyonrails.com/rails/show/SettingYourPath to solve the > > problem but this presupposes the bash shell, and I have the default > > tcsh. Using sudo niutil, I tried to switch to bash, but "echo $SHELL > > still gives me "/bin/tcsh". > > > > Thinking that maybe I need to download and install bash I tried to do > > so, but got an error when trying to compile it. So I decided to press > > on regardles and typed in all the commands listed. Unfortunately, > > after opening a new terminal window and typing ruby -v, I still get > > the answer "ruby 1.6.8". Any ideas what I can do? > > The instructions on http://wiki.rubyonrails.com/rails/show/SettingYourPath > are also for tcsh, I just followed them 5 minutes ago and everything worked > like a charm. > > You have to look at the lower half of the page: > " For csh or tcsh....."