Reputation: 547
I was trying to install RVM with stable ruby on a mac and got a make error:
abbreviated console output:
\curl -sSL https://get.rvm.io | bash -s stable --ruby\curl -sSL https://get.rvm.io
...
...
...
ruby-2.4.1 - #extracting ruby-2.4.1 to /Users/bbush/.rvm/src/ruby-2.4.1....
ruby-2.4.1 - #applying patch /Users/bbush/.rvm/patches/ruby/2.4.1/random_c_using_NR_prefix.patch.
ruby-2.4.1 - #configuring...................................................................
ruby-2.4.1 - #post-configuration.
ruby-2.4.1 - #compiling...........
Error running '__rvm_make -j2',
abbreviated make.log:
............
compiling enc/us_ascii.c
compiling enc/unicode.c
compiling enc/utf_8.c
compiling enc/trans/newline.c
linking miniruby
generating encdb.h
make: ./miniruby: Permission denied
make: ./miniruby: Permission denied
make: *** [.rbconfig.time] Error 1
make: *** Waiting for unfinished jobs....
make: *** [encdb.h] Error 1
++ /scripts/functions/support : __rvm_make() 383 > return 2
System
I'm thinking that using sudo with the RVM install curl command is a bad idea but how do I get around this permissions issue? Thanks.
Upvotes: 3
Views: 5892
Reputation: 7337
I got this error in MacOS Catalina,
If you are installing ruby like this
rvm install 2.4 --with-openssl-dir=`brew --prefix openssl`
Try instead:
rvm install 2.4 --with-openssl-dir=/usr/local/opt/openssl
The issue might be that you've got several Openssl versions installed
You can check it with,
ls -la /usr/local/opt/ | grep openssl
These steps worked for me:
$ gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ \curl -sSL https://get.rvm.io | bash -s stable --rails
$ brew install openssl
$ rvm install 2.4 --with-openssl-dir=/usr/local/opt/openssl
Upvotes: 2
Reputation: 113
Double check that you have xcode installed and possibly gnupg.
brew install gnupg
Source: http://usabilityetc.com/articles/ruby-on-mac-os-x-with-rvm/
Upvotes: 1