我正在尝试安装gem install travis
to use travis-cli
根据参考https://rubygems.org/gems/travis https://rubygems.org/gems/travis但低于错误。
尝试过这里提到的解决方案https://github.com/ffi/ffi/issues/653 https://github.com/ffi/ffi/issues/653 :
brew reinstall libffi
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
gem install travis
找不到 libffi 的包配置
“xcrun clang -o conftest -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16 -I /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Library/Developer/CommandLineTools/SDKs /MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I.-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot / usr/local/libressl/include conftest.c -L.-L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L.-L /Applications/Xcode.app/Contents/Developer/Platforms /MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/libressl/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12 .Internal.sdk / usr / local / lib -arch x86_64 -arch i386 -lruby.2.3.0 -lpthread -ldl -lobjc“
在 conftest.c:1 包含的文件中:
在 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33 包含的文件中:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10:致命错误:找不到“ruby/config.h”文件
#include“ruby/config.h”
^~~~~~~~~~~~~~~
生成 1 个错误。
检查的程序是:
/* 开始 */
1:#include“ruby.h”
2:
3: int main(int argc, char *argv)
4:{
5:返回0;
6:}
/ end */
任何帮助将不胜感激!尝试找出但没有发现有帮助
这就能解决问题
sudo gem install -n /usr/local/bin cocoapods -v 1.8.4
最新的 CocoaPods 1.10.0 将无法工作。
Update!
如果你想安装 CocoaPods 1.10.0 + 你可以使用HomeBrew https://brew.sh/然后在命令行中输入以下内容
brew install cocoapods
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)