Question

I have a sudo rights on my ssh user. I can not run sudo bundle install command but can run bundle install without sudo. Once I run the bundle install, Few gems get install but those who need gcc and c++ compiler I have to install in sudo permissions like sudo gem install json -v '1.8.0'.

Now if I try to run bundle that gem is not available due to installed with sudo permission.

Is there any other way to install such compiler gems without sudo?

Was it helpful?

Solution

I was not getting the right environement for installing ruby and gemsets . But rvmsudo worked for me

I tried installing those gems which required compiler like

rvmsudo gem install json -v '1.8.0'

And it worked for me.

I am having only local user access which does not have any rights to run commands like yum

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top