Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rvm install ruby-1.9.3-p286: Error running 'make -j 9' (OSX: Mountain Lion)

Tags:

ruby

makefile

rvm

Running rvm install ruby-1.9.3-p286 gives me this error:

Error running 'make -j 9', please read /Users/epeterson/.rvm/log/ruby-1.9.3-p286/make.log
There has been an error while running make. Halting the installation.
like image 620
Erik Peterson Avatar asked Oct 14 '12 01:10

Erik Peterson


1 Answers

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.

like image 98
Erik Peterson Avatar answered Nov 03 '22 21:11

Erik Peterson