Skip to content

Instantly share code, notes, and snippets.

@libitte
Last active January 24, 2017 08:07
Show Gist options
  • Save libitte/fccd6fcc7acd39491d92 to your computer and use it in GitHub Desktop.
Save libitte/fccd6fcc7acd39491d92 to your computer and use it in GitHub Desktop.
gem install fails on OSX 10.9.5 (Mavericks)
# http://kakasi.namazu.org/index.html.ja
wget http://kakasi.namazu.org/stable/kakasi-2.3.6.tar.gz
gzip -dc kakasi-2.3.6.tar.gz | tar xvf -
cd kakasi-2.3.6
./configure
make
sudo make install

Issue: gem install kakasi => libkakasi is not found

I tried to gem install kakasi, then i got the error: checking for kakasi... failed -- libkakasi is not found

Full error outputs are shown below.

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

    /Users/anonymous/.rbenv/versions/2.1.0/bin/ruby extconf.rb
checking fiddle... yes
checking for kakasi... failed -- libkakasi is not found
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/Users/anonymous/.rbenv/versions/2.1.0/bin/ruby
        --with-kakasi-dir
        --without-kakasi-dir
        --with-kakasi-include
        --without-kakasi-include=${kakasi-dir}/include
        --with-kakasi-lib
        --without-kakasi-lib=${kakasi-dir}/lib

extconf failed, exit code 1

Gem files will remain installed in /Users/anonymous/2.1.0/gems/kakasi-1.0.2 for inspection.
Results logged to /Users/anonymous/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/kakasi-1.0.2/gem_make.out

Solution

# http://kakasi.namazu.org/index.html.ja
wget http://kakasi.namazu.org/stable/kakasi-2.3.6.tar.gz
gzip -dc kakasi-2.3.6.tar.gz | tar xvf -
cd kakasi-2.3.6
./configure
make
sudo make install
@libitte
Copy link
Author

libitte commented Apr 9, 2015

@libitte
Copy link
Author

libitte commented Apr 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment