Ruby Mac 下 rvm 安装 ruby 出错

pjr · 2013年05月06日 · 最后由 pjr 回复于 2013年05月06日 · 3879 次阅读

rvm install ruby-1.9.2-p320

出现错误

Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.7/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password. ERROR: '/usr/local/bin' not writable, fix it first!

怎么解决?

rvm install 1.9.2 什么情况?

没有安装依赖:Installing requirements for osx,得先装个 brew,再一个个看着来装,我也忘了当时怎么装上的了……

#3 楼 @imlcl 安装了 但是貌似有问题 希望卸载重新安装 brew 求卸载方法..

Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.7/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password. ERROR: '/usr/local/bin' not writable, fix it first!

解决了...原来是修改一下权限就行.. 如下: As I’ve just switched from one Mac to another I’ve experienced an issue with the Homebrew installation. Whatever I did I received a message of;

fatal: Unable to create ‘/usr/local/.git/index.lock’: Permission denied

or something like;

Permission denied – /usr/local/opt/pkg-config

As I’ve migrated all user accounts and applications it should have done everything for me, right? Well, as it turns out the /usr/local directory was owned by another user (the initial user even thought the user was removed). In short, you have to change the permission with:

1 sudo chown -R (user):admin /usr/local

需要 登录 后方可回复, 如果你还没有账号请 注册新账号