gpt4 book ai didi

ruby - 安装 travis-cli 时在 macOS 中找不到 libffi 的包配置

转载 作者:行者123 更新时间:2023-12-03 15:25:02 35 4
gpt4 key购买 nike

我正在尝试安装 gem install travis使用 travis-cli根据引用 https://rubygems.org/gems/travis但低于错误。
尝试过这里提到的解决方案 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

package configuration for libffi is not found"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 "In file included from conftest.c:1:In file included from /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: fatal error: 'ruby/config.h' file not found#include "ruby/config.h"^~~~~~~~~~~~~~~1 error generated.checked program was:/* begin */1: #include "ruby.h"2:3: int main(int argc, char *argv)4: {5: return 0;6: }/ end */


任何帮助将不胜感激!尝试找出但没有发现有帮助

最佳答案

这将解决问题

sudo gem install -n /usr/local/bin cocoapods -v 1.8.4
最新的 CocoaPods 1.10.0 将无法工作。
更新!
如果你想安装 CocoaPods 1.10.0 + 你可以使用 HomeBrew然后在命令行中输入以下内容
brew install cocoapods

关于ruby - 安装 travis-cli 时在 macOS 中找不到 libffi 的包配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63650689/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com