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

Error running '__rvm_make -j16', #5404

Open
tejindergahir19 opened this issue Nov 1, 2023 · 10 comments
Open

Error running '__rvm_make -j16', #5404

tejindergahir19 opened this issue Nov 1, 2023 · 10 comments

Comments

@tejindergahir19
Copy link

rvm install ruby-3.1.0 -C --with-openssl-dir=/usr/local/bin/openssl
ruby-3.1.0 - #removing src/ruby-3.1.0 - please wait
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/tejindersingh/.rvm/rubies/ruby-3.1.0, this may take a while depending on your cpu(s)...
ruby-3.1.0 - #downloading ruby-3.1.0, this may take a while depending on your connection...
ruby-3.1.0 - #extracting ruby-3.1.0 to /Users/tejindersingh/.rvm/src/ruby-3.1.0 - please wait
ruby-3.1.0 - #configuring - please wait
ruby-3.1.0 - #post-configuration - please wait
ruby-3.1.0 - #compiling - please wait
Error running '__rvm_make -j16',
please read /Users/tejindersingh/.rvm/log/1698845705_ruby-3.1.0/make.log

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

@wtfiwtz
Copy link

wtfiwtz commented Nov 11, 2023

Which version of OpenSSL?
Something like this might work - #4819 (comment)

@wtfiwtz
Copy link

wtfiwtz commented Nov 11, 2023

#5302 (comment)

@wtfiwtz
Copy link

wtfiwtz commented Nov 11, 2023

For Ruby 3.x these three issues help:
#5376
#5287
#5285

For 2.x and below... not so lucky

@wtfiwtz
Copy link

wtfiwtz commented Nov 11, 2023

This was also helpful (recent Ruby 2.5.7): #5285 (comment)

xcode-select --install
brew install openssl@1.1
rvm install 3.2.2 --with-openssl-dir=$(brew --prefix openssl@1.1)
rvm install 2.7.7 --with-openssl-dir=$(brew --prefix openssl@1.1)

These both worked ok for me on a Intel Mac with Sonoma
You can use --trace to see the full log or switch to the ~/.rvm/logs folder to see the logs.

@davidkrider
Copy link

davidkrider commented Jan 4, 2024

Good grief. I was getting a malloc crash in the Rails console, and figured something had changed in my system, and my Ruby needed to be recompiled. I updated Xcode, then blew 3.2.2 away. Then I discovered it wouldn't recompile because of the still-ongoing Homebrew SSL version nonsense, and remembered that I had installed this version because it was pre-compiled with SSL 3. Now it seems that all the precompiled versions were deleted from RVM's folder structure in February of 2023, and I was stuck.

So I went through the entire rigamarole of installing rbenv and then finding it had the SAME crashing problem! Then I discovered this: https://stackoverflow.com/questions/77653717/how-to-solve-double-free-for-ptr-0x7f7c33808200-in-ruby-on-rails, which fixed the console crash problem. But then I was still stuck with rbenv, and I don't want to switch everything over on all my machines.

So I kept searching, and finally found this note, which worked to get 3.2.2 compiled with rvm again. I've deleted rbenv, and everything seems to be working. I can compile Rubies with rvm using this compile flag trick, and I can connect to my production database with the console by using the Homebrew SSL trick above. Ruby is built with SSL 1, and apparently the pg gem is using the "system" Homebrew SSL 3 to connect to the database in the console.

I'll be glad when everything is finally on SSL 3, and our build environments start working flawlessly again. Of course, then it will just be something else. ;-)

@Kamal2301
Copy link

This was also helpful (recent Ruby 2.5.7): #5285 (comment)

xcode-select --install
brew install openssl@1.1
rvm install 3.2.2 --with-openssl-dir=$(brew --prefix openssl@1.1)
rvm install 2.7.7 --with-openssl-dir=$(brew --prefix openssl@1.1)

These both worked ok for me on a Intel Mac with Sonoma You can use --trace to see the full log or switch to the ~/.rvm/logs folder to see the logs.

Thank You

@aemooooon
Copy link

worked for me, thanks

@derickgross
Copy link

I saw a similar error message, and resolved it by specifying the architecture for an M1 Mac: arch -arm64 rvm install 3.2.2

@raj-yash-17
Copy link

Any resourse for ubuntu 22.04 facing the same problem ?

@LE-HU
Copy link

LE-HU commented May 17, 2024

the only version I've managed it to work:
PKG_CONFIG_PATH=$(brew --prefix openssl@1.1)/lib/pkgconfig rvm install 3.0.1
note for newer versions of ruby you'd need openssl@3

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

8 participants