2017-09-27 198 views
0

我想在更新我的rvm后安装红宝石头,但我得到错误运行 '__rvm_make install'。mac osx rvm安装红宝石失败

OSX 10.12.6,RVM 1.29.3

下面是安装日志

*** 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 

我没有这个想法,可能有人帮助我吗?

回答

3

原来只是在安装ruby之前需要执行'xcode-select --install'