kuno / GeoIP

GeoIP binding for nodejs(>=0.10) and iojs
GNU Lesser General Public License v2.1
414 stars 129 forks source link

GeoIP not installable under node v0.10.0 #54

Closed alexfernandez closed 11 years ago

alexfernandez commented 11 years ago

I am trying to update to the recently released node v0.10.0, and I am getting an error during compilation of geoip. Compilation log transcript follows.

$ npm install geoip CXX(target) Release/obj.target/geoip/src/global.o CXX(target) Release/obj.target/geoip/src/init.o CXX(target) Release/obj.target/geoip/src/country.o ../src/country.cc: In static member function ‘static v8::Handlev8::Value geoip::Country::lookup(const v8::Arguments&)’: ../src/country.cc:117:70: error: invalid conversion from ‘void (_)(uv_workt) {aka void (_)(uv_works)}’ to ‘uv_after_workcb {aka void ()(uv_works, int)}’ [-fpermissive] In file included from /home/chenno/.node-gyp/0.10.0/src/node.h:61:0, from ../src/country.h:11, from ../src/country.cc:7: /home/chenno/.node-gyp/0.10.0/deps/uv/include/uv.h:1397:15: error: initializing argument 4 of ‘int uv_queue_work(uv_loopt, uv_workt, uv_work_cb, uv_after_work_cb)’ [-fpermissive] make: *\ [Release/obj.target/geoip/src/country.o] Error 1 make: Leaving directory /home/chenno/projects/mediasmart/adserver/node_modules/geoip/build' gyp ERR! build error gyp ERR! stack Error:makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:256:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:754:12) gyp ERR! System Linux 3.6.3chennolatency gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/chenno/projects/mediasmart/adserver/node_modules/geoip gyp ERR! node -v v0.10.0 gyp ERR! node-gyp -v v0.8.5 gyp ERR! not ok npm ERR! geoip@0.4.8 install:node-gyp rebuild npm ERR!sh "-c" "node-gyp rebuild"` failed with 1 npm ERR! npm ERR! Failed at the geoip@0.4.8 install 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-gyp rebuild 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! System Linux 3.6.3chennolatency npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "geoip" "emailjs@0.3.4" "protobuf" "microtime" "https://github.com/postwait/node-amqp/tarball/master" "linkedlist" npm ERR! cwd /home/chenno/projects/mediasmart/adserver npm ERR! node -v v0.10.0 npm ERR! npm -v 1.2.14 npm ERR! code ELIFECYCLE

kuno commented 11 years ago

Please update to latest version, 0.4.9

alexfernandez commented 11 years ago

That worked, thanks! Closing.