I installed ruby from Ubuntu a week ago but it seems that I have version
1.8:
$ruby --version
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
The book ‘Ruby P.ming Language’ I am studying (very good
is from
2008 and talks about 1.9 (versus 1.8). Do I need to re-install?
datura
#2
On Fri, May 27, 2011 at 3:25 PM, Agent M. [email protected]
wrote:
I installed ruby from Ubuntu a week ago but it seems that I have version
1.8:
$ruby --version
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
The book ‘Ruby P.ming Language’ I am studying (very good
is from
2008 and talks about 1.9 (versus 1.8). Do I need to re-install?
http://www.lmgtfy.com/?q=ubuntu+ruby+1.9
In case this gets lost in the plethora of links for this issue (and
you don’t use RVM): Substitute the book’s use of ruby and irb with
ruby19 / irb19.
–
Phillip G.
A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
– Leibnitz
datura
#3
Thank you! I did a successfull
$ sudo apt-get install ruby1.9.1-full
from the command line and changed the
symbolic links for ruby and irb in the
/usr/bin/ directory to point to the proper
files
$ ruby -version
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]