无法在MacOS M1中安装Ruby 2.3.8

发布于 2025-02-05 18:36:12 字数 339 浏览 2 评论 0原文

在下面的MacOS M1芯片中无法安装Ruby 2.3.8是我遇到的错误。尝试了多种方法

trial 1: rvm install 2.3.4 -C --with-openssl-dir=/opt/homebrew/opt/[email protected]/bin/openssl

Error running '__rvm_make -j8',

仍然没有任何作用。任何帮助都会感谢

Unable to install ruby 2.3.8 in MacOS M1 chip below is the error I'm getting. Tried multiple ways

trial 1: rvm install 2.3.4 -C --with-openssl-dir=/opt/homebrew/opt/[email protected]/bin/openssl

Error running '__rvm_make -j8',

Still nothing works. Any help would be appreciate

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

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

发布评论

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

评论(2

梦毁影碎の 2025-02-12 18:36:12

使用此啤酒TAP安装OpenSSL 1.0(

brew install nutcracker/tap/[email protected]

使用:

rvm install 2.3.8 --with-openssl-dir=/opt/homebrew/Cellar/[email protected]/1.0.2u

Install openssl 1.0 with this brew tap (source)

brew install nutcracker/tap/[email protected]

then just install ruby using:

rvm install 2.3.8 --with-openssl-dir=/opt/homebrew/Cellar/[email protected]/1.0.2u
断爱 2025-02-12 18:36:12

您可以下载OpenSL的旧版本并将其绑定到Ruby安装。

下载: httpps://github an /a>

gt; tar -xzf openssl-OpenSSL_1_0_2u.tar.gz
gt; cd openssl-1.0.2u
gt; ./Configure darwin64-x86_64-cc --prefix=/usr/local/opt/[email protected]
gt; make
gt; make test
gt; sudo make install

然后然后安装ruby使用:

gt; arch -x86_64 rvm install 2.3.8 --with-openssl-dir=/usr/local/opt/[email protected]

源: https://github.com/rvm/rvm/rvm /eskoes/5033

You can download an old version of openssl and bind it to the ruby installation.

Download: https://github.com/openssl/openssl/releases/tag/OpenSSL_1_0_2u

gt; tar -xzf openssl-OpenSSL_1_0_2u.tar.gz
gt; cd openssl-1.0.2u
gt; ./Configure darwin64-x86_64-cc --prefix=/usr/local/opt/[email protected]
gt; make
gt; make test
gt; sudo make install

And then install ruby using:

gt; arch -x86_64 rvm install 2.3.8 --with-openssl-dir=/usr/local/opt/[email protected]

Source: https://github.com/rvm/rvm/issues/5033

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