解决了...原来是修改一下权限就行.. 如下: 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
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!
停用了吗..