Find the answer to your Linux question:
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By gregm
I am running Linux Mint 16 xfce on an Oracle virtual box. This is day 2 after I installed the vm, Mint, and all the upgrades. I then followed the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! tmulherin's Avatar
    Join Date
    May 2014
    Posts
    2

    Question ruby and irb are not functioning


    I am running Linux Mint 16 xfce on an Oracle virtual box. This is day 2 after I installed the vm, Mint, and all the upgrades. I then followed the instructions for installing rvm stable with ruby2.1.2 from the rvm website. I closed and reopened the terminal. irb won't launch, even when logged in as root and in the containing folder. Particulars:


    -rwxrwxr-x 1 root root 4397 May 30 18:00 erb
    -rwxrwxr-x 1 root root 546 May 30 18:00 gem
    -rwxrwxr-x 1 root root 190 May 30 18:00 irb
    -rwxrwxr-x 1 root root 1244 May 30 18:00 rake
    -rwxrwxr-x 1 root root 938 May 30 18:00 rdoc
    -rwxrwxr-x 1 root root 188 May 30 18:00 ri
    -rwxrwxr-x 1 root root 134762 May 30 17:58 ruby
    -rwxrwxr-x 1 root root 78 May 30 18:00 testrb


    /usr/local/rvm/rubies/ruby-2.1.2/bin
    $ irb
    The program 'irb' can be found in the following packages:
    * ruby1.8
    * ruby1.9.1
    Try: sudo apt-get install <selected package>


    /usr/local/rvm/rubies/ruby-2.1.2/bin
    $ ruby -v
    The program 'ruby' can be found in the following packages:
    * ruby1.8
    * ruby1.9.1
    Try: sudo apt-get install <selected package>


    I'd appreciate any guidance.
    Last edited by tmulherin; 05-31-2014 at 05:23 PM. Reason: spelling

  2. #2
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,048
    /usr/local/rvm/rubies/ruby-2.1.2/bin will need to be in your PATH variable. There's a variety of ways to accomplish that but one, if you're using bash as your shell, is to add:
    Code:
    export PATH=$PATH:/usr/local/rvm/rubies/ruby-2.1.2/bin
    to your ~/.bashrc

    You'll need to open a new shell or source it for it to take effect.
    tmulherin likes this.

  3. #3
    Just Joined! tmulherin's Avatar
    Join Date
    May 2014
    Posts
    2
    Thank you - that worked! I don't see how to close the thread though...

    TIm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •