Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System wide rvm_shell PATH on SmartOS #1238

Closed
davefinster opened this issue Oct 17, 2012 · 2 comments
Closed

System wide rvm_shell PATH on SmartOS #1238

davefinster opened this issue Oct 17, 2012 · 2 comments
Milestone

Comments

@davefinster
Copy link

When performing a deployment via capistrano using the rvm-capistrano gem, all commands are wrapped up in

rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'default' -c 'stuff to do'

One issue that I've encountered is that any gems that require native extensions and make a call out to 'make' fail to build. This is because the PATH that gets set by the rvm-shell command comes out to be:

/usr/local/rvm/gems/ruby-1.9.3-p286/bin:/usr/local/rvm/gems/ruby-1.9.3-p286@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p286/bin:/usr/local/rvm/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin

which is missing the /opt/local/gnu/bin directory, which comes through in interactive bash sessions. The monkey patch was simply to add

PATH=$PATH:/opt/local/gnu/bin

to /etc/rvmrc but I'm not sure if that is the best way to handle this.

I'll also add that capistrano is executing the deployment under the same user account that I'm logged in as interactively.

@ghost ghost assigned mpapis Oct 17, 2012
@mpapis
Copy link
Member

mpapis commented Oct 17, 2012

if PATH=$PATH:/opt/local/gnu/bin is standard SmartOS then RVM can automatically add it.

@davefinster
Copy link
Author

Sorry for the late reply - Yes that is the standard location for all GNU based implementations of the build tools.

@mpapis mpapis closed this as completed in d4eed1b Nov 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants