Closed funston closed 12 years ago
Please update libgeoip to at least 1.4.7
I get the same error. I am on 1.4.7
Name : GeoIP-devel Arch : x86_64 Version: 1.4.7 Release: 0.1.20090931cvs.el5
Name : GeoIP Arch :x86_64 Version: 1.4.7 Release: 0.1.20090931cvs.el5 Size : 1.4 M
Can you offer a copy of your GeoIP.h file? Also, I suggest your update to 1.4.8, it may solve this issue for you.
Thanks kuno, GeoIP-1.4.8 solves this problem on debian also.
@iseus glad to know that : )
I'm using GeoIP-1.4.8, macos, node 0.6.8 and still failing with npm install
Ideas?
Waf: Entering directory /Users/rich/dev//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:274: error: ‘GEOIP_CITY_EDITION_REV0_V6’ was not declared in this scope ../src/city6.cc:275: error: ‘GEOIP_CITY_EDITION_REV1_V6’ was not declared in this scope Waf: Leaving directory
/Users/rich/dev//node_modules/geoip/build'
Build failed: -> task failed (err #1):
{task: cxx city6.cc -> city6_1.o}
npm ERR! error installing geoip@0.4.5
Same problem here,.. how did you fix it @rschiavi
This is the error I get:
npm http GET https://registry.npmjs.org/geoip npm http 304 https://registry.npmjs.org/geoip
geoip@0.4.5 preinstall /home/jolien/web/jolioriginals.com/notifications/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 /home/jolien/web/jolioriginals.com/notifications/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:274: error: ‘GEOIP_CITY_EDITION_REV0_V6’ was not declared in this scope ../src/city6.cc:275: error: ‘GEOIP_CITY_EDITION_REV1_V6’ was not declared in this scope Waf: Leaving directory
/home/jolien/web/jolioriginals.com/notifications/node_modules/geoip/build'
Build failed: -> task failed (err #1):
{task: cxx city6.cc -> city6_1.o}
npm ERR! error installing geoip@0.4.5
npm ERR! geoip@0.4.5 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.5 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" "geoip"
npm ERR! cwd /home/jolien/web/jolioriginals.com/notifications/GeoIP-1.4.7
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message geoip@0.4.5 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 {}
hey, my resolution was brew installed a different version of geoip which was on my path (earlier version). once i removed that, everything worked
Tried both:
% npm install geoip
and
% npm install https://github.com/kuno/geoip/tarball/master
Both failing on OSX, with this (compiled and successfully installed maxmind tools again )...
[ 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 [ 7/11] cxx: src/city.cc -> build/Release/src/city_1.o ../src/city6.cc: In static member function ‘static v8::Handlev8::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::Handlev8::Value geoip::City6::update(const v8::Arguments&)’: ../src/city6.cc:274: error: ‘GEOIP_CITY_EDITION_REV0_V6’ was not declared in this scope ../src/city6.cc:275: error: ‘GEOIP_CITY_EDITION_REV1_V6’ was not declared in this scope