segabor / Hunspell

Ruby wrapper for the famous spell checker library hunspell.
GNU Lesser General Public License v3.0
35 stars 11 forks source link

Install failing on Ubuntu 14.04 LTS v1606 #4

Closed henrebotha closed 8 years ago

henrebotha commented 8 years ago

Much like #2, my installs on Ubuntu (on Semaphore specifically) are failing like so:

Semaphore: ~/myproject $ gem install hunspell
Building native extensions.  This could take a while...
ERROR:  Error installing hunspell:
        ERROR: Failed to build gem native extension.

    /home/runner/.rbenv/versions/2.2.4/bin/ruby -r ./siteconf20160624-9856-12dlc21.rb extconf.rb
checking for Hunspell_create() in -lhunspell-1.2... no
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling hunspell.c
hunspell.c:26:31: fatal error: hunspell/hunspell.h: No such file or directory
 #include "hunspell/hunspell.h"
                               ^
compilation terminated.
make: *** [hunspell.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/runner/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/hunspell-0.1.2 for inspection.
Results logged to /home/runner/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/hunspell-0.1.2/gem_make.out

As suggested in the other issue, I tried sudo apt-get install hunspell first, and that works just fine, but the gem install still fails.

segabor commented 8 years ago

You'll need the header files in order to have the native extension compiled. Install them with sudo apt-get install libhunspell-dev.