我想安裝bundler,並且出現以下錯誤。Ruby on Rails目錄權限問題
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
我也戳周圍本網站和其他地方,發現共同建議安裝rbenv,我沒有使用自制。我還添加使用下面的命令rbenv初始化添加到我的shell:
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
然後我開始了新的外殼讓PATH的改變生效,然後檢查是否rbenv成立:
$ type rbenv
#=> "rbenv is a function"
都好至今。
然後我再次嘗試使用gem install bundler
安裝捆綁和我仍然得到錯誤
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
我也一直在經歷着我的Python安裝的問題,我懷疑這是有症狀的原因是相同的,但我不確定接下來要做什麼。有任何想法嗎?
我運行Mac OS X 10.9.1
我還應該提及它的rbenv版本0.4.0和ruby 2.0.0p247,PATH是(看起來像一個diaster)/Users/mervmerzoug/.rbenv/shims:/Library/Frameworks/Python.framework/Versions/ 3.3 /斌:/Library/Frameworks/Python.framework/Versions/2.7/bin:在/ usr/local/bin目錄中:/ opt/local/bin目錄中:/ opt/local/sbin中中:/ opt/local/bin目錄中:/ opt/local/sbin中:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:USR/local/bin目錄:在/ usr/local/sbin中:在/ usr/local/mysql/bin:/ usr/bin:/ bin:/ usr/sbin:/ sbin:/ usr/local/bin:/ opt/X11/bin – user2179795