Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running '__rvm_make -j 1' when running 'rvm install 2.0.0' #2333

Closed
FluffyCode opened this issue Nov 2, 2013 · 14 comments
Closed

Error running '__rvm_make -j 1' when running 'rvm install 2.0.0' #2333

FluffyCode opened this issue Nov 2, 2013 · 14 comments
Milestone

Comments

@FluffyCode
Copy link

rvm version: 1.23.13

While trying to install Ruby 2.0.0 on Mac OSX 10.6.8, I ran into the following:

Error running '__rvm_make -j 1',
please read /Users/ey/.rvm/log/1383347832_ruby-1.9.3-p448/make.log
There has been an error while running make. Halting the installation.

The make.log file contents:
https://gist.github.com/FluffyCode/a55a8264f8a69965f9e0

And the results of running 'rvm install 2.0.0 --debug':
https://gist.github.com/FluffyCode/7e9047761234f4555b7f

Prior to attempting to install 2.0.0, I also ran into the same error message (Error running '__rvm_make -j 1') when trying to install Ruby 1.9.3.

@mpapis
Copy link
Member

mpapis commented Nov 2, 2013

please try:

rvm remove 2.0.0
CC=clang rvm install 2.0.0

@FluffyCode
Copy link
Author

Thank you for the quick reply.

rvm remove 2.0.0 resulted in:

Removing /Users/ey/.rvm/src/ruby-2.0.0-p247
/Users/ey/.rvm/rubies/ruby-2.0.0-p247 has already been removed.
Removing ruby-2.0.0-p247 aliases...
Removing ruby-2.0.0-p247 wrappers...
Removing ruby-2.0.0-p247 environments...
Removing ruby-2.0.0-p247 binaries...
ruby-1.9.3-p194 is not installed.
To install do: 'rvm install ruby-1.9.3-p194'

CC=clang rvm install 2.0.0 resulted in the original error message. The contents of make.log this time around:
https://gist.github.com/FluffyCode/45cf87e1d72a36cd9335

@mpapis
Copy link
Member

mpapis commented Nov 2, 2013

oh looks like railsinstaller, please run:

rvm autolibs homebrew
rvm remove 2.0.0
rvm install 2.0.0 --debug

in case it fails again show me full output and the mentioned log files.

@FluffyCode
Copy link
Author

After running all three commands, same error message.

Full terminal output:
https://gist.github.com/FluffyCode/d160147592d4c1e90510

make.log content:
https://gist.github.com/FluffyCode/400ada612be4aa2e8b92

@FluffyCode
Copy link
Author

Huzza! Success!

I re-read the terminal output, and from line 10...
"Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies."

...I went ahead and ran:

rvm help mount
rvm mount -r 1.9.3

From information provided by the terminal output at that point, I ran:

rvm get stable --verify-downloads 1

The terminal output mentioned another error, and recommended running the following to resolve it:

sudo sed -i'' -e "/rvm_configure_env=.*\/opt\/sm/d" /etc/rvmrc
rvm autolibs smf

I ran both of those, and then re-ran:

rvm autolibs homebrew
rvm remove 2.0.0
rvm install 2.0.0 --debug

The terminal output now contains no errors:
https://gist.github.com/FluffyCode/d13d1a3e7a14de4da4a1

At that point, I was running into an odd issue where, no matter what "ruby _____" command I ran, my terminal did not respond. I tried:

ruby -v
ruby (some old test program I wrote a long time ago, just to see if it would run)
irb

But nothing happened, in any situation. I had to do a Ctrl+C to kill...whatever Terminal thought it was doing.

I then ran a reinstall (rvm reinstall 2.0.0) and ensured rvm was using the proper version (rvm use 2.0.0), and now everything is working again:

ruby -v (=> ruby 2.0.0p247 (2013-06-27 revision 41674) [i386-darwin10.8.0])
irb (working)
ruby (some random .rb program - working)

Tl;dr, it's working. Thank you for your time and assistance!

@KurtPreston
Copy link

I'm encountering the same error on MacOS 10.7.5 using RVM 1.25.19. I've tried CC=clang rvm install 2.0.0, rvm autolibs homebrew, and rvm autolibs smf but I get the same error message when I execute rvm install 2.0.

My full build output is located here.

Any other ideas what I could do to get 2.0 installed and working?

@mpapis
Copy link
Member

mpapis commented Mar 3, 2014

please open a new issue and include your gist and /Users/kurt/.rvm/log/1393824999_ruby-2.0.0-p451/make.log

@KurtPreston
Copy link

K, I've opened up issue #2674.

@yinhuanyi
Copy link

oh!!!

@SanjayYadav90
Copy link

I was trying to install ruby 1.9.3 but have error as-
Error running '__rvm_make -j4'
I follow @mpapis and got my issue resolved

rvm remove 1.9.3
CC=clang rvm install 1.9.3

Now I have this setup-

rvm rubies
   ruby-1.9.3-p551 [ x86_64 ]
   ruby-2.1.3 [ x86_64 ]
=* ruby-2.3.1 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

@yanni-fe
Copy link

yanni-fe commented Apr 1, 2017

I got similar issue when run rvm install 2.4

ruby-2.4.0 - #compiling - please wait
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/ypy/.rvm/log/1491065073_ruby-2.4.0/make.log
        ret = clock_gettime(c, &ts);
              ^
process.c:7519:9: error: unknown type name 'clockid_t'; did you mean 'clock_id_t'?
        clockid_t c = NUM2CLOCKID(clk_id);
        ^~~~~~~~~
        clock_id_t
/usr/include/mach/clock_types.h:53:13: note: 'clock_id_t' declared here
typedef int     clock_id_t;                     /* clock identification type */
                ^
process.c:7520:19: warning: implicit declaration of function 'clock_getres' is invalid in C99 [-Wimplicit-function-declaration]
        int ret = clock_getres(c, &ts);
                  ^
2 warnings and 2 errors generated.
make: *** [process.o] Error 1
+__rvm_make:0> return 2
There has been an error while running make. Halting the installation.

my rvm version is 1.29.1

operation system is macOS Sierra 10.12.4

@mpapis
Copy link
Member

mpapis commented Apr 9, 2017

@yupengyang please open a new ticket, this issue has been closed for quite some time.

@JessRudder
Copy link

@mpapis just took over a very old app and needed ruby 1.9.3. I spent all afternoon trying to get past the installation issues. You're recommendation above was the solution I needed. 1000 thanks!!!! 🎉 🎆 💥 🏆

@dostapn
Copy link

dostapn commented Jul 20, 2021

$ brew install llvm
$ brew --prefix llvm
/usr/local/opt/llvm
$ echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
$ CC=/usr/local/opt/bin/clang rvm install 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants