rvm : anyone got that work

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

rvm : anyone got that work

Postby roelof » 13 Sep 2012, 07:11

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
roelof
Member
 
Posts: 274
Joined: 28 Dec 2008, 16:18

Postby SirDice » 13 Sep 2012, 08:18

Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby roelof » 13 Sep 2012, 10:51

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.
roelof
Member
 
Posts: 274
Joined: 28 Dec 2008, 16:18

Postby mamalos » 13 Sep 2012, 11:09

OK, then you should install [port]shell/bash[/port] inside the jail. Maybe, you should be managing your jail by giving:

[CMD="#"]jexec JID bash[/CMD]

as well.
mamalos
Member
 
Posts: 427
Joined: 18 Mar 2009, 12:17
Location: Greece

Postby SirDice » 13 Sep 2012, 11:28

roelof wrote:I find out that the problem can be that rvm is a bash programm where the standard shell is csh in FreeBSD.

It's not. It's written in C++.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby mamalos » 13 Sep 2012, 11:36

Do a:

[CMD="#"]pkg_info -L rvm\*[/CMD]

and see where the binary is located (it should be somewhere in [FILE]/usr/local/bin[/FILE], so I don't understand why you don't see it - check your [FILE]PATH[/FILE] 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...
mamalos
Member
 
Posts: 427
Joined: 18 Mar 2009, 12:17
Location: Greece

Postby roelof » 13 Sep 2012, 11:50

Hello,

Thanks for the help so far.

[CMD="#"]pkg_info -L rvm\*[/CMD] gives this output:
Code: Select all
pkg_info: can't find package 'rvm*' installed or in a file!


Which can be right because I had rvm installed by this command [CMD="#"]curl -L https://get.rvm.io | bash -s stable[/CMD] as said on this page : https://rvm.io/rvm/install/

[CMD="#"]find / -iname rvm[/CMD] gives this output:
Code: Select all
/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
roelof
Member
 
Posts: 274
Joined: 28 Dec 2008, 16:18

Postby SirDice » 13 Sep 2012, 12:19

Remove that stuff and use [port]archivers/rvm[/port].

Handbook: Chapter 5 Installing Applications: Packages and Ports
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby roelof » 13 Sep 2012, 12:37

Sorry, but [port] archivers/rvm [/port] is not the same as what I'm lookimg for.
I'm lookig for Ruby Version Manager.
roelof
Member
 
Posts: 274
Joined: 28 Dec 2008, 16:18

Postby chatwizrd » 13 Sep 2012, 23:22

Wouldn't it be because [FILE]/usr/local/rvm/bin[/FILE] is not in $PATH ?

You will have to append [FILE]/usr/local/rvm/bin[/FILE] to your $PATH or put the full path to the program to start it.

http://superuser.com/questions/224974/how-do-i-add-a-location-to-my-path-in-unix
chatwizrd
Member
 
Posts: 197
Joined: 19 Jul 2012, 17:40


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 0 guests