Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wjch/5547251 to your computer and use it in GitHub Desktop.
Save wjch/5547251 to your computer and use it in GitHub Desktop.

够烦恼的,google下,找到答案了….

Bundle install and the root password

If you don’t want to type the root password for every new project a solution is to move the GEM paths in a directory where the user can write, otherwise a simple solution is to make that folders writable by the user.

赋予权限即可解决:

  sudo chown your_user /var/lib/gems/1.9.1 -Rv 
  
  sudo chown your_user /usr/local/bin -Rv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment