Coder Social home page Coder Social logo

cabocha-ruby's Introduction

cabocha-ruby's People

Contributors

send avatar uetchy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

send aretoky

cabocha-ruby's Issues

Native build can't find cabocha.h even though it is present

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.