uetchy / cabocha-ruby Goto Github PK
View Code? Open in Web Editor NEWRuby bindings for CaboCha.
License: BSD 3-Clause "New" or "Revised" License
Ruby bindings for CaboCha.
License: BSD 3-Clause "New" or "Revised" License
gem install cabocha
doesn't appear to work because the native extensions can't be installed. Here's the output, using the specific version of Ruby's gem directly just to get rbenv out of the picture, since it has been blamed for this sort of thing in the past:
$ ~/.rbenv/versions/2.1.6/bin/gem install cabocha
Fetching: cabocha-0.69.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing cabocha:
ERROR: Failed to build gem native extension.
/Users/trejkaz/.rbenv/versions/2.1.6/bin/ruby extconf.rb
checking for main() in -lcabocha... no
checking for main() in -lcrfpp... no
checking for main() in -lmecab... yes
checking for main() in -liconv... yes
checking for main() in -l-L/usr/local/Cellar/mecab/0.996/lib... no
checking for main() in -lmecab... yes
checking for main() in -lstdc++... yes
checking for cabocha.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling CaboCha_wrap.cpp
CaboCha_wrap.cpp:1843:10: fatal error: 'cabocha.h' file not found
#include "cabocha.h"
^
1 error generated.
make: *** [CaboCha_wrap.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/trejkaz/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/cabocha-0.69 for inspection.
Results logged to /Users/trejkaz/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-15/2.1.0-static/cabocha-0.69/gem_make.out
I went looking to see how it got the path and it seems to run cabocha-config
, but when I run that tool myself, I get what looks like the right location:
$ cabocha-config --inc-dir
/usr/local/Cellar/cabocha/0.69/include
$ ls -la /usr/local/Cellar/cabocha/0.69/include
total 32
drwxr-xr-x 3 trejkaz admin 102 24 Sep 23:35 .
drwxr-xr-x 15 trejkaz admin 510 18 Oct 15:50 ..
-rw-r--r-- 1 trejkaz admin 12641 24 Sep 23:35 cabocha.h
Just to be doubly-sure, I made sure INCLUDE was set too:
$ echo $INCLUDE
/usr/local/include
$ ls -l /usr/local/include/
total 24
lrwxr-xr-x 1 trejkaz admin 40 18 Oct 15:50 cabocha.h -> ../Cellar/cabocha/0.69/include/cabocha.h
So I'm out of ideas. What's the trick?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.