错误安装Ruby 3.0.2带有Mac OS中的RVM

发布于 2025-02-01 13:12:01 字数 805 浏览 2 评论 0原文

错误运行'env cflags = -o3 -i/usr/local/local/opt/libyaml/include -i/usr/locar/local/opt/libksba/include -i/usr/usr/local/opt/opt/readline/include include -i/include -i/ usr/local/opt/zlib/包括-i/usr/locar/opt/ [emage 受保护] /包括ldflags = -l/usr/local/local/opt/libyaml/lib -l/usr/local/local/opt/libksba/lib -l/usr/usr/local/local/opt/readline/lib -l/usr /local/opt/zlib/lib-l/usr/local/opt/ ] /lib ./configure -prefix =/users/dev/.rvm/rubies/ruby-3.0.2 - 可添加安装式doc-enable-shared',> 当我尝试rvm安装3.0.2时,会发生此错误

Error running 'env CFLAGS=-O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/[email protected]/include LDFLAGS=-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/[email protected]/lib ./configure --prefix=/Users/dev/.rvm/rubies/ruby-3.0.2 --disable-install-doc --enable-shared',
this error occurs when i try to rvm install 3.0.2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒岛晴空 2025-02-08 13:12:01

似乎是openssl错误

首先安装作者:

brew install [email protected]

然后检查以下安装的OPENSL安装路径:

brew --prefix [email protected]

然后尝试使用RVM安装Ruby,例如:

rvm install 3.0.2 --with-openssl-dir=<open-ssl-installed-path>`

有时它已经安装了Ruby,然后在上面命令中尝试renstall

It seems to be openssl error

Firstly install [email protected] if it's not there by:

brew install [email protected]

Then check for the openssl installed path with:

brew --prefix [email protected]

Then try to install ruby with rvm like:

rvm install 3.0.2 --with-openssl-dir=<open-ssl-installed-path>`

Sometimes it says ruby is already installed then please try reinstall in the above command

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文