Comments (3)
You need install geoip c library first through either the package manager of your system or building by 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
./configure --prefix=/usr
make
sudo make install
from geoip.
First I tried to install geoip-bin and geoip-database packages using apt-get in Ubuntu, but it seems that it works only if I build it myself from source as you suggested. Thanks for help.
from geoip.
I am having the same problem even after installing the geoip c library first (I did it by building it myself via the steps suggested by kuno above).
And then I get:
npm install geoip
npm ERR! failed to fetch https://registry.npmjs.org/geoip/-/geoip-0.4.3.tgz
npm ERR! Error: 404 { server: 'CouchDB/1.1.0 (Erlang OTP/R14B03)',
npm ERR! date: 'Wed, 03 Aug 2011 17:14:25 GMT',
npm ERR! 'content-type': 'text/plain;charset=utf-8',
npm ERR! 'content-length': '64',
npm ERR! 'cache-control': 'must-revalidate' }
npm ERR! at ClientRequest. (/usr/local/lib/node_modules/npm/lib/utils/fetch.js:108:33)
npm ERR! at ClientRequest.g (events.js:143:14)
npm ERR! at ClientRequest.emit (events.js:64:17)
npm ERR! at HTTPParser.onIncoming (http.js:1358:9)
npm ERR! at HTTPParser.onHeadersComplete (http.js:108:31)
npm ERR! at CleartextStream.ondata (http.js:1232:22)
npm ERR! at CleartextStream._push (tls.js:303:27)
npm ERR! at SecurePair.cycle (tls.js:577:20)
npm ERR! at EncryptedStream.write (tls.js:96:13)
npm ERR! at Socket.ondata (stream.js:36:26)
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR!
npm ERR! System Linux 2.6.35.11-83.9.amzn1.i686
npm ERR! command "node" "/usr/local/bin/npm" "install" "geoip"
npm ERR! cwd /home/ec2-user
npm ERR! node -v v0.4.11-pre
npm ERR! npm -v 1.0.22
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ec2-user/npm-debug.log
npm not ok
Any other ideas on what I can try? Thanks!
-Hugh
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.