在 Ubuntu 上安装 OpenSSL 进行 Rails 开发?
我在 Ubuntu 10.10 上运行最新的 RVM,并且成功运行了除 OpenSSL 之外的大部分开发环境。
当我尝试安装该软件包时,出现以下错误:
$ rvm package install openssl > error
ERROR: Error running 'tar zxf /home/ruby/.rvm/archives/openssl-0.9.8n.tar.gz -C
/home/ruby/.rvm/src', please read /home/ruby/.rvm/log/openssl/extract.log
ERROR: Error running './config -I/home/ruby/.rvm/usr/include -L/home/ruby/.rvm
/usr/lib
--prefix=/home/ruby/.rvm/usr zlib no-asm no-krb5 shared ', please read /home/ruby
/.rvm/log/openssl/configure.log
ERROR: Error running '/usr/bin/make ', please read /home/ruby/.rvm/log/openssl/make.log
ERROR: Error running '/usr/bin/make install', please read /home/ruby/.rvm/log/openssl
/make.install.log
当我通过 RVM 获取原始下载的文件时,它似乎已损坏。因此,我下载并将其解压到 ~/.rvm/src/openssl0.9.8
并且第一个错误消失了(运行 tar zxf
时出错),但我仍然得到其他的。
编辑:如果有人关心的话,我的 Ruby 版本是:
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
I am running the latest RVM on Ubuntu 10.10 and I managed to get most of the development environment running, except for OpenSSL.
When I try to install the package I get the following error:
$ rvm package install openssl > error
ERROR: Error running 'tar zxf /home/ruby/.rvm/archives/openssl-0.9.8n.tar.gz -C
/home/ruby/.rvm/src', please read /home/ruby/.rvm/log/openssl/extract.log
ERROR: Error running './config -I/home/ruby/.rvm/usr/include -L/home/ruby/.rvm
/usr/lib
--prefix=/home/ruby/.rvm/usr zlib no-asm no-krb5 shared ', please read /home/ruby
/.rvm/log/openssl/configure.log
ERROR: Error running '/usr/bin/make ', please read /home/ruby/.rvm/log/openssl/make.log
ERROR: Error running '/usr/bin/make install', please read /home/ruby/.rvm/log/openssl
/make.install.log
It seems that the original downloaded file is corrupt when I get it via RVM. So, I downloaded and unpacked it to ~/.rvm/src/openssl0.9.8
and the first error is gone (error running tar zxf
), but I still get the other ones.
Edit: my Ruby version, if anyone cares, is:
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安装 RVM 后您是否运行了
rvm requests
?它显示所有所需依赖项的列表,并提供推荐的“apt-get”命令。这将安装 openssl 和 libssl-dev,这两个都是必需的。我已经在 Ubuntu 上多次安装了 RVM 和 Ruby,并且总是使用 RVM 推荐的方式,没有出现任何问题。
Did you run
rvm requirements
after installing RVM? It shows a list of all needed dependencies, and supplies the recommended "apt-get" command.This will install openssl and libssl-dev, both of which are required. I've installed RVM and Ruby many times on Ubuntu and always used RVM's recommended way without a problem.
Ubuntu 中安装了 libssl 吗?
同时安装开发包:
Do you have libssl installed in Ubuntu?
Also install the development package: