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: Failed to build gem native extension. #18

Closed
henrycatalinismith opened this issue Feb 10, 2013 · 0 comments
Closed

ERROR: Failed to build gem native extension. #18

henrycatalinismith opened this issue Feb 10, 2013 · 0 comments
Labels

Comments

@henrycatalinismith
Copy link
Owner

I just ran into this issue installing the ppl gem on Debian unstable, and thought it was worth documenting the solution. The full error was as follows.

$ sudo gem install ppl
Fetching: inifile-2.0.2.gem (100%)
Fetching: rugged-0.17.0.b6.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing ppl:
        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:1:in `<main>'

Gem files will remain installed in /var/lib/gems/1.9.1/gems/rugged-0.17.0.b6 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/rugged-0.17.0.b6/ext/rugged/gem_make.out

The cause of this problem is a missing dependency: the ruby1.9.1-dev package. The solution is to install it and try again.

sudo apt-get install ruby1.9.1-dev
sudo gem install ppl
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

1 participant