rbenv安装2.4.0在Mac OS中塞拉利昂失败10.12.6
> rbenv install 2.4.0 ruby-build: use openssl from homebrew Downloading
> ruby-2.4.0.tar.bz2...
> -> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2 Installing ruby-2.4.0... ruby-build: use readline from homebrew
>
> BUILD FAILED (OS X 10.12.6 using ruby-build 20170726)
>
> Inspect or clean up the working tree at
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759
> Results logged to
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759.log
>
> Last 10 log lines: Referenced from: /usr/local/bin/tar Expected
> in: /usr/lib/libSystem.B.dylib
>
> dyld: Symbol not found: _utimensat Referenced from:
> /usr/local/bin/tar Expected in: /usr/lib/libSystem.B.dylib
>
> /usr/local/bin/ruby-build: line 344: 21953 Abort trap: 6 tar
> $tar_args "$package_filename"
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759/ruby-2.4.0
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759
> ~/Documents/Github /usr/local/bin/ruby-build: line 563: ./configure:
> No such file or directory
内容为在/ var /文件夹/ 9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T /红宝石打造.20170728015414.2175 9.logrbenv安装2.4.0在Mac OS中塞拉利昂失败10.12.6
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /usr/local/bin/tar Expected in: /usr/lib/libSystem.B.dylibdyld: Symbol not found: _utimensat Referenced from: /usr/local/bin/tar Expected in: /usr/lib/libSystem.B.dylib
/usr/local/bin/ruby-build: line 344: 21953 Abort trap: 6 tar $tar_args "$package_filename" /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759/ruby-2.4.0 /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759 ~/Documents/Github /usr/local/bin/ruby-build: line 563: ./configure: No such file or directory
brew uninstall tar
rbenv install ruby 2.4.0
现在它的工作原理,所以看起来像的GNU tar没有在此刻与Mac OS 16年12月10日发挥出色,必须退回到原生的MacOS焦油
感谢@LucasC osta
这不适合我。首先,我得到了与红宝石2.4.2和2.4.0相同的构建错误:链接共享对象zlib.bundle ***以下扩展未能配置: ../.././ext/gdbm/extconf。 rb:0:无法配置gdbm。它不会被安装。然后,我看到:dyld:lazy symbol binding failed:Symbol not found:_utimensat。其次,我认为你的意思是:“rbenv安装2.4.0”否则用“ruby”,rbenv命令是意外的。 – BoiseBaked
整个错误:链接共享对象zlib.bundle ***以下扩展未能配置: ../.././ext/gdbm/extconf.rb:0:无法配置gdbm。它不会被安装。 ***修复问题,然后删除这些目录,如果你想再试一次。找不到符号: 联红宝石 生成RDoc文档 使dyld:延迟符号绑定失败_utimensat 从引用:/private/var/folders/pn/8dks58m57llbpngp0fvcdbf00000gn/T/ruby-build.20171001101324.69785/ruby-2.4.2/。/ruby 预计在:/usr/lib/libSystem.B.dylib – BoiseBaked
@BoiseBaked你有解决这个问题吗?我有一个类似的问题,事实证明,这是从安装新的Xcode而不安装新的开发工具。运行'xcode-select --install'后,我可以使用rbenv来安装ruby。参考:https://github.com/rvm/rvm/issues/3744(见rvm和rbenv用户的成功评论) – nicksuch
xcode-select --install
修复了MacOS Sierra上的类似ruby 2.4.2安装问题,当XCode 9安装时没有使用XCode Developer Tools。
您可以发布日志文件的内容('/ var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759.log')吗? –
我添加了上面那个文件的内容。感谢您的关注@LucasCosta – root
这非常奇怪......看起来您有焦油问题。您可以尝试删除并重新安装吗? –