#13 楼 @huacnlee 我按照你写的运行了命令是这样的:
zhang:idea os$ sudo chown -r whoami
~/.rvm
chown: illegal option -- r
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhv] [-R [-H | -L | -P]] :group file ...
可是我 bundle 还是不行,提示:
zhang:idea os$ bundle
/Users/os/.rvm/gems/ruby-1.9.3-p547@global/gems/bundler-1.6.2/lib/bundler.rb:301: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
Fetching source index from http://ruby.taobao.org/
Using rake 0.9.2.2
Using Platform 0.4.0
Using open4 1.3.0
Using POpen4 0.1.4
Using RedCloth 4.2.9
Using multi_json 1.3.6
Using activesupport 3.1.4
Using builder 3.0.0
Using i18n 0.6.0
Using activemodel 3.1.4
Using erubis 2.7.0
Using rack 1.3.6
Using rack-cache 1.2
Using rack-mount 0.8.3
Using rack-test 0.6.1
Using hike 1.2.1
Using tilt 1.3.3
Using sprockets 2.0.4
Using actionpack 3.1.4
Using active_utils 1.0.4
Using json 1.7.4
Using money 5.0.0
Using nokogiri 1.5.5
Using activemerchant 1.27.0
Gem::FilePermissionError: You don't have write permissions for the /Users/os/.rvm/gems/ruby-1.9.3-p547/bin directory.
An error occurred while installing activemerchant_patch_for_china (0.1.6), and
Bundler cannot continue.
Make sure that gem install activemerchant_patch_for_china -v '0.1.6'
succeeds
before bundling.
不好意思,还得麻烦您。感谢。
#4 楼 @huacnlee 请问您是怎么清除 gem 的 cache 的?
我现在的错误是
Gem::FilePermissionError: You don't have write permissions for the /Users/os/.rvm/gems/ruby-1.9.3-p547/bin directory.
An error occurred while installing activemerchant_patch_for_china (0.1.6), and
Bundler cannot continue.
Make sure that gem install activemerchant_patch_for_china -v '0.1.6'
succeeds
before bundling.
希望能得到您的解决。非常感谢。
#3 楼 @runup 求你的解决办法,我也遇到这个问题了。
Gem::FilePermissionError: You don't have write permissions for the /Users/os/.rvm/gems/ruby-1.9.3-p547/bin directory.
An error occurred while installing activemerchant_patch_for_china (0.1.6), and
Bundler cannot continue.
Make sure that gem install activemerchant_patch_for_china -v '0.1.6'
succeeds
before bundling.
愁人呀。希望有时间给个解决的办法,非常感谢!