mysql2 icon indicating copy to clipboard operation
mysql2 copied to clipboard

Error running '__rvm_make -j8', Installing ruby with Mac Pro M3 chip

Open sreenak opened this issue 1 year ago • 2 comments

I am trying to install Ruby on Rails in Mac Pro M3 , MySQL 8.0.3, ruby 2.5.3, rails, 5.1.4. I tried almost all solutions, but didn't work It gives the below error , tried the below commands too

 rvm install 2.5.3 --with-openssl-dir=/usr/local/opt/[email protected]
rvm install 2.5.3 --autolibs=disable  
rvm install 2.5.3 -- CFLAGS="-DUSE_FFI_CLOSURE_ALLOC"

Even all the above tries results same error as below.

me@me-MacBook-Pro: rvm install "ruby-2.5.3"
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/13.6/x86_64/ruby-2.5.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Running `brew update --auto-update`...
Updating certificates bundle '/usr/local/etc/[email protected]/cert.pem'
Requirements installation successful.
Installing Ruby from source to: /Users/.rvm/rubies/ruby-2.5.3, this may take a while depending on your cpu(s)...
ruby-2.5.3 - #downloading ruby-2.5.3, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.5M  100 13.5M    0     0  4326k      0  0:00:03  0:00:03 --:--:-- 4330k
ruby-2.5.3 - #extracting ruby-2.5.3 to /Users/.rvm/src/ruby-2.5.3 - please wait
ruby-2.5.3 - #configuring - please wait
ruby-2.5.3 - #post-configuration - please wait
ruby-2.5.3 - #compiling - please wait
Error running '__rvm_make -j8',
please read /Users/.rvm/log/1707428031_ruby-2.5.3/make.log

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

Even I followed this tutorial but it works only above 2.6 versions

Really I am stuck with this. Can anyone give any solution for this. Thank you for your valuable time.

sreenak avatar Feb 09 '24 08:02 sreenak

@sreenak what's in the log file mentioned in the output above? (/Users/.rvm/log/1707428031_ruby-2.5.3/make.log)

flavorjones avatar Feb 09 '24 22:02 flavorjones

@sreenak Can you check the arch, are executing commands on arm64? Issue got fixed after switching to arm64 and specifiying openssl path, also use ruby 2.6.9 onwards, lower version may install with boken.

jvkiran avatar Feb 13 '24 07:02 jvkiran