Open slefevre opened 7 years ago
Can confirm this for Ubuntu 17.04. ruby-dev package is necessary to install wraith.
I was seeing a similar error
$ sudo gem install wraith
Building native extensions. This could take a while...
ERROR: Error installing wraith:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.4.0/gems/nokogiri-1.8.1/ext/nokogiri
/usr/bin/ruby2.4 -r ./siteconf20171120-10224-dwnbwh.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.4.0/gems/nokogiri-1.8.1 for inspection.
Results logged to /var/lib/gems/2.4.0/extensions/x86_64-linux/2.4.0/nokogiri-1.8.1/gem_make.out
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux-gnu]
$ convert -version
Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
I had followed the second answer here to update ruby https://stackoverflow.com/questions/26595620/how-to-install-ruby-2-1-4-on-ubuntu-14-04, i.e.
$ sudo apt-add-repository ppa:brightbox/ruby-ng
$ sudo apt-get update
$ sudo apt-get install ruby2.4
however, ruby-dev was still 1.9 so
$ sudo apt-get install ruby2.4-dev
did the trick for me.
I was attempting to install wraith on a recently-updated debian system. I was encountering this error:
I looked at the pre-requisites for Ubuntu, and ran all of them. I was only missing
libicu-dev
.However, I was not able to install the wraith gem until I installed
ruby-dev
:You might consider adding a Debian section to the pre-requisites and including ruby-dev in it.