rvm install ruby-1.9.3-p286: Error running 'make -j 9' (OSX: Mountain Lion)
This took me forever to hunt down. Was trying different versions of make
, gcc
, etc.
It turns out the format of the rvm_make_flags
environment variable has changed from a string to an array and was not well communicated or documented. This may apply to all rvm_* env variables, not sure.
Check your ~/.rvmrc
and project/path/.rvmrc
.
# before
export rvm_make_flags="-j 9"
# after
export rvm_make_flags=(-j 9)
After making this change everything compiled cleanly.
Error installing Ruby with RVM: make -j argument
I would say that somehow make is being invoked with '-j 4'
, that is, the space is being included in the argument, which means make
is trying to parse the string " 4"
(space + 4) as a number and space is not an integer so it fails.
Have you done something like add a line like this to your rvmrc file:
export rvm_make_flags="-j 4"
? You should remove the whitespace here, it should just be "-j4"
.
Error running '__rvm_make -j 1'
Try rvm install 2.5.0 --disable-dtrace
the reason is here, https://github.com/rbenv/ruby-build/issues/1061,
possible Ruby build problem
Error installing any ruby version with RVM on OSX
I ran into the same issue, you need to manually install all the required packages using Brew. For me I had to run the following installs:
brew install autoconf
brew install automake
brew install libtool
brew install apple-gcc42
brew install libyaml
brew install libxslt
brew install libksba
brew install openssl
You just need to keep running "rvm requirements" and reading the log and installing the packages needed until there are no more errors.
Error running '__rvm_make -j 1' during rvm Ruby installation | openssl error
Looks like there is a problem with openssl.
rvm uses homebrew as its package manager on my installation (it's the default I guess). You can ensure that with rvm autolibs homebrew
.
I reinstalled openssl with
brew reinstall openssl
and saw via brew list
that there was another openssl package called openssl098 installed on my system. Trying to reinstall it too caused the following error:
> brew reinstall openssl098
Error: No available formula with the name "openssl098"
I just removed the package with
brew uninstall --force openssl098
and reinstalled openssl again to be sure openssl098 wasn't a needed dependency. But it wasn't installed again.
Afterwards I tried installing ruby-2.2.4 via rvm again and it worked like a charm :) So I guess my openssl package was broken for some reason.
Error running '__rvm_make -j4' when installing ruby 2.1.10 on ubuntu 18.04
First try this:
rvm reload
rvm install ruby-2.1.10
If you get same errors try installing with this patch, based on @mark 's comment,
you can use a patch file, but of course you probably wanna view the patch before running, it seems to correct SSL version problems.
View the patch from here
Then try install your version with the patch:
rvm install ruby-2.1.10 --patch https://gist.github.com/mislav/055441129184a1512bb5.txt
Error running 'make -j2' when installing RVM
This error occurs when you compile Ruby with clang
=> https://bugs.ruby-lang.org/issues/7830
Unless you are interested in testing Ruby/clang
compatibility you would be better with compiling ruby using gcc-4.2
(see https://bugs.ruby-lang.org/issues/5883 for details)
Skip the --ruby
flag from the installer:
\curl -L https://get.rvm.io | bash -s stable
RVM has a command to install all required packages using homebrew:
rvm requirements run force
In case homebrew is not available it will display the list of required packages.
Alternative there is a patch that could make it working with clang, install ruby using:
rvm install 1.9.3-p385 --patch https://bugs.ruby-lang.org/attachments/download/3496/disable-werror.patch -C --disable-werror
Related Topics
Rails Is Not Using My Global Ruby Version
Https Request Using Net::Http's Block Form -- Is It Possible
Ruby 'Range.Last' Does Not Give the Last Value. Why
Why #!/Usr/Bin/Env Ruby Doesn't Work in Crontab
Why Won't Ruby Allow Me to Specify Self as a Receiver Inside a Private Method
Installing Ncurses for Ruby on Windows
Match Regex with Numeric Value and Decimal
Why Does the Break Statement in Ruby Behave Differently When Using Proc.New V. the Ampersand Sign
How to Make a Ruby Enumerator That Does Lazy Iteration Through Two Other Enumerators
Generating a Race Condition with Mri
Find Keep Duplicates in Ruby Hashes
Case-Insensitive Find_Or_Create_By_Whatever
Testing Rake Tasks with Rspec Is Not Accepting Arguments
Fileutils.Mv Throwing Invalid Char \302 and \255 Exception