关闭

Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)出错

标签: ruby on railsrubyrvmgemrails
3352人阅读 评论(0) 收藏 举报
分类:
/Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:106:in `require': dlopen(/Users/silei/.rvm/rubies/ruby
-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin13.2.0/digest/md5.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError
)
  Referenced from: /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin13.2.0/digest/md5.bundle
  Reason: image not found - /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin13.2.0/digest/md5.bundle
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:106:in `require'
        from /Users/silei/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/generators/app_base.rb:1:in `<top (required)>'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/generators/rails/app/app_generator.rb:1:in `<top (required)>'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands/application.rb:29:in `<top (required)>'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/cli.rb:15:in `<top (required)>'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from /Users/silei/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/bin/rails:9:in `<top (required)>'
        from /Users/silei/.rvm/gems/ruby-2.0.0-p247/bin/rails:23:in `load'

        from /Users/silei/.rvm/gems/ruby-2.0.0-p247/bin/rails:23:in `<main>'



原因:libssl找不到,其实是ruby升2.0.0的时候出错,gem需要重装。


解决方法:

重装ruby!!!!


rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

rvm reinstall 2.0.0          (主要步骤)

rvm 2.0.0 --default

gem source -r https://rubygems.org/

gem source -a https://ruby.taobao.org


0
0
查看评论

服务器软件常见问题

sudo brew install nginx 1. 安装nginx 之后遇到 dyld: Library not loaded: @@HOMEBREW_CELLAR@@/openssl/1.0.1h/lib/libcrypto.1.0.0.dylib   Referen...
  • kllxyu
  • kllxyu
  • 2014-10-10 09:03
  • 968

解决 “dyld: Library not loaded: ” 错误

今天在Mac上搞了一个动态库(开发环境Eclipse+sconsolidator), 生成dylib倒是简单。随后新建一个可执行的demo, 链接时在设置里指定dylib的目录和相应的库名,但-L参数指定的绝对目录死活都连不上,提示找不到此目录,把它换成相对目录就可以,非常诡异。当一切OK后,运行时...
  • ani_di
  • ani_di
  • 2011-12-16 21:27
  • 34793

mac : dyld: Library not loaded 问题解决

在mac中用xcode编写了一个命令行程序,其中引入了一个framework,最终生成一个可执行程序。 在自己电脑上测试一切正常,可到其他mac中使用此程序,报如下错误: dyld: Library not loaded: /use/lib/lib1 Referenced from: ...
  • skyztttt
  • skyztttt
  • 2012-10-26 14:37
  • 19847

libcrypto.1.0.0.dylib

  • 2013-01-13 19:32
  • 1.66MB
  • 下载

Python mysqldb: Library not loaded: libmysqlclient.18.dylib

Python mysqldb: Library not loaded: libmysqlclient.18.dylib安装python mysql dbpip install MySQL-python –upgrade运行这个时候就会弹出这样的错误如下 Python mysqldb: Librar...
  • zhtsuc
  • zhtsuc
  • 2016-03-04 18:52
  • 1319

解决 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwi

cocoapods 在 Mac10.11 遇到如果下问题 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/rbconfig.rb:213: warnin...
  • liwenjie0912
  • liwenjie0912
  • 2016-04-22 15:20
  • 11427

Mac 用RVM安装ruby 2.0.0的时候出现错误

Mac 用RVM安装ruby 2.0.0的时候出现错误 LuohandeMacBook-Pro:~ LuohanCC$ rvm 2.0.0 --default ruby-2.0.0-p643 is not installed. To install do: 'rvm install ...
  • LuohanCC
  • LuohanCC
  • 2015-07-15 18:55
  • 15814

linux /centos 中OpenSSL升级方法详解

OpenSSL升级前段时间出现天大bug了,这样导致大家都急着去升级OpenSSL来初安全了,但是很多的朋友在家linux并不知道如何去升级OpenSSL了,下面我整理了一文章大家一起参考一下。 相关软件下载地址 Apache:http://httpd.apache....
  • xysoul
  • xysoul
  • 2015-11-18 22:01
  • 20112

Linux下OpenSSL的安装全过程(CentOS6.3 x86 + Openssl 1.1.0e)

写在前面:安装前先查看下老的openssl版本 (使用  openssl version -a  命令查看来版本),和服务器操作系统版本(uname   -a),升级的原因是,老版的openssl已经曝出漏洞,建议升级最新版本 1、下载地址:http://w...
  • lu_yonggang
  • lu_yonggang
  • 2017-03-14 13:19
  • 9362

php mac报错 dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib的解决办法

Mac下php 报错: $ php -v dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib   Referenced from: /usr/local/bin/php   Reason:...
  • kingch_ban
  • kingch_ban
  • 2017-08-23 17:30
  • 1634
    个人资料
    • 访问:135718次
    • 积分:2295
    • 等级:
    • 排名:第19260名
    • 原创:90篇
    • 转载:0篇
    • 译文:4篇
    • 评论:135条
    联系方式
    QQ联系方式
    作者日本硕士
    知识长期输入中
    技术长期磨练中
    如有问题或交流
    请QQ联系 649508982
    来者请说明CSDN
    或者加入机器学习交流群
    不定期发送pdf等学习资源
    QQ群号:657119450
    机器学习 QQ群加入
    博客专栏
    最新评论