From: Ralf Mueller Date: 2009-12-08T15:53:19+09:00 Subject: Re: Install ruby 1.9.1 Ruby Freak wrote: > I spent an hour trying to find reasonable instructions on how to > install ruby 1.9.1 as a standalone ruby instance. Everything seems to > be directed at side-by-side 1.8/1.9 installation. > Hi! > I found this in some ad swamp, but it was sadly more appropriate than > anything else I could find on the web that wasn't apt-get ruby.(1.8.7) > > ruby 1.9.1 is installed in opt/ruby but the system doesn't know about > it. > opt/ruby/bin/ruby -v works, but ruby -v tells me ruby isn't installed. > > I guess I need to put ruby in the path or create a symlink or > something, but I am not sure what to do. > Looks like, you using some kind of debian based system...for which /opt is made for 'foreign' software like Adobe-Reader. /opt/bin has to be added to the PATH-variable. Depending on which kind of shell you use, or if this ruby installation should be accessible for all users, you should edit ~/.bashrc or ~/.zshrc (enable ruby only for you) bashrc: PATH=/opt/bin:$PATH zshrc: path=(/opt/bin $path) or /etc/profile or a single script under /etc/profile.d/ (for all user) It all depends on you operating system. apt-get is quite comfortable despite of the fact, that ruby (like any another reasonable composed software) is debianized, i.e. hacked into tiny little packages. Do you need a special ruby version? regards ralf