Giter Site home page Giter Site logo

Comments (8)

kuno avatar kuno commented on August 15, 2024

I've re-packaged this module.
Please give it a try.

from geoip.

kuno avatar kuno commented on August 15, 2024

btw: you npm is out of date.
Please update to latest version, 1.0.6, or at least 0.3.18.

from geoip.

shripadk avatar shripadk commented on August 15, 2024

Whoops! I upgraded my npm to 0.3.18. Will upgrade to 1.0.6 once some dependant modules upgrade too. However, I'm still getting the same error! Seems like there is a reference to your local path in the build:

OSError: [Errno 5] Input/output error: '/home/kuno/harbour/geoip/build'

Should that be a relative path instead of an absolute path?

from geoip.

kuno avatar kuno commented on August 15, 2024

this really wired...

from geoip.

kuno avatar kuno commented on August 15, 2024

ok, for some reasons I don't understand, node-waf seems dose not accept '0.4.0' as version literature. So I changed the version to '0.4.0final'.
Go try it, and give me feedback.

from geoip.

shripadk avatar shripadk commented on August 15, 2024

Works! :) Thanks a ton! Definitely some weird node-waf bug!

from geoip.

shripadk avatar shripadk commented on August 15, 2024

Same issue on Ubuntu 10.04,

~ node -v
v0.4.7

~ npm --version
1.0.8

    verbose into /home/shripad/CODE/Hydra-2.0 [ '[email protected]' ]
    verbose cache add [ '[email protected]', null ]
    info addNamed [ 'geoip', '0.4.0final' ]
    verbose addNamed [ '0.4.0final', '0.4.0final' ]
    verbose GET geoip/0.4.0final
    verbose raw, before any munging geoip/0.4.0final
    verbose url resolving [ 'http://registry.npmjs.org/', './geoip/0.4.0final' ]
    verbose url resolved http://registry.npmjs.org/geoip/0.4.0final
    verbose url parsed { protocol: 'http:',
    verbose url parsed   slashes: true,
    verbose url parsed   host: 'registry.npmjs.org',
    verbose url parsed   hostname: 'registry.npmjs.org',
    verbose url parsed   href: 'http://registry.npmjs.org/geoip/0.4.0final',
    verbose url parsed   pathname: '/geoip/0.4.0final' }
    verbose etag "EV6MTZQT2FDFVNODDLCN8D7EK"
    verbose response http://registry.npmjs.org/geoip/0.4.0final
    silly get cb [ 304,
    silly get cb   { server: 'CouchDB/1.0.2 (Erlang OTP/R14B)',
    silly get cb     etag: '"EV6MTZQT2FDFVNODDLCN8D7EK"',
    silly get cb     date: 'Wed, 01 Jun 2011 10:15:12 GMT',
    silly get cb     'content-length': '0' } ]
    verbose etag geoip/0.4.0final from cache
    verbose bin dist [ '0.4-ares1.7.4-ev4.4-openssl0.9.8k-v83.1.8.10-linux-2.6.32-32-generic',
    verbose bin dist   { shasum: '22da8db57f716afab0ad9e46d40832c62e3f5398',
    verbose bin dist     bin: 
    verbose bin dist      { '0.4-ares1.7.4-ev4.4-openssl1.0.0d-v83.2.10.2-linux-2.6.38-ARCH': 
    verbose bin dist         { shasum: 'db0670ce7392d1a390cae3b40ef0b611d4a40703',
    verbose bin dist           tarball: 'http://registry.npmjs.org/geoip/-/geoip-0.4.0final-0.4-ares1.7.4-ev4.4-openssl1.0.0d-v83.2.10.2-linux-2.6.38-ARCH.tgz' } },
    verbose bin dist     tarball: 'http://registry.npmjs.org/geoip/-/geoip-0.4.0final.tgz' } ]
    silly resolved [ { name: 'geoip',
    silly resolved     description: 'GeoIP client for node',
    silly resolved     version: '0.4.0final',
    silly resolved     homepage: 'http://github.com/kuno/GeoIP',
    silly resolved     author: 
    silly resolved      { name: 'Guan \'kuno\' Qing',
    silly resolved        email: 'neokuno at Gmail dot com' },
    silly resolved     contributors: 
    silly resolved      [ { name: 'Vladimir Dronnikov',
    silly resolved          email: '[email protected]' },
    silly resolved        { name: 'Konstantin Käfer',
    silly resolved          email: '[email protected]' },
    silly resolved        { name: 'Joe Vennix', email: '[email protected]' },
    silly resolved        { name: 'artems', email: '[email protected]' } ],
    silly resolved     repository: 
    silly resolved      { type: 'git',
    silly resolved        url: 'git://github.com/kuno/GeoIP.git' },
    silly resolved     bugs: 
    silly resolved      { email: '[email protected]',
    silly resolved        url: 'http://github.com/kuno/GeoIP/issues' },
    silly resolved     main: 'index.js',
    silly resolved     directory: 
    silly resolved      { src: './src',
    silly resolved        test: './test',
    silly resolved        misc: './misc',
    silly resolved        sample: './sample',
    silly resolved        benchmark: './benchmark' },
    silly resolved     engine: { node: '>=0.4.0', npm: '1' },
    silly resolved     script: { preinstall: 'node-waf configure build' },
    silly resolved     licences: 
    silly resolved      [ { type: 'LGPL2.1',
    silly resolved          url: 'http://www.gnu.org/licenses/lgpl-2.1.txt' } ],
    silly resolved     scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
    silly resolved     dependencies: {},
    silly resolved     devDependencies: {},
    silly resolved     _id: '[email protected]',
    silly resolved     engines: { node: '*' },
    silly resolved     _engineSupported: true,
    silly resolved     _npmVersion: '1.0.6',
    silly resolved     _nodeVersion: 'v0.4.8',
    silly resolved     _defaultsLoaded: true,
    silly resolved     dist: 
    silly resolved      { shasum: '22da8db57f716afab0ad9e46d40832c62e3f5398',
    silly resolved        bin: 
    silly resolved         { '0.4-ares1.7.4-ev4.4-openssl1.0.0d-v83.2.10.2-linux-2.6.38-ARCH': 
    silly resolved            { shasum: 'db0670ce7392d1a390cae3b40ef0b611d4a40703',
    silly resolved              tarball: 'http://registry.npmjs.org/geoip/-/geoip-0.4.0final-0.4-ares1.7.4-ev4.4-openssl1.0.0d-v83.2.10.2-linux-2.6.38-ARCH.tgz' } },
    silly resolved        tarball: 'http://registry.npmjs.org/geoip/-/geoip-0.4.0final.tgz' },
    silly resolved     directories: {} } ]
    info into /home/shripad/CODE/Hydra-2.0 [email protected]
    info installOne [email protected]
    info unbuild /home/shripad/CODE/Hydra-2.0/node_modules/geoip
    silly testEngine { name: 'geoip',
    silly testEngine   description: 'GeoIP client for node',
    silly testEngine   version: '0.4.0final',
    silly testEngine   homepage: 'http://github.com/kuno/GeoIP',
    silly testEngine   author: 
    silly testEngine    { name: 'Guan \'kuno\' Qing',
    silly testEngine      email: 'neokuno at Gmail dot com' },
    silly testEngine   contributors: 
    silly testEngine    [ { name: 'Vladimir Dronnikov',
    silly testEngine        email: '[email protected]' },
    silly testEngine      { name: 'Konstantin Käfer',
    silly testEngine        email: '[email protected]' },
    silly testEngine      { name: 'Joe Vennix', email: '[email protected]' },
    silly testEngine      { name: 'artems', email: '[email protected]' } ],
    silly testEngine   repository: 
    silly testEngine    { type: 'git',
    silly testEngine      url: 'git://github.com/kuno/GeoIP.git' },
    silly testEngine   bugs: 
    silly testEngine    { email: '[email protected]',
    silly testEngine      url: 'http://github.com/kuno/GeoIP/issues' },
    silly testEngine   main: 'index.js',
    silly testEngine   directory: 
    silly testEngine    { src: './src',
    silly testEngine      test: './test',
    silly testEngine      misc: './misc',
    silly testEngine      sample: './sample',
    silly testEngine      benchmark: './benchmark' },
    silly testEngine   engine: { node: '>=0.4.0', npm: '1' },
    silly testEngine   script: { preinstall: 'node-waf configure build' },
    silly testEngine   licences: 
    silly testEngine    [ { type: 'LGPL2.1',
    silly testEngine        url: 'http://www.gnu.org/licenses/lgpl-2.1.txt' } ],
    silly testEngine   _id: '[email protected]',
    silly testEngine   scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
    silly testEngine   dependencies: {},
    silly testEngine   devDependencies: {},
    silly testEngine   engines: { node: '*' },
    silly testEngine   _engineSupported: true,
    silly testEngine   _npmVersion: '1.0.8',
    silly testEngine   _nodeVersion: 'v0.4.7',
    silly testEngine   _defaultsLoaded: true,
    silly testEngine   dist: { shasum: '3b79b2a5105984b7fb11e436babbde441adfd3be' } }
    verbose caching /home/shripad/.npm/geoip/0.4.0final/package.json
    verbose mkdir done: /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm 755
    verbose unpack_ uid, gid [ 1000, 1000 ]
    verbose unpackTarget /home/shripad/CODE/Hydra-2.0/node_modules/geoip
    silly gunzTarPerm modes [ '755', '644' ]
    verbose success gzip "--decompress" "--stdout" "/home/shripad/.npm/geoip/0.4.0final/package.tgz"
    verbose success tar "-mvxpf" "-" "--no-same-owner" "-C" "/home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm"
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/.npmignore
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/index.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/LICENCE
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/.gitignore
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/package.json
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/wscript
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/city.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/city.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/node_geoip.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/region.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/country.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/global.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/utils.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/region.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/test.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/org.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/global.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/init.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/netspeed.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/country.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/utils.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/org.h
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/netspeed.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/src/test.cc
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/country.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/org.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/neco_test.sh
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/utils.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/test.sh
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/netspeed.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/city.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/test/region.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/test.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/country.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/org.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/city.coffee
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/netspeed.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/city.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/city.old.js
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/index.coffee
    silly asyncMap in gTP /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package/benchmark/region.js
    verbose gunzed /home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package
    verbose rm'ed /home/shripad/CODE/Hydra-2.0/node_modules/geoip
    verbose renamed [ '/home/shripad/CODE/Hydra-2.0/node_modules/___geoip.npm/package',
    verbose renamed   '/home/shripad/CODE/Hydra-2.0/node_modules/geoip' ]
    verbose has wscript [ undefined,
    verbose has wscript   { file: '/home/shripad/CODE/Hydra-2.0/node_modules/geoip/package.json',
    verbose has wscript     contributors: false,
    verbose has wscript     serverjs: false,
    verbose has wscript     wscript: true } ]
    silly testEngine { name: 'geoip',
    silly testEngine   description: 'GeoIP client for node',
    silly testEngine   version: '0.4.0final',
    silly testEngine   homepage: 'http://github.com/kuno/GeoIP',
    silly testEngine   author: 
    silly testEngine    { name: 'Guan \'kuno\' Qing',
    silly testEngine      email: 'neokuno at Gmail dot com' },
    silly testEngine   contributors: 
    silly testEngine    [ { name: 'Vladimir Dronnikov',
    silly testEngine        email: '[email protected]' },
    silly testEngine      { name: 'Konstantin Käfer',
    silly testEngine        email: '[email protected]' },
    silly testEngine      { name: 'Joe Vennix', email: '[email protected]' },
    silly testEngine      { name: 'artems', email: '[email protected]' } ],
    silly testEngine   repository: 
    silly testEngine    { type: 'git',
    silly testEngine      url: 'git://github.com/kuno/GeoIP.git' },
    silly testEngine   bugs: 
    silly testEngine    { email: '[email protected]',
    silly testEngine      url: 'http://github.com/kuno/GeoIP/issues' },
    silly testEngine   main: 'index.js',
    silly testEngine   directory: 
    silly testEngine    { src: './src',
    silly testEngine      test: './test',
    silly testEngine      misc: './misc',
    silly testEngine      sample: './sample',
    silly testEngine      benchmark: './benchmark' },
    silly testEngine   engine: { node: '>=0.4.0', npm: '1' },
    silly testEngine   script: { preinstall: 'node-waf configure build' },
    silly testEngine   licences: 
    silly testEngine    [ { type: 'LGPL2.1',
    silly testEngine        url: 'http://www.gnu.org/licenses/lgpl-2.1.txt' } ],
    silly testEngine   _id: '[email protected]',
    silly testEngine   scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
    silly testEngine   dependencies: {},
    silly testEngine   devDependencies: {},
    silly testEngine   engines: { node: '*' },
    silly testEngine   _engineSupported: true,
    silly testEngine   _npmVersion: '1.0.8',
    silly testEngine   _nodeVersion: 'v0.4.7',
    silly testEngine   _defaultsLoaded: true }
    verbose caching /home/shripad/CODE/Hydra-2.0/node_modules/geoip/package.json
    verbose loadDefaults [email protected]
    info preinstall [email protected]
    verbose unsafe-perm in lifecycle false
    verbose Setting uid from 0 1000
    verbose stack at uid setting Error
    verbose stack at uid setting     at exec (/usr/local/lib/node_modules/npm/lib/utils/exec.js:35:17)
    verbose stack at uid setting     at Array.0 (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:110:5)
    verbose stack at uid setting     at EventEmitter._tickCallback (node.js:126:26)
    silly exec sh "-c" "node-waf clean || true; node-waf configure build"
    info [email protected] Failed to exec preinstall script
    ERR! error installing [email protected] Error: [email protected] preinstall: `node-waf clean || true; node-waf configure build`
    ERR! error installing [email protected] `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
    ERR! error installing [email protected]     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
    ERR! error installing [email protected]     at ChildProcess.emit (events.js:67:17)
    ERR! error installing [email protected]     at ChildProcess.onexit (child_process.js:192:12)
    info unbuild /home/shripad/CODE/Hydra-2.0/node_modules/geoip
    verbose from cache /home/shripad/CODE/Hydra-2.0/node_modules/geoip/package.json
    info preuninstall [email protected]
    info uninstall [email protected]
    verbose unbuild [email protected] [ false,
    verbose unbuild [email protected]   '/usr/local/lib/node_modules',
    verbose unbuild [email protected]   '/home/shripad/CODE/Hydra-2.0/node_modules' ]
    info postuninstall [email protected]
    verbose installOne cb [email protected]
    ERR! [email protected] preinstall: `node-waf clean || true; node-waf configure build`
    ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
    ERR! 
    ERR! Failed at the [email protected] preinstall script.
    ERR! This is most likely a problem with the geoip package,
    ERR! not with npm itself.
    ERR! Tell the author that this fails on your system:
    ERR!     node-waf clean || true; node-waf configure build
    ERR! You can get their info via:
    ERR!     npm owner ls geoip
    ERR! There is likely additional logging output above.
    ERR! 
    ERR! System Linux 2.6.32-32-generic
    ERR! command "node" "/usr/local/bin/npm" "install" "[email protected]"
    verbose exit [ 1, true ]

from geoip.

shripadk avatar shripadk commented on August 15, 2024

sorry! works. ubuntu 10.04 doesn't have libgeoip by default.

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.