mac gem安装失败

$ sudo gem install compass
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/compass

改为`sudo gem install -n /usr/local/bin compass`

$ sudo gem install -n /usr/local/bin compass
Fetching: compass-import-once-1.0.5.gem (100%)
Successfully installed compass-import-once-1.0.5
Fetching: compass-core-1.0.3.gem (100%)
Successfully installed compass-core-1.0.3
    Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!
Successfully installed compass-1.0.3
Parsing documentation for compass-import-once-1.0.5
Installing ri documentation for compass-import-once-1.0.5
Parsing documentation for compass-core-1.0.3
Installing ri documentation for compass-core-1.0.3
Parsing documentation for compass-1.0.3
3 gems installed

发表回复

您的电子邮箱地址不会被公开。