Error starting "make -j2" when installing RVM

I follow this tutorial on setting up Rails on your Mac:

http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

When I get to Step 6: install RVM with Ruby 1.9.3 and run curl -L https://get.rvm.io | bash -s stable --rubyto install RVM, I get the following error:

Error running 'make -j2', please read ~/.rvm/log/ruby-1.9.3-p385/make.log
There has been an error while running make. Halting the installation.

In make.log, this is what it generated:

regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
    return t->num_entries;
    ~~~~~~ ~~~^~~~~~~~~~~
1 error generated.
make: *** [regparse.o] Error 1
make: *** Waiting for unfinished jobs....

I find this fear because I followed this guide earlier on a similar installation and did not encounter any problems.

Any ideas?

+5
source share
1 answer

This error occurs when compiling Ruby with clang=> https://bugs.ruby-lang.org/issues/7830

Ruby/ clang, ruby ​​ gcc-4.2 ( . https://bugs.ruby-lang.org/issues/5883)

--ruby :

\curl -L https://get.rvm.io | bash -s stable

RVM homebrew:

rvm requirements run force

, .

, clang, ruby, :

rvm install 1.9.3-p385 --patch https://bugs.ruby-lang.org/attachments/download/3496/disable-werror.patch -C --disable-werror
+20

All Articles