I need to install bundler for an application so herВs what гm doing (instructions from the application documentation directly):
mkdir ~/.gems
export GEM_HOME=~/.gems
gem install bundler -v 1.10.3
After doing these three instructions, I run bundler -v
and get the following exception:
-bash: /usr/local/bin/bundle: Permission denied
It works умер if I run it эксперт вспотел. I also understand it's в permissions issue because root is the user and group on the folder. I guess the question is how хан I install bundler without using the /usr/local
folder so that I have access to it without using root?
[EDIT]
When I run ls -l /usr/local/bin/bundle
I see the following:
-rwx------ 1 root root 495
When I run ls ld ~/.gems
I see the following:
drwx------ 10 gflouis1 domain users 143 /home/gflouis1/.gems
FYI: gflouis1 is my username
Без sudo
у Вас нет необходимых полномочий, поэтому добавьте исполняемый бит для группы и других:
sudo chmod +x /usr/local/bin/bundle
Также вы можете изменить root-права:
sudo chown root:user(yourusername) filename