gem install gollum给了我在Mac OS Sierra中找不到的错误位/ c ++ config.h

时间:2017-04-19 16:02:44

标签: macos rubygems clang gollum-wiki

当我跑步时

sudo gem install gollum

sudo gem install charlock_holmes -- --with-icu-dir=/opt/local/lib/icu --with-opt-include=/opt/local/include/ --with-opt-lib=/opt/local/lib/

我收到以下错误:

compiling transliterator.cpp
In file included from transliterator.cpp:4:0:
/usr/local/include/c++/5.1.0/string:38:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.

也许我需要设置一些标志,以便编译器可以找到这些库? Mac OS Sierra版本10.12, 这里是gcc版本(已安装Xcode):

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.38)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

提前致谢!

0 个答案:

没有答案