Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install clucene fails dues to file not found: CLucene/clucene-config.h #30

Open
shawnzhu opened this issue Feb 3, 2013 · 0 comments

Comments

@shawnzhu
Copy link

shawnzhu commented Feb 3, 2013

I performed npm install clucene for my application and it fails with such error:

In file included from /usr/include/CLucene/StdHeader.h:20:0,
             from /usr/include/CLucene.h:11,
             from ../src/clucene_bindings.cpp:8:
/usr/include/CLucene/SharedHeader.h:18:36: fatal error: CLucene/clucene-config.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/shawnzhu/workspace/chef-repo-site/node_modules/clucene/build'
Build failed:  -> task failed (err #1): 
{task: cxx clucene_bindings.cpp -> clucene_bindings_1.o}

It's common CLucene usage error on x86_64 architecture (I got this on Fedora18).

The fix is simple:

$ cd /usr/include/CLucene
$ sudo ln -s /usr/lib64/CLucene/clucene-config.h

Or change wscript by appending "-I/usr/lib64" to obj.cxxflags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant