我正在尝试在Max OSX 10.8.2上安装shapado(www.shapado.com)。其中一个宝石Rinku在尝试安装时会出现以下错误:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/1.9.3-p385/bin/ruby extconf.rb
creating Makefile
make
compiling autolink.c
compiling buffer.c
compiling rinku.c
rinku.c:165:3: error: non-void function 'rinku_autolink' should return a value [-Wreturn-type]
return;
^
1 error generated.
make: *** [rinku.o] Error 1
有关如何解决此问题的任何建议?任何想法都会很棒!
答案 0 :(得分:2)
我遇到了类似的问题
/Users/adamo/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make
compiling autolink.c
make: /usr/local/bin/gcc-4.2: No such file or directory
make: *** [autolink.o] Error 1
我有自制软件,我做了:
brew update
brew tap homebrew/versions
brew install apple-gcc42
然后我能够bundle install
没有错误。我希望它也能解决你的问题。