我正在尝试安装Ruby。我已经安装了rbenv
。运行命令后
rbenv install 2.4.2
我收到以下消息
BUILD FAILED (OS X 10.12.6 using ruby-build 20170914)
Inspect or clean up the working tree at /var/folders/7s/pm59xf21247gd16zvrxmjfkwz6thn7/T/ruby-build.20170927101212.49499
Results logged to /var/folders/7s/pm59xf21247gd16zvrxmjfkwz6thn7/T/ruby-build.20170927101212.49499.log
Last 10 log lines:
Generating RDoc documentation
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /private/var/folders/7s/pm59xf21247gd16zvrxmjfkwz6thn7/T/ruby-build.20170927101212.49499/ruby-2.4.2/./ruby
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /private/var/folders/7s/pm59xf21247gd16zvrxmjfkwz6thn7/T/ruby-build.20170927101212.49499/ruby-2.4.2/./ruby
Expected in: /usr/lib/libSystem.B.dylib
make: *** [rdoc] Abort trap: 6
答案 0 :(得分:6)
想出来。运行xcode-select --install
确定错误。