新鲜安装的RVM和Ruby 2.1.1 - dyld库/路径错误 [英] Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error

查看:288
本文介绍了新鲜安装的RVM和Ruby 2.1.1 - dyld库/路径错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试将RVM和Ruby 2.1.1安装到我的新Mac(OS 10.9.2)上,并且在我尝试安装任何版本的Ruby之前,一切似乎都顺利。



我的输入

  $ rvm重新安装2.1 

到目前为止这么好......

  ruby​​- 2.1.1  -  #removing rubies / ruby​​-2.1.1 .. 
搜索二进制红宝石,这可能需要一些时间。
找到远程文件https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2
检查osx的需求。
'/usr/local/etc/openssl/cert.pem'中的证书已经是最新的。
要求安装成功。
ruby​​-2.1.1 - #configure
ruby​​-2.1.1 - #download
ruby​​-2.1.1 - #validate存档
ruby​​-2.1.1 - #extract
ruby​​-2.1.1 - #validate binary
ruby​​-2.1.1 - #setup
ruby​​-2.1.1 - #制作二进制可执行文件..
ruby​​-2.1.1 - #下载rubygems-2.2.2
ruby​​-2.1.1 - #extracting ruby​​gems-2.2.2 ....
ruby​​-2.1.1 - #removing old ruby​​gems ........ 。

但是...

  ruby​​-2.1.1  -  #installing ruby​​gems-2.2.2。 
运行'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',
显示/Users/dylanoshea/.rvm/log/1395654507_ruby-2.1.1/rubygems.install.log的最后15行
[2014-03-24 02:48 :47] /Users/dylanoshea/.rvm/rubies/ruby-2.1.1/bin/ruby
当前路径:/Users/dylanoshea/.rvm/src/rubygems-2.2.2
PATH =在/ usr /本地的/ opt / pkg配置/斌:在/ usr /本地的/ opt / libtool的/ bin中:在/ usr /本地的/ opt /的automake /斌:在/ usr /本地的/ opt / autoconf的/ bin中:在/ usr / bin中:/ bin:/ usr / sbin:/ sbin:/ usr / local / bin:/Users/dylanoshea/.rvm/bin
命令(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:库未加载:/ Users / mpapis / .sm / pkg / versions / openssl / 1.0.1f / lib / libssl.1.0.0.dylib
引用自:/Users/dylanoshea/.rvm/rubies/ruby-2.1.1/bin/ruby
原因:找不到图片
/Users/dylanoshea/.rvm/scripts/functio ns / support:第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($,\\ $) } \\\\

}
}
'> / dev / null 2>& 1
dyld:库未加载:/Users/mpapis/.sm/pkg/versions/openssl/1.0.1f/lib/libssl.1.0.0.dylib
引用来自:/Users/dylanoshea/.rvm/rubies-2.1.1/bin/ruby
原因:找不到图像
传递给证书更新,函数堆栈的空路径: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''不存在,'rvm ruby​​-2.1.1执行rvm gemset create',或追加'--create'。
__rvm_rm_rf已经消失:/Users/dylanoshea/.rvm/tmp/5021*

我已经多次尝试删除,内爆,删除和取消/重新安装我的所有RVM组件和Ruby版本,但它没有什么区别 - 我仍然遇到这个错误。奇怪的是,破损的路径指的是RVM开发人员之一的mpapis。


$ b

dyld:库未加载:/ Users / mpapis /。SM / PKG /版本/ OpenSSL的/ 1.0.1f / LIB / libssl.1.0.0.dylib



任何帮助?

解决方案

https://twitter.com/mpapis/status/447926386314186752
disable-binary 选项适用于我:

  rvm重新安装2.1.1 --disable-binary 

编辑 - 更好的解决方案

我发现有些人仍然有这个问题。今天更好的解决方案是像这样更新RVM:

  rvm get stable 

这个问题是由RVM引起的 - 它有一些硬编码为ruby二进制版本的路径。但是这个问题已经解决了,目前没有必要在本地编译ruby。所有你需要的是获得最新的RVM版本。


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.

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.

dyld: Library not loaded: /Users/mpapis/.sm/pkg/versions/openssl/1.0.1f/lib/libssl.1.0.0.dylib

Any help?

解决方案

It looks it's a temporary bug: https://twitter.com/mpapis/status/447926386314186752. The disable-binary option worked for me:

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 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 2.1.1 - dyld库/路径错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆