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 Os X #2

Closed civrot closed 8 years ago

civrot commented 9 years ago

I am getting the following problem when trying to install the hunspell gem on El Capitan.

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

    /usr/local/var/rbenv/versions/2.2.3/bin/ruby -r ./siteconf20151019-48887-8na0ke.rb extconf.rb
checking for Hunspell_create() in -lhunspell-1.2... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling hunspell.c
hunspell.c:26:10: fatal error: 'hunspell/hunspell.h' file not found
#include "hunspell/hunspell.h"
         ^
1 error generated.
make: *** [hunspell.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/hunspell-0.1.2 for inspection.
Results logged to /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/hunspell-0.1.2/gem_make.out
mdemare commented 9 years ago

Same here.

segabor commented 9 years ago

Thanks for the feedback. It looks like El Capitan no longer includes the header file required for building Hunspell ruby bundle. To fix this we need a complete hunspell package installed to make build happy again.

segabor commented 9 years ago

I have a temporary solution. Install hunspell with homebrew first before running gem install.

brew install hunspell
sudo gem install hunspell

Let me know if workaround above works.

henrebotha commented 8 years ago

The workaround works. It would however be great to get this resolved properly - would simplify our deploys.