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

Won't install under Ruby 2.3.0 #227

Closed
RedFred7 opened this issue Mar 25, 2016 · 3 comments
Closed

Won't install under Ruby 2.3.0 #227

RedFred7 opened this issue Mar 25, 2016 · 3 comments

Comments

@RedFred7
Copy link

Not sure if this is related to #165 but when I gem install byebug -v '8.2.2' I get the following:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /home/fred/.rvm/gems/ruby-2.3.0@cuba_genie/gems/byebug-8.2.2/ext/byebug

/home/fred/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160325-18907-cff2tg.rb extconf.rb
creating Makefile

current directory: /home/fred/.rvm/gems/ruby-2.3.0@cuba_genie/gems/byebug-8.2.2/ext/byebug
make "DESTDIR=" clean

current directory: /home/fred/.rvm/gems/ruby-2.3.0@cuba_genie/gems/byebug-8.2.2/ext/byebug
make "DESTDIR="
compiling locker.c
compiling context.c
compiling byebug.c
compiling threads.c
compiling breakpoint.c
linking shared-object byebug/byebug.so
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
make: *** [byebug.so] Error 1

make failed, exit code 2

If I switch over to Ruby 2.2.1 (I use RVM) the gem installs without any problems

@deivid-rodriguez
Copy link
Owner

No, I don't think so... It seems like a problem with your ruby 2.3.0 installation or even a bug in ruby. Try installing another gem with C extensions, nokogiri for example. Does it fail too?

@RedFred7
Copy link
Author

Yes, nokogiri fails too. Again, no problems under 2.2.1. You're right, it must be my installation or that specific ruby build. In any case, I'll close this down, thanks.

@deivid-rodriguez
Copy link
Owner

No problem.

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

2 participants