I am trying to update my mac to the latest ruby.
I follow the instructions on Hivelogic
Dan Benjamin. I compiled Ruby from
source but when I do ruby -v I get ruby 1.8.7 (2009-06-12 patchlevel
174) [universal-darwin10.0]. Not the latest. I didn’t get any errors
when I compiled. Anybody else run into this problem?
Thanks,
Aaron B. Allison
On Mon, Dec 20, 2010 at 9:20 PM, Aaron A. [email protected]
wrote:
I am trying to update my mac to the latest ruby.
I follow the instructions on Hivelogic
Dan Benjamin. I compiled Ruby from
source but when I do ruby -v I get ruby 1.8.7 (2009-06-12 patchlevel
174) [universal-darwin10.0]. Not the latest. I didn’t get any errors
when I compiled. Anybody else run into this problem?
Try:
/usr/local/bin/ruby -v
Also, take a look at Homebrew and RVM.
On Dec 20, 2010, at 6:20 PM, Aaron A. wrote:
I follow the instructions on Hivelogic
Dan Benjamin. I compiled Ruby from
source but when I do ruby -v I get ruby 1.8.7 (2009-06-12 patchlevel
174) [universal-darwin10.0]. Not the latest. I didn’t get any errors
when I compiled. Anybody else run into this problem?
See the thread…
http://www.ruby-forum.com/topic/217777
Hivelogic’s instructions regarding .profile are wrong.
Jose
…
Jose Hales-Garcia
UCLA Department of Statistics
Looking over the directions it looks like you must have copied and
pasted the commands which in fact will give you patchlevel 174.
Might I suggest if you want to compile by hand that you download the
tar file for the version you want and read the instructions with that
file.
Of course you can always use macports or rvm to automate the process.
~
You will need to set up your shells path to use it btw. if you type
which ruby
it will most likely show /usr/bin/ruby and not /usr/local/bin/ruby
Seriously you should (for the sake of just knowing) try installing it
by hand some time.
Simply download the ruby you want from:
ftp://ftp.ruby-lang.org/pub/ruby/
in this case: ftp://ftp.ruby-lang.org//pub/ruby/1.9/
untar the file with : tar -xzvf
open the directory and read README
it has the instructions right there with the source.
~
You could try RVM (Ruby version manager -
http://rvm.beginrescueend.com/ ) for installing Ruby.
unknown wrote in post #969703:
On Mon, Dec 20, 2010 at 9:20 PM, Aaron A. [email protected]
wrote:
I am trying to update my mac to the latest ruby.
I follow the instructions on Hivelogic
Dan Benjamin. I compiled Ruby from
source but when I do ruby -v I get ruby 1.8.7 (2009-06-12 patchlevel
174) [universal-darwin10.0]. Not the latest. I didn’t get any errors
when I compiled. Anybody else run into this problem?
Try:
/usr/local/bin/ruby -v
Also, take a look at Homebrew and RVM.
Thanks. It reads ruby 1.9.2p0 (2010-08-18 revision 29036)
[x86_64-darwin10.5.0]
Now when I do ruby -v it reads ruby 1.9.2p0 (2010-08-18 revision 29036)
[x86_64-darwin10.5.0]
Thanks for everyone’s help. I updated another mac with snow leopard. I
think I didn’t update the path correctly the first time. I will look
into RVM.
On Tue, Dec 21, 2010 at 10:50 PM, Konstantinos P.
[email protected] wrote:
You could try RVM (Ruby version manager - http://rvm.beginrescueend.com/ )
for installing Ruby.
I recommand you using RVM as well, it’s really great