“没有这样的文件加载 – net / https” – Heroku,Ruby,Ubuntu
发布时间:2020-12-17 01:49:37 所属栏目:百科 来源:网络整理
导读:我已经在其他博客和stackoverflow线程中看到了这个问题,但似乎没有人有答案.我正在尝试运行heroku并收到此错误: /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:9:in `rescue in top (required)': no such file to load -- net/https.
我已经在其他博客和stackoverflow线程中看到了这个问题,但似乎没有人有答案.我正在尝试运行heroku并收到此错误:
/usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:9:in `rescue in <top (required)>': no such file to load -- net/https. Try running apt-get install libopenssl-ruby (LoadError) from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:5:in `<top (required)>' from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `require' from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `<top (required)>' from /usr/local/heroku/lib/heroku/client.rb:2:in `require' from /usr/local/heroku/lib/heroku/client.rb:2:in `<top (required)>' from /usr/local/heroku/lib/heroku.rb:3:in `require' from /usr/local/heroku/lib/heroku.rb:3:in `<top (required)>' from /usr/local/heroku/lib/heroku/cli.rb:1:in `require' from /usr/local/heroku/lib/heroku/cli.rb:1:in `<top (required)>' from /usr/bin/heroku:29:in `require' from /usr/bin/heroku:29:in `<main>' 问题是libopenssl-ruby已经是最新版本了. 还有其他人遇到过这个问题吗? 解决方法
我刚刚在我的ubuntu 10.04上遇到了类似的问题,修复方式如下:
编辑: 更快的修复: #!/usr/bin/env ruby1.9.1 然后安装正确的lib: $sudo apt-get install libopenssl-ruby1.9.1 旧: 安装rvm:http://beginrescueend.com/rvm/install/ 要?/ .bashrc添加: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 跑: $source ~/.bachrc 然后: $rvm remove 1.9.2 $rvm pkg install openssl $rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr 在运行最后一个命令之后我有了这个输出,请注意ruby-1.9.2-p290: Installing Ruby from source to: /my/home/dir/.rvm/rubies/ruby-1.9.2-p290,this may take a while depending on your cpu(s) 然后编辑/usr/local/heroku / bin / heroku #!/usr/bin/env ruby1.9.1 至: #!/usr/bin/env ruby-1.9.2-p290 您可能需要安装一些缺少的库来实现所有这些,这将有助于找到什么 $rvm notes 我希望这有帮助. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容