unable to install compass

孤者浪人 提交于 2019-12-05 00:59:46
wizChen

Yep, for me it's just the gcc environment,so you can try

sudo apt-get install gcc

That worked for me in ubuntu :)

make sure that xcode is installed.

xcode-select --install

if it is already installed, make sure that you have accepted the TOS.

sudo xcodebuild -license

scroll down to the bottom and type agree.

it should work with above steps.

if you see following issue after doing above 2 steps

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

try following.

sudo su
sudo gem install -n /usr/local/bin compass

On OSX this worked:

if gem install compass fails, try

gem install ffi in case that also fails, the error seems to be, that the ffi build looks in /usr/bin for gcc-4.2

if you have gcc installed, just create a symlink within /usr/bin by typing

sudo ln -s gcc gcc-4.2

otherwise you may need to first install gcc (google that)

try this out:

download and install ruby dev kit as per your ruby version

http://rubyinstaller.org/downloads/

in case of any issue follow this wiki on github.

https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!