Skip to content

gem install fails: ERROR: Failed to build gem native extension #391

@tugberkugurlu

Description

@tugberkugurlu

When I run sudo gem install travis, I get the below error:

Fetching: multipart-post-2.0.0.gem (100%)
Fetching: faraday-0.9.2.gem (100%)
Fetching: faraday_middleware-0.10.0.gem (100%)
Fetching: highline-1.7.8.gem (100%)
Fetching: backports-3.6.8.gem (100%)
Fetching: multi_json-1.11.2.gem (100%)
Fetching: addressable-2.4.0.gem (100%)
Fetching: net-http-persistent-2.9.4.gem (100%)
Fetching: net-http-pipeline-1.0.1.gem (100%)
Fetching: gh-0.14.0.gem (100%)
Fetching: launchy-2.4.3.gem (100%)
Fetching: ffi-1.9.10.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing travis:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:4:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.10 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.10/ext/ffi_c/gem_make.out

More info:

tugberk@ubuntu:~/Downloads$ ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

tugberk@ubuntu:~/Downloads$ gem --version
1.8.23

any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions