1

我正在尝试在 Max OSX 10.8.2 上安装 shapado (www.shapado.com)。其中一个 gem,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

对于如何解决这个问题,有任何的建议吗?任何想法都会很棒!

4

1 回答 1

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没有错误。我希望它也能解决你的问题。

于 2013-10-02T09:34:20.590 回答