Problem installing the package on ubuntu

my situation is this:

I installed rvm as root user on Ubuntu 10.04. As root, I installed ruby ​​1.9.2 and rails 3.0.1 using rvm at the location '/rvm/gems/ruby1.9.2-p0/'. Then I logged in as I am on ubuntu and tried to create 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 / ruby ​​1.9.2-p0 / gems / bundler-1.0.7 / lib / Bundler / definition.rb

I also cannot install sudo bundle install.

Also, when I log back as root and try to install the package there ... I get an error message:

bash: bundle: command not found.

Now I am very lost. How can I make this work?

+3
source share
5 answers

Can you check the permissions of the rails application folder, view the owner and group, because I had the same problem, and I solved with:

chown -R USER railsapp_folder

Good luck

+2
source

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

rvm use 1.9.2

EDIT:

How about (logged in as root)

rvm use 1.9.2
cd /home/myself/www/myapp
bundle install
+1
source

rvmsudo sudo , .

0

, :

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

~/.bashrc (. " " ).

type rvm | head -1 rvm is a function, .

0

RVM . .

0
source

Source: https://habr.com/ru/post/1779513/


All Articles