更新了RVM之后rmv install ruby-head提示Error running '__rvm_make install,请教各位遇到这种情况怎么处理?
以下是log
[2017-09-27 16:46:19] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /Users/Hao/.rvm/src/ruby-head
GEM_HOME=/Users/Hao/.rvm/gems/ruby-head
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/Hao/.rvm/gems/ruby-head/bin:/Users/Hao/.rvm/gems/ruby-head@global/bin:/Users/Hao/.rvm/rubies/ruby-head/bin:/Users/Hao/.rvm/bin:/Users/Hao/bin/Sencha/Cmd/5.1.2.52:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Users/Hao/bin/Sencha/Cmd/5.0.2.270:/Users/Hao/bin/Sencha/Cmd/4.0.4.84:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
GEM_PATH=/Users/Hao/.rvm/gems/ruby-head:/Users/Hao/.rvm/gems/ruby-head@global
command(2): __rvm_make install
++ make install
generating x86_64-darwin16-fake.rb
x86_64-darwin16-fake.rb updated
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Werror=implicit-int -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -Werror=division-by-zero -Werror=deprecated-declarations -Werror=extra-tokens -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -DRUBY_DEVEL=1 -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl@1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin16 -I./include -I. -I./enc/unicode/10.0.0
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl@1.1/lib -install_name /Users/Hao/.rvm/rubies/ruby-head/lib/libruby.2.5.dylib -compatibility_version 2.5 -current_version 2.5.0 -fstack-protector -Wl,-u,_objc_msgSend -framework CoreFoundation -fstack-protector -Wl,-u,_objc_msgSend -framework CoreFoundation
SOLIBS = -lpthread -ldl -lobjc
LANG = zh_CN.UTF-8
LC_ALL =
LC_CTYPE =
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
generating enc.mk
making srcs under enc
make[1]: Nothing to be done for `srcs'.
generating transdb.h
transdb.h unchanged
generating makefiles ext/configure-ext.mk
ext/configure-ext.mk updated
generating makefile exts.mk
exts.mk unchanged
make[2]: `ruby' is up to date.
*** 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
终端运行
xcode-select --install
就好,之前遇到了相同的问题,这个是新版本xcode安装的时候有一些东西没有装上