gpt4 book ai didi

ruby - "rvm install ree"在 ubuntu : how to get pass openssl and zlib dev headers requirement? 上失败

转载 作者:数据小太阳 更新时间:2023-10-29 06:56:38 26 4
gpt4 key购买 nike

我想在 Ubuntu 上通过 rvm 安装 Ruby 企业版。我正在运行以下内容:

$ rvm install ree --with-readline-dir=/home/ubuntu/.rvm/usr --with-iconv-dir=/home/ubuntu/.rvm/usr --with-zlib-dir=/home/ubuntu/.rvm/usr --with-openssl-dir=/home/ubuntu/.rvm/usr

但是,它失败并出现以下错误:

Installing Ruby Enterprise Edition from source to: /home/ubuntu/.rvm/rubies/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)
ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /home/ubuntu/.rvm/src/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #installing
ERROR: Error running './installer -a /home/ubuntu/.rvm/rubies/ree-1.8.7-2011.03 --dont-install-useful-gems ', please read /home/ubuntu/.rvm/log/ree-1.8.7-2011.03/install.log
ERROR: There has been an error while trying to run the ree installer. Halting the installation.

文件/home/ubuntu/.rvm/log/ree-1.8.7-2011.03/install.log 说明如下:

 * C compiler... found at /usr/bin/gcc
* C++ compiler... found at /usr/bin/g++
* The 'make' tool... found at /usr/bin/make
* The 'patch' tool... found at /usr/bin/patch
* Zlib development headers... found
* OpenSSL development headers... not found
* GNU Readline development headers... not found

Some required software is not installed.
But don't worry, this installer will tell you how to install them.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Installation instructions for required software

* To install OpenSSL development headers:
Please download it from http://www.openssl.org/

* To install GNU Readline development headers:
Please download it from http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html

但是我确实在系统上通过 rvm 包和 apt-get 安装了 openssl、readline 和 zlib-devel。

$ rvm package install ree_dependencies

请帮忙!

最佳答案

如果你使用 rvm 版本 1.9.0,

$ rvm 包安装 ree_dependencies错误:无法识别的命令行参数:'package'(参见:'rvm usage')

使用

$ rvm pkg 安装 ree_dependencies

会起作用

关于ruby - "rvm install ree"在 ubuntu : how to get pass openssl and zlib dev headers requirement? 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7290015/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com