Comments (7)
Confirmed that [email protected] does work:
$ sudo npm install [email protected]
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info addNamed [ 'geoip', '0.3.4-1' ]
npm info fetch http://registry.npmjs.org/geoip/-/geoip-0.3.4-1.tgz
npm info shasum 1c70e47e6477969d43f2140f5b124ea42dfd6d9d
npm info shasum /tmp/npm-1305672628544/1305672628544-0.5634342671837658/tmp.tgz
npm info shasum 42abc1b7d5a753ac28a1ae46e8b2a758a42aa295
npm info shasum /Users/Charlie/.npm/geoip/0.3.4-1/package.tgz
npm info into /Users/Charlie/OpenSource/maptail [email protected]
npm info installOne [email protected]
npm info unbuild /Users/Charlie/OpenSource/maptail/node_modules/geoip
npm info preinstall [email protected]
npm info build /Users/Charlie/OpenSource/maptail/node_modules/geoip
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
[email protected] ./node_modules/geoip
npm info ok
from geoip.
From v0.4.0, geoip has been transformed into a native addon. In order to use it, you need geoip c library >= 1.4.6 installed on your machine.
from geoip.
How do I install that? Installation instructions on your project page would be helpful. Thanks!
from geoip.
If your os has a system package manager (e.g, on linux, apt of ubuntu, yum of fedora, pacman of arch. MacPorts and homebrew on OSX),
then, there is a very high possibility that there is alreay a geoip c library package inside the repository.
If not, you can build for yourself:
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.7.tar.gz
tar -xvzf GeoIP-1.4.7.tar.gz
cd GeoIP-1.4.7
./confiure
make
sudo make install
from geoip.
I'm having the exact same issue here, but I'm using libgeoip 1.4.7:
Warning: port definitions are more than two weeks old, consider using selfupdate
---> Fetching libgeoip
---> Attempting to fetch GeoIP-1.4.7.tar.gz from http://lil.fr.distfiles.macports.org/libgeoip
---> Verifying checksum(s) for libgeoip
---> Extracting libgeoip
---> Configuring libgeoip
---> Building libgeoip
---> Staging libgeoip into destroot
---> Installing libgeoip @1.4.7_0
---> Activating libgeoip @1.4.7_0
---> Cleaning libgeoip
Arnout-Kazemiers-iMac:observer V1$ npm install .
> [email protected] preinstall /Users/V1/Sites/observer/node_modules/geoip
> node-waf clean || true; 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/local
'configure' finished successfully (0.037s)
Waf: Entering directory `/Users/V1/Sites/observer/node_modules/geoip/build'
[ 1/11] cxx: src/init.cc -> build/default/src/init_1.o
[ 2/11] cxx: src/netspeed.cc -> build/default/src/netspeed_1.o
In file included from ../src/netspeed.h:12,
from ../src/netspeed.cc:7:
../src/node_geoip.h:7:19: error: GeoIP.h: No such file or directory
../src/node_geoip.h:8:23: error: GeoIPCity.h: No such file or directory
In file included from ../src/netspeed.h:12,
from ../src/init.cc:7:
../src/node_geoip.h:7:19: error: GeoIP.h: No such file or directory
../src/node_geoip.h:8:23: error: GeoIPCity.h: No such file or directory
In file included from ../src/netspeed.h:12,
from ../src/netspeed.cc:7:
../src/node_geoip.h:20: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:21: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:23: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:24: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:25: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:27: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:28: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:29: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:31: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:32: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:38: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:39: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:40: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:41: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:42: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:43: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:44: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:45: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:46: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:47: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:48: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:49: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:50: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:51: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:52: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:55: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:56: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:57: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:59: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:60: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:61: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:62: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:63: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:64: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:67: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:68: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:69: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:73: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:74: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:75: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:77: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:78: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:79: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:81: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:82: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:83: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:85: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:86: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:87: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:90: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:92: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:94: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:97: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:98: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:99: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:101: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:102: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:103: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:106: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:109: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:112: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:115: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:118: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:121: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:124: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:126: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:127: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:129: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:130: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:131: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:132: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:134: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:135: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:136: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:139: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:142: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:145: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:146: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:153: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:156: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:160: error: expected constructor, destructor, or type conversion before ‘*’ token
../src/node_geoip.h:161: error: expected constructor, destructor, or type conversion before ‘*’ token
../src/node_geoip.h:163: error: expected constructor, destructor, or type conversion before ‘*’ token
In file included from ../src/netspeed.cc:7:
../src/netspeed.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/netspeed.h:21: error: expected ‘;’ before ‘*’ token
../src/netspeed.cc: In static member function ‘static v8::Handle<v8::Value> geoip::NetSpeed::New(const v8::Arguments&)’:
../src/netspeed.cc:50: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:50: error: ‘GEOIP_MEMORY_CACHE’ was not declared in this scope
../src/netspeed.cc:50: error: ‘GEOIP_STANDARD’ was not declared in this scope
../src/netspeed.cc:50: error: ‘GeoIP_open’ was not declared in this scope
../src/netspeed.cc:52: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:53: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:53: error: ‘GeoIP_database_edition’ was not declared in this scope
../src/netspeed.cc:54: error: ‘GEOIP_NETSPEED_EDITION’ was not declared in this scope
../src/netspeed.cc:58: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:58: error: ‘GeoIP_delete’ was not declared in this scope
../src/netspeed.cc:59: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc: In static member function ‘static v8::Handle<v8::Value> geoip::NetSpeed::lookupSync(const v8::Arguments&)’:
../src/netspeed.cc:77: error: ‘_GeoIP_lookupaddress’ was not declared in this scope
../src/netspeed.cc:83: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:83: error: ‘GeoIP_id_by_ipnum’ was not declared in this scope
../src/netspeed.cc:86: error: ‘GEOIP_UNKNOWN_SPEED’ was not declared in this scope
../src/netspeed.cc:88: error: ‘GEOIP_DIALUP_SPEED’ was not declared in this scope
../src/netspeed.cc:90: error: ‘GEOIP_CABLEDSL_SPEED’ was not declared in this scope
../src/netspeed.cc:92: error: ‘GEOIP_CORPORATE_SPEED’ was not declared in this scope
../src/netspeed.cc: In static member function ‘static v8::Handle<v8::Value> geoip::NetSpeed::lookup(const v8::Arguments&)’:
../src/netspeed.cc:111: error: ‘_GeoIP_lookupaddress’ was not declared in this scope
../src/netspeed.cc: In static member function ‘static int geoip::NetSpeed::EIO_NetSpeed(eio_req*)’:
../src/netspeed.cc:129: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:129: error: ‘GeoIP_id_by_ipnum’ was not declared in this scope
../src/netspeed.cc: In static member function ‘static int geoip::NetSpeed::EIO_AfterNetSpeed(eio_req*)’:
../src/netspeed.cc:149: error: ‘GEOIP_UNKNOWN_SPEED’ was not declared in this scope
../src/netspeed.cc:151: error: ‘GEOIP_DIALUP_SPEED’ was not declared in this scope
In file included from ../src/netspeed.h:12,
from ../src/init.cc:7:
../src/node_geoip.h:20: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:21: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:23: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/netspeed.cc:153: error: ‘GEOIP_CABLEDSL_SPEED’ was not declared in this scope../src/node_geoip.h:24: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:25: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:27: error: expected constructor, destructor, or type conversion before ‘unsigned../src/netspeed.cc:155: error: ‘GEOIP_CORPORATE_SPEED’ was not declared in this scope’
../src/node_geoip.h:28: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:29: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:31: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:32: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:38: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:39: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:40: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:41: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:42: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:43: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:44: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:45: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:46: error: expected constructor, destructor, or type conversion before ‘const’../src/netspeed.cc: In static member function ‘static v8::Handle<v8::Value> geoip::NetSpeed::update(const v8::Arguments&)’:
../src/netspeed.cc:189: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:189: error: ‘GEOIP_MEMORY_CACHE’ was not declared in this scope
../src/netspeed.cc:189: error: ‘GEOIP_STANDARD’ was not declared in this scope
../src/netspeed.cc:189: error: ‘GeoIP_open’ was not declared in this scope
../src/netspeed.cc:191: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:192: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:192: error: ‘GeoIP_database_edition’ was not declared in this scope
../src/netspeed.cc:193: error: ‘GEOIP_NETSPEED_EDITION’ was not declared in this scope
../src/netspeed.cc:196: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:196: error: ‘GeoIP_delete’ was not declared in this scope
../src/netspeed.cc:197: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/node_geoip.h:47: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:48: error: expected constructor, destructor, or type conversion before ‘const’../src/netspeed.cc: In static member function ‘static v8::Handle<v8::Value> geoip::NetSpeed::close(const v8::Arguments&)’:
../src/netspeed.cc:209: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/netspeed.cc:209: error: ‘GeoIP_delete’ was not declared in this scope
../src/netspeed.cc:210: error: ‘class geoip::NetSpeed’ has no member named ‘db’
../src/node_geoip.h:49: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:50: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:51: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:52: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:55: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:56: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:57: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:59: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:60: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:61: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:62: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:63: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:64: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:67: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:68: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:69: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:73: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:74: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:75: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:77: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:78: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:79: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:81: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:82: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:83: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:85: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:86: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:87: error: ‘GEOIP_API’ does not name a type
../src/node_geoip.h:90: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:92: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:94: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:97: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:98: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:99: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:101: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:102: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:103: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:106: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:109: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:112: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:115: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:118: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:121: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:124: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:126: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:127: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:129: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:130: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:131: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:132: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:134: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:135: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:136: error: expected constructor, destructor, or type conversion before ‘void’
../src/node_geoip.h:139: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:142: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:145: error: expected constructor, destructor, or type conversion before ‘unsigned’
../src/node_geoip.h:146: error: expected constructor, destructor, or type conversion before ‘char’
../src/node_geoip.h:153: error: expected constructor, destructor, or type conversion before ‘int’
../src/node_geoip.h:156: error: expected constructor, destructor, or type conversion before ‘const’
../src/node_geoip.h:160: error: expected constructor, destructor, or type conversion before ‘*’ token
../src/node_geoip.h:161: error: expected constructor, destructor, or type conversion before ‘*’ token
../src/node_geoip.h:163: error: expected constructor, destructor, or type conversion before ‘*’ token
In file included from ../src/init.cc:7:
../src/netspeed.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/netspeed.h:21: error: expected ‘;’ before ‘*’ token
In file included from ../src/init.cc:8:
../src/country6.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/country6.h:21: error: expected ‘;’ before ‘*’ token
../src/country6.h:49: error: ‘geoipv6_t’ does not name a type
In file included from ../src/init.cc:9:
../src/country.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/country.h:21: error: expected ‘;’ before ‘*’ token
In file included from ../src/init.cc:10:
../src/region.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/region.h:21: error: expected ‘;’ before ‘*’ token
../src/region.h:49: error: ISO C++ forbids declaration of ‘GeoIPRegion’ with no type
../src/region.h:49: error: expected ‘;’ before ‘*’ token
In file included from ../src/init.cc:11:
../src/city6.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/city6.h:21: error: expected ‘;’ before ‘*’ token
../src/city6.h:50: error: ISO C++ forbids declaration of ‘GeoIPRecord’ with no type
../src/city6.h:50: error: expected ‘;’ before ‘*’ token
../src/city6.h:51: error: ‘geoipv6_t’ does not name a type
In file included from ../src/init.cc:12:
../src/city.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/city.h:21: error: expected ‘;’ before ‘*’ token
../src/city.h:50: error: ISO C++ forbids declaration of ‘GeoIPRecord’ with no type
../src/city.h:50: error: expected ‘;’ before ‘*’ token
In file included from ../src/init.cc:13:
../src/org.h:21: error: ISO C++ forbids declaration of ‘GeoIP’ with no type
../src/org.h:21: error: expected ‘;’ before ‘*’ token
../src/init.cc: In function ‘void init(v8::Handle<v8::Object>)’:
../src/init.cc:34: error: ‘GeoIP_lib_version’ was not declared in this scope
Waf: Leaving directory `/Users/V1/Sites/observer/node_modules/geoip/build'
Build failed:
-> task failed (err #1):
{task: cxx netspeed.cc -> netspeed_1.o}
-> task failed (err #1):
{task: cxx init.cc -> init_1.o}
npm ERR! error installing [email protected] Error: [email protected] preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing [email protected] `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing [email protected] at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:67:17)
npm ERR! error installing [email protected] at ChildProcess.onexit (child_process.js:192:12)
npm ERR! [email protected] preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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 || true; 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 Darwin 11.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "."
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/V1/Sites/observer/npm-debug.log
npm not ok
from geoip.
It seems this is a known issue , that macport dose not install header files with libgeoip
http://lists.macosforge.org/pipermail/macports-tickets/2011-May/082567.html
I recommend that you build/install libgeoip from souce code.
from geoip.
That was indeed the issue, thanks.
On 17 sep. 2011, at 13:23, kuno wrote:
It seems this is a known issue , that macport dose not install header files with libgeoip
http://lists.macosforge.org/pipermail/macports-tickets/2011-May/082567.htmlI recommend that you build/install libgeoip from souce code.
Reply to this email directly or view it on GitHub:
#8 (comment)
from geoip.
Related Issues (20)
- installation problema HOT 7
- Bug in the async country lookup method HOT 7
- Build fails on Windows 7 HOT 13
- nan.h error on node v0.10.22 HOT 14
- GeoIP on Ubuntu 13.10 HOT 7
- installation problem HOT 2
- core dump when invalid data file supplied HOT 2
- build fails under node v0.11.13 HOT 2
- Compile for io.js 1.0.4 HOT 2
- nan ~1.8.4 required for io.js 2.x.x compatibility HOT 1
- Synchronous method(the recommended way). why? HOT 1
- Installation on CentOs
- Build failed on io.js v2.3.1 HOT 1
- IP2Location LITE Support HOT 1
- use of static to get the value of info HOT 2
- OS X 10.11 Installation Issues HOT 2
- Doesn't build with nodejs 6.1.0 HOT 3
- Is it possible to use GeoIP2-City.mmdb ?
- Bug report(Mac os X 10.12) HOT 1
- Respect DNT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoip.