简体   繁体   English

mac osx rvm安装ruby失败

[英]mac osx rvm install ruby failed

I'm trying to install ruby-head after updated my rvm, but i got Error running '__rvm_make install'. 更新rvm后,我尝试安装ruby-head,但是运行'__rvm_make install'时出现错误。

osx 10.12.6, rvm 1.29.3 osx 10.12.6,rvm 1.29.3

Here is the install log 这是安装日志

*** Following extensions are not compiled:
gdbm:
    Could not be configured. It will not be installed.
    Check ext/gdbm/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.
making enc
make[1]: Nothing to be done for `enc'.
making trans
make[1]: Nothing to be done for `./enc/trans'.
making encs
make[1]: Nothing to be done for `encs'.
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-darwin16-fake ./tool/rbinstall.rb --make="/Applications/Xcode.app/Contents/Developer/usr/bin/make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
installing binary commands:   /Users/Hao/.rvm/rubies/ruby-head/bin
dyld: lazy symbol binding failed: Symbol not found: _utimensat
  Referenced from: /Users/Hao/.rvm/src/ruby-head/libruby.2.5.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat
  Referenced from: /Users/Hao/.rvm/src/ruby-head/libruby.2.5.dylib
  Expected in: /usr/lib/libSystem.B.dylib

make: *** [do-install-nodoc] Abort trap: 6
++ return 2

I got no idea about this, could someone help me out? 我对此一无所知,有人可以帮我吗?

事实证明,在安装ruby之前只需要执行'xcode-select --install'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM