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

Fails to compile / install on Ruby 2.1.x #20

Closed
virtualfunction opened this issue Jan 1, 2014 · 5 comments
Closed

Fails to compile / install on Ruby 2.1.x #20

virtualfunction opened this issue Jan 1, 2014 · 5 comments
Labels
Milestone

Comments

@virtualfunction
Copy link

Updating timers
Building native extensions.  This could take a while...
ERROR:  Error installing timers:
    ERROR: Failed to build gem native extension.

    ~/.rubies/2.1.0/bin/ruby extconf.rb
checking for clock_gettime() in -lrt... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=~/.rubies/2.1.0/bin/ruby
    --with-rtlib
    --without-rtlib
~/.rubies/2.1.0/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
....
extconf failed, exit code 1

I'm guessing clock_gettime has changed in the Ruby 2.1.x src?

@copiousfreetime
Copy link
Owner

hmm.. that is odd. clock_gettime is not a ruby method, its a system method -- see http://man7.org/linux/man-pages/man2/clock_gettime.2.html

What system are you compiling on?

@virtualfunction
Copy link
Author

Ubuntu 13.10 x64, lowlatency kernel. I'm using chruby / ruby-build (recently switch from rvm, I wouldn't think this is an issue if you say it's a system method as opposed to ruby)

@copiousfreetime
Copy link
Owner

@virtualfunction My apologies for not updating this in a while. Do you happen to have a virtual box / vagrant image, or link to appropriate image I could use to dig into this issue for you? I'm pretty sure it has to do with finding librt in the system you are on.

@copiousfreetime
Copy link
Owner

@virtualfunction I'm pushing a new release later today that I think will solve this.

@copiousfreetime copiousfreetime added this to the 1.2.1 milestone Jul 9, 2014
@copiousfreetime
Copy link
Owner

Version 1.2.2 released, please let me know if this doesn't work for you @virtualfunction.

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

No branches or pull requests

2 participants