目前嘗試使用我的終端(MacOS的塞拉利昂)在RVM安裝Ruby 2.3.1,但遇到了這個錯誤圖書館缺少紅寶石2.3.1
圖書館缺少紅寶石2.3.1: /用戶/travis/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib,/usr/local/opt/gdbm/lib/libgdbm.4.dylib。請參閱您的系統手冊安裝庫
此錯誤類似於堆棧溢出another question但該解決方案沒有爲我工作。 我是Ruby的新手,所以任何幫助將不勝感激。
這是來自終端的全部輸出。
ruby-2.3.1 - #removing src/ruby-2.3.1..
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/osx/10.12/x86_64/ruby-2.3.1.tar.bz2
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
ruby-2.3.1 - #configure
ruby-2.3.1 - #download
ruby-2.3.1 - #validate archive
ruby-2.3.1 - #extract
ruby-2.3.1 - #validate binary
Libraries missing for ruby-2.3.1: /Users/travis/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib,/usr/local/opt/gdbm/lib/libgdbm.4.dylib. Refer to your system manual for installing libraries
Mounting remote ruby failed with status 10, trying to compile.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/sabrina.zuraimi/.rvm/rubies/ruby-2.3.1, this may take a while depending on your cpu(s)...
ruby-2.3.1 - #downloading ruby-2.3.1, this may take a while depending on your connection...
ruby-2.3.1 - #extracting ruby-2.3.1 to /Users/sabrina.zuraimi/.rvm/src/ruby-2.3.1....
ruby-2.3.1 - #configuring......................................................|
ruby-2.3.1 - #post-configuration.
ruby-2.3.1 - #compiling...........
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/sabrina.zuraimi/.rvm/log/1481003831_ruby-2.3.1/make.log
compiling enc/utf_8.c
compiling enc/trans/newline.c
compiling ./missing/explicit_bzero.c
compiling ./missing/setproctitle.c
compiling dmyenc.c
linking miniruby
config.status: creating ruby-runner.c
generating encdb.h
encdb.h updated
rbconfig.rb updated
generating enc.mk
making srcs under enc
/bin/sh: /Applications/Xcode-beta: No such file or directory
make: *** [srcs-enc] Error 127
++ return 2
不完全是一個答案,但是當我使用rbenv代替rvm時,它的工作原理 – sabrinazuraimi