1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

rvm : anyone got that work

Discussion in 'Installation and Maintenance of Ports or Packages' started by roelof, Sep 13, 2012.

  1. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    Hello,

    I installed rvm in a jail by starting the jail and then type the command to install rvm.
    But when I try to start it I always get a command not found error message.

    Did anyone succeed in running rvm in a freebsd jail? if so, how did you do it?

    Roelof
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,368
    Likes Received:
    0
  3. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    I tried with no luck. I find out that the problem can be that rvm is a bash programm where the standard shell is csh in FreeBSD.
     
  4. mamalos

    mamalos New Member

    Messages:
    427
    Likes Received:
    0
    OK, then you should install shell/bash inside the jail. Maybe, you should be managing your jail by giving:

    # jexec JID bash

    as well.
     
  5. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,368
    Likes Received:
    0
    It's not. It's written in C++.
     
  6. mamalos

    mamalos New Member

    Messages:
    427
    Likes Received:
    0
    Do a:

    # pkg_info -L rvm\*

    and see where the binary is located (it should be somewhere in /usr/local/bin, so I don't understand why you don't see it - check your PATH environmental variable), and run it by giving the full path. There is no reason for this to fail, except if the port has not been correctly installed.


    PS You haven't mentioned what command you had used when you installed rvm...
     
  7. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    Hello,

    Thanks for the help so far.

    # pkg_info -L rvm\* gives this output:
    Code:
    pkg_info: can't find package 'rvm*' installed or in a file!
    
    Which can be right because I had rvm installed by this command # curl -L https://get.rvm.io | bash -s stable as said on this page : https://rvm.io/rvm/install/

    # find / -iname rvm gives this output:
    Code:
    /usr/local/rvm
    /usr/local/rvm/src/rvm
    /usr/local/rvm/src/rvm/binscripts/rvm
    /usr/local/rvm/src/rvm/lib/rvm
    /usr/local/rvm/src/rvm/scripts/rvm
    /usr/local/rvm/bin/rvm
    /usr/local/rvm/scripts/rvm
    /usr/local/rvm/lib/rvm
    
    Roelof
     
  8. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,368
    Likes Received:
    0
  9. roelof

    roelof New Member

    Messages:
    274
    Likes Received:
    0
    Sorry, but archivers/rvm is not the same as what I'm lookimg for.
    I'm lookig for Ruby Version Manager.
     
  10. chatwizrd

    chatwizrd New Member

    Messages:
    205
    Likes Received:
    0