ubuntu 和 ruby 中的 openssl 问题
我有一台安装了 RVM 的服务器。
Nginx 配置了 Passenger 来处理 ruby 1.9.2 和 Rails 3。
我愿意使用 ruby 1.8.7 安装 Rails 2 应用程序。
我安装了 ruby 1.8.7 并通过转到 ruby 1.8.7 源并编译和安装 .so 来安装 openssl。
如果我启动 irb 并尝试要求“openssl”,则响应如果为“true”
[root@server:/home/redmine/www/redmine-1.0.4/]#irb
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0>
但如果我尝试启动例如 rake gems:install,这是响应。
rake gems:install
(in /home/webapps/redmine-1.0.4)
rake aborted!
no such file to load -- openssl
(See full trace by running task with --trace)
zsh: exit 1 rake gems:install
有人有想法吗?
谢谢 !
I have a server with RVM installed on it.
Nginx was configured with Passenger to handle ruby 1.9.2 and Rails 3.
I am willing to install a rails 2 application with ruby 1.8.7.
I installed ruby 1.8.7 and install openssl by going to ruby 1.8.7 sources and compiling and installing the .so.
If I start irb and try to require 'openssl' the response if "true"
[root@server:/home/redmine/www/redmine-1.0.4/]#irb
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0>
But If I try to start for exemple rake gems:install, here is the response.
rake gems:install
(in /home/webapps/redmine-1.0.4)
rake aborted!
no such file to load -- openssl
(See full trace by running task with --trace)
zsh: exit 1 rake gems:install
Is anybody has an idea ?
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我以前见过这个。我相信解决方法是:
如果它抱怨需要额外的库,您可能必须安装它们。但这应该可以解决问题。
I've seen this before. I believe the fix was to:
If it complains that it needs additional library, you may have to install them. But this should do the trick.
除了 Olives 发布的内容之外,对我来说还需要安装 libssl-dev 软件包。 ruby1.8-dev、libruby1.8 和 libopenssl-ruby(虚拟包)已安装。
我在 rvm、ubuntu 10.10、ruby1.8.7、gems 1.4.2
希望这可以帮助那些陷入 ubuntu 困境的人:)
In addition to what Olives posted, for me that required installing the libssl-dev package. ruby1.8-dev, libruby1.8 and libopenssl-ruby (virtual package) were already installed.
Am on rvm, ubuntu 10.10, ruby1.8.7, gems 1.4.2
Hope this helps someone stuck on ubuntu :)