ruby-on-rails – 找不到符号:_SSLv2_client_method(LoadError)
发布时间:2020-12-17 02:08:46 所属栏目:百科 来源:网络整理
导读:当我尝试运行服务器时,它会出现以下错误 /Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl.rb:17:in `require': dlopen(/Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/openssl.bundle,9): Symbol not
当我尝试运行服务器时,它会出现以下错误
/Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl.rb:17:in `require': dlopen(/Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/openssl.bundle,9): Symbol not found: _SSLv2_client_method (LoadError) Referenced from: /Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/openssl.bundle Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib in /Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/openssl.bundle - /Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/openssl.bundle from /Users/brijesh/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl.rb:17:in `<top (required)>' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.1.4/lib/active_support/key_generator.rb:2:in `require' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.1.4/lib/active_support/key_generator.rb:2:in `<top (required)>' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/application.rb:4:in `require' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/application.rb:4:in `<top (required)>' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails.rb:11:in `require' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails.rb:11:in `<top (required)>' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/commands/server.rb:4:in `require' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/commands/server.rb:4:in `<top (required)>' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:128:in `require' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:128:in `require_command!' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:74:in `server' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!' from /Users/brijesh/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>' from bin/rails:4:in `require' from bin/rails:4:in `<main>' 看完这个建议后 我注意到的另一件事是重新启动并打开终端后,它启动时出现以下错误: /Users/brijesh/.rvm/scripts/initialize:48: __rvm_cleanse_variables: function definition file not found 我不确定发生了什么,并且长期以来一直困在这里.我真的很感激帮助. 解决方法
您可能需要使用ruby版本管理器在项目中设置正确的ruby版本 ?rvm –default’ruby-version’ 如果有效,请告诉我
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |