簡體   English   中英

無法在 macos m1 中安裝 ruby 2.3.8

[英]unable to install ruby 2.3.8 in macos m1

無法在下面的 MacOS M1 芯片中安裝 ruby 2.3.8 是我遇到的錯誤。 嘗試了多種方式

trial 1: rvm install 2.3.4 -C --with-openssl-dir=/opt/homebrew/opt/openssl@1.0/bin/openssl

Error running '__rvm_make -j8',

仍然沒有任何效果。 任何幫助將不勝感激

您可以下載舊版本的 openssl 並將其綁定到 ruby​​ 安裝。

下載: https ://github.com/openssl/openssl/releases/tag/OpenSSL_1_0_2u

$> tar -xzf openssl-OpenSSL_1_0_2u.tar.gz
$> cd openssl-1.0.2u
$> ./Configure darwin64-x86_64-cc --prefix=/usr/local/opt/openssl@1.0
$> make
$> make test
$> sudo make install

然后使用以下命令安裝 ruby​​:

$> arch -x86_64 rvm install 2.3.8 --with-openssl-dir=/usr/local/opt/openssl@1.0

來源: https ://github.com/rvm/rvm/issues/5033

使用此 brew tap 安裝 openssl 1.0( 來源

brew install nutcracker/tap/openssl@1.0

然后使用以下命令安裝 ruby:

rvm install 2.3.8 --with-openssl-dir=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM