Ruby and ri(1) ruby information

Kevin O'Gorman kogorman at gmail.com
Sat Dec 21 23:14:25 UTC 2013


On Sat, Dec 21, 2013 at 1:37 AM, Colin Law <clanlaw at gmail.com> wrote:
> On 21 December 2013 09:27, Kevin O'Gorman <kogorman at gmail.com> wrote:
>> On Sat, Dec 21, 2013 at 1:13 AM, Colin Law <clanlaw at gmail.com> wrote:
>>> ...
>>> # install dependencies
>>> sudo apt-get install build-essential bison openssl libreadline6
>>> libreadline6-dev curl git-core \
>>> zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf
>>> libc6-dev ncurses-dev automake \
>>> libtool
>>>
>>> # install rvm, ruby and rails
>>> curl -L https://get.rvm.io | bash -s stable
>>>
>>> See rvm.io for info on rvm.  The above may be a little out of date as
>>> I think rvm now includes an autolibs facility that means you don't
>>> need to manually install the dependencies, but the above should still
>>> work.
>>> When using rvm any gems install command should be run without sudo.
>>
>> So when I do the bit that says, inter alia, that it installs ruby:
>> what happens to the existing packages ruby1.9.1 and libruby1.9.1?
>
> Nothing.  It installs a new ruby in your home directory under .rvm.
> So, for example, when I run which ruby I see
> $ which ruby
> /home/colinl/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
>
> The original system ruby (if installed) will still be there but will
> not normally be used as .rvm appears in the path first.
>
> Colin

No joy.  I did all that, and I now have a .rvm directory and modified
.bashrc.  But ruby is still /usr/bin/ruby, and .rvm/bin does not
contain a replacement.

-- 
Kevin O'Gorman

programmer, n. an organism that transmutes caffeine into software.
Please consider the environment before printing this email.




More information about the ubuntu-users mailing list