尝试在本地计算机上检查 Heroku 版本时出错
Posted
技术标签:
【中文标题】尝试在本地计算机上检查 Heroku 版本时出错【英文标题】:Error when trying to check Heroku version on local machine 【发布时间】:2015-01-19 00:16:29 【问题描述】:我正在尝试查看我安装了什么版本的 Heroku,以便我可以安装 heroku 工具带 https://toolbelt.heroku.com/ 但是当我输入时:
Heroku --v
我在终端中得到以下信息:
BrettMac:~ brettgolding$ heroku --v /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in
require': dlopen(/Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method (LoadError) Referenced from: /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib in /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle - /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in
require' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/2.1.0/openssl.rb:17:in<top (required)>' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in
require' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:inrequire' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/excon-0.33.0/lib/excon.rb:6:in
' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:inrequire' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:in
require' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-api-0.3.18/lib/heroku/api.rb:3:in<top (required)>' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in
require ' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:inrequire' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-api-0.3.18/lib/heroku-api.rb:1:in
' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:inrequire' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:in
require' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/lib/heroku/client/organizations.rb:1:in<top (required)>' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:in
require ' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:inrequire' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/lib/heroku/command/base.rb:4:in
' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:inrequire' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69:in
require' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/lib/heroku/command/addons.rb:1:in<top (required)>' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in
require ' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:inrequire' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/lib/heroku/command.rb:14:in
block in load' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/lib/heroku/command.rb:13:ineach' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/lib/heroku/command.rb:13:in
load' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/lib/heroku/cli.rb:36:instart' from /Users/brettgolding/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/heroku-3.9.6/bin/heroku:17:in
' 来自 /Users/brettgolding/.rbenv/versions/2.1.1/bin/heroku:23:inload' from /Users/brettgolding/.rbenv/versions/2.1.1/bin/heroku:23:in
'
我正在使用 OSX 和终端。
【问题讨论】:
感谢 smallbutton.com 这解决了我的问题。 【参考方案1】:您的 ruby 设置似乎有问题。我认为您应该尝试像这样建议重新安装 ruby:Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)
【讨论】:
以上是关于尝试在本地计算机上检查 Heroku 版本时出错的主要内容,如果未能解决你的问题,请参考以下文章
将dash应用程序部署到heroku时出错,Nidaqmx.lib.DataNotFoundError
Java 聊天程序在本地主机上工作,但在 Heroku 上托管时不能