I am getting this gem install error for kgio gem when i do a bundle install

南笙酒味 提交于 2019-12-03 16:44:06

The problem was Xcode. Go to Xcode settings -> Downloads and make sure you have the "Command Line Tools" installed. Once I installed them, the bundle install ran just fine.

Unicorn, is designed to take advantage of features found in Unix-like systems.

In other words, they won't work on Windows

I've had this problem recently. In my case it was because for some unknown reason the environment variable for CC (which is a shim to Apple's LLVM compiler) was not being set. Typing:

$ export CC=cc

in the Terminal before doing the bundle install worked for me.

To make the change permanent you can add export CC=cc to your .bash_profile file.

If you do the latter, make sure you type:

$ source ~/.bash_profile 

(or open a new Terminal window) before doing the bundle install.

this might require newer patchlevel of ruby - like p194 - install it:

rvm install 1.9.3-p194

and try again with it.

You should always use the latest patchlevel available, RVM allows to do that with:

rvm get stable
rvm use 1.9.3 --install

I used rvm use system to install the gems. The price of living on the edge with ruby?

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