-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
I'm trying to install node-phash on CentOS release 6.6:
npm install phash
The errors I get:
> phash@0.0.5 install /home/test/node_modules/phash
> node-gyp rebuild
make: Entering directory `/home/test/node_modules/phash/build'
CXX(target) Release/obj.target/pHash/phash.o
In file included from ../phash.cpp:3:
/usr/local/include/pHash.h:144: error: expected ‘;’ before ‘<’ token
/usr/local/include/pHash.h:211: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/local/include/pHash.h:250: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/local/include/pHash.h:273: error: expected ‘,’ or ‘...’ before ‘<’ token
In file included from ../phash.cpp:3:
/usr/local/include/pHash.h:292: error: expected initializer before ‘<’ token
make: *** [Release/obj.target/pHash/phash.o] Error 1
make: Leaving directory `/home/test/node_modules/phash/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-504.12.2.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/test/node_modules/phash
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! phash@0.0.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phash@0.0.5 install script.
npm ERR! This is most likely a problem with the phash package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls phash
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-504.12.2.el6.x86_64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "phash"
npm ERR! cwd /home/test/pHash-0.9.6
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Before installing phash, I did follow the instructions to install phash libraries (found on http://nerdanswer.com/answer.php?q=114662):
$ wget https://downloads.sourceforge.net/project/cimg/CImg-1.6.6.zip
$ unzip CImg-1.6.6.zip
$
$ wget http://phash.org/releases/pHash-0.9.6.tar.gz
$ tar xvf pHash-0.9.6.tar.gz
$
$ cp CImg-1.5.4/CImg.h pHash-0.9.6/src/
$
$ cd pHash-0.9.6
$ ./configure --enable-video-hash=no --enable-audio-hash=no
$ make
$ sudo make install
Any suggestion?
Metadata
Metadata
Assignees
Labels
No labels