Skip to content

Failed to build gem native extension #133

@eduOSS

Description

@eduOSS

Hello, all

I met a snag as the following:

root@ubuntu:/home/eduOSS# gem install github-pages
Building native extensions.  This could take a while...
ERROR:  Error installing github-pages:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby2.1 -r ./siteconf20150418-11838-636jct.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.1.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/fast-stemmer-1.0.2/gem_make.out

The version of Ruby installed is ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux-gnu]

Could anyone please tell me why and how to tackle it? Thanks very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions