关闭

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

标签: ruby on railsrubyrvmgemrails
1983人阅读 评论(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

猜你在找
C语言及程序设计(讲师:贺利坚)
Python爬虫工程师培养课程全套(讲师:韦玮)
Python全栈开发入门与实战课(讲师:李杰)
2017软考网络规划设计师视频套餐(讲师:任铄)
2017软考软件设计师视频套餐(讲师:任铄)
2017软考-信息系统项目管理师视频套餐(讲师:任铄)
软考(高级)项目经理实战营(讲师:张传波)
微信公众平台开发套餐(讲师:刘运强)
深度学习原理+实战+算法+主流框架套餐(讲师:唐宇迪)
2017系统集成项目管理工程师通关套餐(讲师:徐朋)
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:48617次
    • 积分:1191
    • 等级:
    • 排名:千里之外
    • 原创:56篇
    • 转载:0篇
    • 译文:4篇
    • 评论:102条
    QQ联系方式
    作者日本硕士
    知识长期输入中
    技术长期磨练中
    如有问题或交流
    请QQ联系 649508982
    来者请说明CSDN
    或者加入机器学习交流群
    不定期发送pdf等学习资源
    QQ群号:657119450
    机器学习 QQ群加入
    博客专栏
    最新评论