Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problem doing bundle install on ubuntu

my situation is as follows:

I installed rvm as a root user on Ubuntu 10.04. As a root user I then installed ruby 1.9.2 and rails 3.0.1 using rvm at location '/rvm/gems/ruby1.9.2-p0/'. Then I logged in as myself on ubuntu and tried creating a rails application in /home/myself/www/myapp. When I do 'bundle install' I get the following error:

'Permission Denied' - home/myself/www/myapp/Gemfile.lock (Errno: EAccess) from /usr/local/rvm/gems/ruby1.9.2-p0/gems/bundler-1.0.7/lib/bundler/definition.rb

I am also not able to do sudo bundle install.

Moreover, when I log back in as root and try to do bundle install from there...I get error:

bash: bundle: command not found.

I am very lost now. How can I get this to work???

like image 332
user537244 Avatar asked Dec 06 '25 15:12

user537244


2 Answers

May you should check the permissions of your rails app folder, review the owner and group because I had the same problem and I has solved with:

chown -R USER railsapp_folder

Good luck!

like image 52
Ricardo Gutiérrez Avatar answered Dec 08 '25 06:12

Ricardo Gutiérrez


When you logged in as root, did you activate rvm using

rvm use 1.9.2

EDIT:

How about (logged in as root)

rvm use 1.9.2
cd /home/myself/www/myapp
bundle install
like image 44
kelso Avatar answered Dec 08 '25 08:12

kelso



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!