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

ruby-dev required on debian-based distros (ubuntu, mint) to install gem with native ext #132

Open
robertocabellon opened this issue May 19, 2017 · 1 comment

Comments

@robertocabellon
Copy link

On Linux Mint 18.1 (based on Ubuntu 16.04) have returned the following...

$ sudo gem install gitdocs
Building native extensions.  This could take a while...
ERROR:  Error installing gitdocs:
	ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/hitimes-1.2.4/ext/hitimes/c
/usr/bin/ruby2.3 -r ./siteconf20170519-8357-1yha5b8.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.3.0/gems/hitimes-1.2.4 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/hitimes-1.2.4/gem_make.out

I've fixed up by apt-installing the ruby2.3-dev package.

You may mention this requirement for debian-based distros on the README.

thanks to @copiousfreetime !
copiousfreetime/hitimes#45 (comment)

@robertocabellon
Copy link
Author

among other dependencies, that are well explicited on the returned messages during installation...
like: libsqlite3-dev and cmake

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

1 participant