install fails #34

Closed
hsleewis opened this Issue Mar 14, 2012 · 3 comments

Comments

Projects
None yet
4 participants

Hi,

Install fails on a ubuntu machine, I have libgeoip 1.4.8 installed and get the error below:

Anyone has a clue how to fix it?

npm http GET https://github.com/kuno/geoip/tarball/master
npm http 200 https://github.com/kuno/geoip/tarball/master

geoip@0.4.6pre preinstall PATH/node_modules/geoip
node-waf clean || (exit 0); node-waf configure build

Nothing to clean (project not configured)
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr
'configure' finished successfully (0.041s)
Waf: Entering directory PATH/node_modules/geoip/build' [ 1/11] cxx: src/init.cc -> build/Release/src/init_1.o [ 2/11] cxx: src/netspeed.cc -> build/Release/src/netspeed_1.o [ 3/11] cxx: src/country6.cc -> build/Release/src/country6_1.o [ 4/11] cxx: src/country.cc -> build/Release/src/country_1.o [ 5/11] cxx: src/region.cc -> build/Release/src/region_1.o [ 6/11] cxx: src/city6.cc -> build/Release/src/city6_1.o ../src/city6.cc: In static member function 'static v8::Handle<v8::Value> geoip::City6::New(const v8::Arguments&)': ../src/city6.cc:55: error: 'GEOIP_CITY_EDITION_REV0_V6' was not declared in this scope ../src/city6.cc:56: error: 'GEOIP_CITY_EDITION_REV1_V6' was not declared in this scope ../src/city6.cc: In static member function 'static v8::Handle<v8::Value> geoip::City6::update(const v8::Arguments&)': ../src/city6.cc:288: error: 'GEOIP_CITY_EDITION_REV0_V6' was not declared in this scope ../src/city6.cc:289: error: 'GEOIP_CITY_EDITION_REV1_V6' was not declared in this scope Waf: Leaving directoryPATH/node_modules/geoip/build'
Build failed: -> task failed (err #1):
{task: cxx city6.cc -> city6_1.o}
npm ERR! error installing geoip@0.4.6pre

npm ERR! geoip@0.4.6pre preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the geoip@0.4.6pre preinstall script.
npm ERR! This is most likely a problem with the geoip package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls geoip
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-33-server
npm ERR! command "node" "/usr/bin/npm" "install" "https://github.com/kuno/geoip/tarball/master"
npm ERR! cwd /home/jolien/web/jolioriginals.com/notifications
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message geoip@0.4.6pre preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! message sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! PATH/npm-debug.log
npm not ok

Owner

kuno commented Mar 17, 2012

Hi, hsleewis:
I tested the whole process on a ubuntu 12.04 machine with node 0.6.13 npm 1.1.9, and build it successfully.
Please make sure that you have the libgeoip-dev package installed on your machine, and there are three header files, GeoIP.h and GeoIPCity.h and GeoIPUpdate.h, within the /usr/include/ folder.

rummik commented Jun 22, 2012

I'm getting the same issue. Running a Debian 6 install, with libgeoip-dev (1.4.7~beta6+dfsg-1), and Node 0.6.19 (installed with NVM)

I am having the same problem on Ubuntu 11.10, libgeoip-dev(1.4.8+dfsg-1ubuntu) and Node 0.6.13 and 0.8.1.

kuno closed this Mar 13, 2013

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