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: Error installing astrails-safe: ERROR: Failed to build gem native extension. #37

Open
Kalistos opened this issue Oct 12, 2013 · 4 comments

Comments

@Kalistos
Copy link

I tried to install and get error.

[root@hostname ~]# sudo gem install astrails-safe --source http://gemcutter.org
Building native extensions. This could take a while...
ERROR: Error installing astrails-safe:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h

Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/json-1.8.0 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/json-1.8.0/ext/json/ext/generator/gem_make.out

My config:

  1. cat /etc/redhat-release
    CentOS release 6.4 (Final)
  2. uname -a
    Linux hosname 2.6.32-358.6.2.el6.x86_64 unit test config module #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
  3. ruby -v
    ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
    UPD1:
  4. gem -v
    2.1.5
@vitaly
Copy link
Member

vitaly commented Oct 14, 2013

@Kalistos 1) why http://gemcutter.org and 2) what version of rubygems?

@Kalistos
Copy link
Author

@vitaly

  1. Because it is written at this page https://github.com/astrails/safe#installation. But it's no matter, I tried without " --source http://gemcutter.org" and got the same error.
  2. gem -v
    2.1.5

@vitaly
Copy link
Member

vitaly commented Oct 15, 2013

oh, i see. ;) the instructions were not upgraded in a while. anyway, I don't quite have a way to reproduce that. this gem has no native extensions of any kind. can you paste the gem_make.out?

@andyatkinson
Copy link

@vitaly I made a PR to update the install instructions to drop gemcutter. @Kalistos it looks like you have a problem with ruby on that machine if it can't find the header files. Are you able to install any gems?

1.8.7 is also considered an old version now, and the recommended versions are 1.9 or 2.0+. I would recommended closing this issue.

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

3 participants