简体   繁体   中英

unable to install ruby 2.3.8 in macos m1

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/openssl@1.0/bin/openssl

Error running '__rvm_make -j8',

Still nothing works. Any help would be appreciate

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

$> 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

And then install ruby using:

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

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

Install openssl 1.0 with this brew tap ( source )

brew install nutcracker/tap/openssl@1.0

then just install ruby using:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM