I have been trying to install RVM and Ruby 2.1.1 onto my new Mac (OS 10.9.2), and everything seems to be going well until I try to install any version of Ruby.
我一直在尝试在我的新Mac (OS 10.9.2)上安装RVM和Ruby 2.1.1,在我尝试安装任何版本的Ruby之前,一切似乎都很顺利。
My input
我的输入
$ rvm reinstall 2.1
So far so good...
到目前为止一切顺利……
ruby-2.1.1 - #removing rubies/ruby-2.1.1..
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
ruby-2.1.1 - #configure
ruby-2.1.1 - #download
ruby-2.1.1 - #validate archive
ruby-2.1.1 - #extract
ruby-2.1.1 - #validate binary
ruby-2.1.1 - #setup
ruby-2.1.1 - #making binaries executable..
ruby-2.1.1 - #downloading rubygems-2.2.2
ruby-2.1.1 - #extracting rubygems-2.2.2....
ruby-2.1.1 - #removing old rubygems.........
But then...
但后来…
ruby-2.1.1 - #installing rubygems-2.2.2.
Error running 'env GEM_HOME= GEM_PATH= /Users/dylanoshea/.rvm/rubies/ruby-2.1.1/bin/ruby -d /Users/dylanoshea/.rvm/src/rubygems-2.2.2/setup.rb --verbose',
showing last 15 lines of /Users/dylanoshea/.rvm/log/1395654507_ruby-2.1.1/rubygems.install.log
[2014-03-24 02:48:47] /Users/dylanoshea/.rvm/rubies/ruby-2.1.1/bin/ruby
current path: /Users/dylanoshea/.rvm/src/rubygems-2.2.2
PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/dylanoshea/.rvm/bin
command(7): env GEM_HOME= GEM_PATH= /Users/dylanoshea/.rvm/rubies/ruby-2.1.1/bin/ruby -d /Users/dylanoshea/.rvm/src/rubygems-2.2.2/setup.rb --verbose
dyld: Library not loaded: /Users/mpapis/.sm/pkg/versions/openssl/1.0.1f/lib/libssl.1.0.0.dylib
Referenced from: /Users/dylanoshea/.rvm/rubies/ruby-2.1.1/bin/ruby
Reason: image not found
/Users/dylanoshea/.rvm/scripts/functions/support: line 411: 14265 Trace/BPT trap: 5 "$ruby_path" -rrbconfig -e '\
File.open("'"$config_path"'","w") { |file|
RbConfig::CONFIG.sort.each{|key,value|
file.write("#{key.gsub(/\.|-/,"_")}=\"#{value.gsub("$","\\$")}\"\n")
}
}
' > /dev/null 2>&1
dyld: Library not loaded: /Users/mpapis/.sm/pkg/versions/openssl/1.0.1f/lib/libssl.1.0.0.dylib
Referenced from: /Users/dylanoshea/.rvm/rubies/ruby-2.1.1/bin/ruby
Reason: image not found
Empty path passed to certificates update, functions stack: requirements_osx_update_openssl_cert_run rvm_requiremnts_fail_or_run_action __rvm_osx_ssl_certs_ensure_for_ruby __rvm_osx_ssl_certs_ensure_for_ruby_except_jruby external_import_setup external_import main
Gemset '' does not exist, 'rvm ruby-2.1.1 do rvm gemset create ' first, or append '--create'.
__rvm_rm_rf already gone: /Users/dylanoshea/.rvm/tmp/5021*
I have repeatedly tried deleting, imploding, removing and un/reinstalling all of my RVM components and Ruby versions, but it doesn't make a difference -- I still get this error. Curiously, the broken path refers to an "mpapis" who is one of the developers of RVM.
我多次尝试删除、内爆、删除和重新安装我的所有RVM组件和Ruby版本,但这没有什么区别——我仍然得到这个错误。奇怪的是,这个坏路径指的是一个“mpapis”,他是RVM的开发人员之一。
dyld: Library not loaded: /Users/
mpapis/.sm/pkg/versions/openssl/1.0.1f/lib/libssl.1.0.0.dylib
库未加载:/Users/mpapis/.sm/pkg/version /openssl/1.0.1f/lib/ libssl.1.0.dylib
Any help?
任何帮助吗?
2 个解决方案
#1
92
It looks it's a temporary bug: https://twitter.com/mpapis/status/447926386314186752. The disable-binary
option worked for me:
它看起来是一个临时错误:https://twitter.com/mpapis/status/447926386314186752。禁用二进制选项对我有用:
rvm reinstall 2.1.1 --disable-binary
EDIT - better solution
编辑-更好的解决方案
I see that some people still have this problem. Today much better solution is to update RVM like this:
我看到有些人仍然有这个问题。现在更好的解决方案是像这样更新RVM:
rvm get stable
The problem was caused by RVM - it had some paths hard-coded into ruby binary versions. But this issue was already fixed and currently there's no need in compiling ruby locally. All you need is to get most recent RVM version.
这个问题是由RVM引起的——它有一些硬编码到ruby二进制版本中的路径。但是这个问题已经得到了解决,目前不需要在本地编译ruby。您所需要的是获得最新的RVM版本。
#2
4
as per https://github.com/wayneeseguin/rvm/issues/2732 :
根据https://github.com/wayneeseguin/rvm/issues/2732
rvm reinstall 2.1.1 --disable-binary
rvm重新安装2.1.1——disable-binary
should allow you to install it.
应该允许您安装它。
also setting your "rvm use" to the most recent version of ruby on your "rvm list" also helped me.
同样,在“rvm列表”中,将“rvm使用”设置为最新版本的ruby也对我有帮助。
and the issue is now closed on github, so in a couple of days (question : does anyone know the usual turn around for rvm patches?) the fix should be up on the rvm.io site and running "rvm get stable" will update your intallation with the patch
现在github上的问题已经解决了,所以再过几天(问题是:有人知道rvm补丁通常的情况吗?)修复应该在rvm上。io站点和运行“rvm稳定”将更新您的语音语调与补丁
#1
92
It looks it's a temporary bug: https://twitter.com/mpapis/status/447926386314186752. The disable-binary
option worked for me:
它看起来是一个临时错误:https://twitter.com/mpapis/status/447926386314186752。禁用二进制选项对我有用:
rvm reinstall 2.1.1 --disable-binary
EDIT - better solution
编辑-更好的解决方案
I see that some people still have this problem. Today much better solution is to update RVM like this:
我看到有些人仍然有这个问题。现在更好的解决方案是像这样更新RVM:
rvm get stable
The problem was caused by RVM - it had some paths hard-coded into ruby binary versions. But this issue was already fixed and currently there's no need in compiling ruby locally. All you need is to get most recent RVM version.
这个问题是由RVM引起的——它有一些硬编码到ruby二进制版本中的路径。但是这个问题已经得到了解决,目前不需要在本地编译ruby。您所需要的是获得最新的RVM版本。
#2
4
as per https://github.com/wayneeseguin/rvm/issues/2732 :
根据https://github.com/wayneeseguin/rvm/issues/2732
rvm reinstall 2.1.1 --disable-binary
rvm重新安装2.1.1——disable-binary
should allow you to install it.
应该允许您安装它。
also setting your "rvm use" to the most recent version of ruby on your "rvm list" also helped me.
同样,在“rvm列表”中,将“rvm使用”设置为最新版本的ruby也对我有帮助。
and the issue is now closed on github, so in a couple of days (question : does anyone know the usual turn around for rvm patches?) the fix should be up on the rvm.io site and running "rvm get stable" will update your intallation with the patch
现在github上的问题已经解决了,所以再过几天(问题是:有人知道rvm补丁通常的情况吗?)修复应该在rvm上。io站点和运行“rvm稳定”将更新您的语音语调与补丁