Failed to build gem native extension

落花浮王杯 提交于 2019-11-28 20:27:24
matt

The problem is that in Lion Xcode 4.3 doesn't by default install (or even include) the command-line tools such as gcc - and those are what are needed here. In the Downloads pane of Xcode's prefs, under Components, ask for the command-line tools. (See the readme: https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Chapters/xcode_4_0.html#//apple_ref/doc/uid/TP40016147-SW35)

Actually I believe you didn't need to install Xcode at all, since in fact the command-line tool can now be downloaded and installed separately.

I already had Command-line tools installed (xCode as well)... and still had this (initial) error.

The problem was that xCode and the command line tools are no longer installing the gcc compiler. I don't know when they stopped shipping it, but I run mountain lion, and it's not here. So what eventually solved my problem was installing gcc from scratch (https://github.com/kennethreitz/osx-gcc-installer).

Keep Smiling :)

If someone has the same problem for Ubuntu Linux, the solution was:

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