未找到符号:_SSLv2_client_method (LoadError)
Posted
技术标签:
【中文标题】未找到符号:_SSLv2_client_method (LoadError)【英文标题】:Symbol not found: _SSLv2_client_method (LoadError) 【发布时间】:2016-03-14 08:31:25 【问题描述】:当我尝试运行服务器时,它会给出以下错误
/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>'
在看了这个建议之后 Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError) 问题已经解决了。但是在重新启动计算机后,我必须再次通过相同的程序来获得稳定的 rvm 并再次重新安装 ruby。
我注意到的另一件事是在重新启动并打开终端后,它开始出现以下错误:
/Users/brijesh/.rvm/scripts/initialize:48: __rvm_cleanse_variables: function definition file not found
我不确定发生了什么,并且已经被困了这么久。非常感谢您的帮助。
【问题讨论】:
【参考方案1】:您可能需要使用您的 ruby 版本管理器为您的项目设置正确的 ruby 版本
rvm --default 'ruby-version'
让我知道这是否有效
【讨论】:
以上是关于未找到符号:_SSLv2_client_method (LoadError)的主要内容,如果未能解决你的问题,请参考以下文章
AFNetworking 错误 - AFHTTPRequestOperationManager(未找到架构 x86_64 的符号)