Skip to content

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

Description

@shawnzhu

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions