Giter Site home page Giter Site logo

Can't install GeoIP through npm about geoip HOT 3 CLOSED

kuno avatar kuno commented on September 17, 2024
Can't install GeoIP through npm

from geoip.

Comments (3)

kuno avatar kuno commented on September 17, 2024

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.

yojimbo87 avatar yojimbo87 commented on September 17, 2024

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.

hugh avatar hugh commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.