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
# 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
knu/kakasi_ffi#2