[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 3.+ cannot be installed by RVM #5492

Open
Moussy opened this issue Aug 12, 2024 · 3 comments
Open

Ruby 3.+ cannot be installed by RVM #5492

Moussy opened this issue Aug 12, 2024 · 3 comments

Comments

@Moussy
Copy link
Moussy commented Aug 12, 2024

➜ app-vipteach-swift git:(main) ✗ rvm --version
rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
➜ app-vipteach-swift git:(main) ✗ gem install rvm
ERROR: While executing gem ... (Gem::Exception)
OpenSSL is not available. Install OpenSSL and rebuild Ruby or use non-HTTPS sources (Gem::Exception)
➜ app-vipteach-swift git:(main) ✗ gem install gem-wrappers
ERROR: While executing gem ... (Gem::Exception)
OpenSSL is not available. Install OpenSSL and rebuild Ruby or use non-HTTPS sources (Gem::Exception)
➜ app-vipteach-swift git:(main) ✗ brew install openssl
==> Downloading https://formulae.brew.sh/api/formula.jws.json
########################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
########################################################################################################################### 100.0%
Warning: openssl@3 3.3.1 is already installed and up-to-date.
To reinstall 3.3.1, run:
brew reinstall openssl@3
➜ app-vipteach-swift git:(main) ✗ rvm reinstall 3.2.4 --with-openssl-dir=$(brew --prefix openssl)
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/vipkid/.rvm/rubies/ruby-3.2.4, this may take a while depending on your cpu(s)...
ruby-3.2.4 - #downloading ruby-3.2.4, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: cache.ruby-china.org
Warning: Problem : timeout. Will retry in 2 seconds. 3 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: cache.ruby-china.org
Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: cache.ruby-china.org
Warning: Problem : timeout. Will retry in 2 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: cache.ruby-china.org
There was an error(6).
Checking fallback: https://ftp.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19.6M 100 19.6M 0 0 5570k 0 0:00:03 0:00:03 --:--:-- 5572k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-3.2.4 - #extracting ruby-3.2.4 to /Users/vipkid/.rvm/src/ruby-3.2.4 - please wait
ruby-3.2.4 - #configuring - please wait
ruby-3.2.4 - #post-configuration - please wait
ruby-3.2.4 - #compiling - please wait
Error running '__rvm_make -j8',
please read /Users/vipkid/.rvm/log/1723448656_ruby-3.2.4/make.log

There has been an error while running make. Halting the installation.

Environment:
MacBook Pro(Apple M3)
macOS : 14.2

The attachment of the error log has been uploaded.
makelog.txt

@TaipeiHere
Copy link

i had a similar issue, with -j11
and I saw that this person: (https://emmanuelbernard.com/blog/2023/12/01/installing-ruby-on-apple-silicon/)
posted that this needed to be added: "--with-openssl-dir=$(brew --prefix openssl@1.1) "
so, i used the command line:
rvm reinstall 3.3.0 --with-openssl-dir=$(brew --prefix openssl@1.1) and it worked.
give it a try!

@rinvay
Copy link
rinvay commented Oct 22, 2024

i had a similar issue, with -j11 and I saw that this person: (https://emmanuelbernard.com/blog/2023/12/01/installing-ruby-on-apple-silicon/) posted that this needed to be added: "--with-openssl-dir=$(brew --prefix openssl@1.1) " so, i used the command line: rvm reinstall 3.3.0 --with-openssl-dir=$(brew --prefix openssl@1.1) and it worked. give it a try!

it works for me on my mac bigsur

@tclaus
Copy link
tclaus commented Oct 22, 2024

rvm reinstall 3.3.0 --with-openssl-dir=$(brew --prefix openssl@1.1) and it worked.

this works on my M1 Pro with macOS 15.0.1 Sequoia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants