Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Install Ruby 1.9 alongside Ruby 1.8' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Install Ruby 1.9 alongside Ruby 1.8
Authored by: enderai on Aug 14, '09 11:13:15AM
Swapping symlinks in /usr/bin is a really bad idea, as this has a system-wide effect rather than just changing things for your user, and you need to sudo every time. A better way to get the same effect is to prepend your PATH with the bin dir where ruby 1.9 is installed:

% export PATH=$HOME/ruby1.9/bin:$PATH
% which ruby
/Users/enderai/ruby1.9/bin/ruby


[ Reply to This | # ]
Install Ruby 1.9 alongside Ruby 1.8
Authored by: lmcdougall on Aug 22, '09 10:32:03AM

Changing the links is not such an awful idea as it may sound. By doing so, you are making sure that there is no other variables affecting your development environment. In fact a similar procedure is used by Gentoo-linux and it variants. ("eselect ruby [list|set] ..").



[ Reply to This | # ]
Install Ruby 1.9 alongside Ruby 1.8
Authored by: lmcdougall on Aug 22, '09 10:37:45AM

The line:
$ patch -p0 <>
should read:
patch -p0 <readline52-012



[ Reply to This | # ]