Skip to content

GeoIP on Ubuntu 13.10 #68

Description

@JasonPunyon

On a fresh new Ubuntu 13.10 VM and running `sudo npm install geoip -g --verbose' gives me the following:

npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   'install',
npm verb cli   'geoip',
npm verb cli   '-g',
npm verb cli   '--verbose' ]
npm info using npm@1.3.15
npm info using node@v0.10.22
npm verb cache add [ 'geoip', null ]
npm verb cache add name=undefined spec="geoip" args=["geoip",null]
npm verb parsed url { protocol: null,
npm verb parsed url   slashes: null,
npm verb parsed url   auth: null,
npm verb parsed url   host: null,
npm verb parsed url   port: null,
npm verb parsed url   hostname: null,
npm verb parsed url   hash: null,
npm verb parsed url   search: null,
npm verb parsed url   query: null,
npm verb parsed url   pathname: 'geoip',
npm verb parsed url   path: 'geoip',
npm verb parsed url   href: 'geoip' }
npm verb lock geoip /home/jason/.npm/bf279f7b-geoip.lock
npm verb addNamed [ 'geoip', '' ]
npm verb addNamed [ null, '*' ]
npm verb lock geoip@ /home/jason/.npm/5bd2b521-geoip.lock
npm verb url raw geoip
npm verb url resolving [ 'https://registry.npmjs.org/', './geoip' ]
npm verb url resolved https://registry.npmjs.org/geoip
npm info trying registry request attempt 1 at 07:57:15
npm verb etag "54JYV06RG8G3VI9ZKE7K86K6U"
npm http GET https://registry.npmjs.org/geoip
npm http 304 https://registry.npmjs.org/geoip
npm verb etag geoip from cache
npm verb addNamed [ 'geoip', '0.4.12' ]
npm verb addNamed [ '0.4.12', '0.4.12' ]
npm verb lock geoip@0.4.12 /home/jason/.npm/077a4cd2-geoip-0-4-12.lock
npm info install geoip@0.4.12 into /usr/local/lib
npm info installOne geoip@0.4.12
npm info /usr/local/lib/node_modules/geoip unbuild
npm verb tar unpack /home/jason/.npm/geoip/0.4.12/package.tgz
npm verb lock tar:///usr/local/lib/node_modules/geoip /home/jason/.npm/d09ef08b-usr-local-lib-node-modules-geoip.lock
npm verb lock tar:///home/jason/.npm/geoip/0.4.12/package.tgz /home/jason/.npm/6e166fd4-son-npm-geoip-0-4-12-package-tgz.lock
npm info preinstall geoip@0.4.12
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb cache add [ 'nan@~0.5.1', null ]
npm verb cache add name=undefined spec="nan@~0.5.1" args=["nan@~0.5.1",null]
npm verb parsed url { protocol: null,
npm verb parsed url   slashes: null,
npm verb parsed url   auth: null,
npm verb parsed url   host: null,
npm verb parsed url   port: null,
npm verb parsed url   hostname: null,
npm verb parsed url   hash: null,
npm verb parsed url   search: null,
npm verb parsed url   query: null,
npm verb parsed url   pathname: 'nan@~0.5.1',
npm verb parsed url   path: 'nan@~0.5.1',
npm verb parsed url   href: 'nan@~0.5.1' }
npm verb cache add name="nan" spec="~0.5.1" args=["nan","~0.5.1"]
npm verb parsed url { protocol: null,
npm verb parsed url   slashes: null,
npm verb parsed url   auth: null,
npm verb parsed url   host: null,
npm verb parsed url   port: null,
npm verb parsed url   hostname: null,
npm verb parsed url   hash: null,
npm verb parsed url   search: null,
npm verb parsed url   query: null,
npm verb parsed url   pathname: '~0.5.1',
npm verb parsed url   path: '~0.5.1',
npm verb parsed url   href: '~0.5.1' }
npm verb addNamed [ 'nan', '~0.5.1' ]
npm verb addNamed [ null, '>=0.5.1-0 <0.6.0-0' ]
npm verb lock nan@~0.5.1 /home/jason/.npm/3d1b46c7-nan-0-5-1.lock
npm verb url raw nan
npm verb url resolving [ 'https://registry.npmjs.org/', './nan' ]
npm verb url resolved https://registry.npmjs.org/nan
npm info trying registry request attempt 1 at 07:57:17
npm verb etag "ESALFKE8SEQGC5PVJ17ODCBDG"
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm verb etag nan from cache
npm verb addNamed [ 'nan', '0.5.2' ]
npm verb addNamed [ '0.5.2', '0.5.2' ]
npm verb lock nan@0.5.2 /home/jason/.npm/1b8dbd1f-nan-0-5-2.lock
npm info install nan@0.5.2 into /usr/local/lib/node_modules/geoip
npm info installOne nan@0.5.2
npm info /usr/local/lib/node_modules/geoip/node_modules/nan unbuild
npm verb tar unpack /home/jason/.npm/nan/0.5.2/package.tgz
npm verb lock tar:///usr/local/lib/node_modules/geoip/node_modules/nan /home/jason/.npm/b7f72c54-e-modules-geoip-node-modules-nan.lock
npm verb lock tar:///home/jason/.npm/nan/0.5.2/package.tgz /home/jason/.npm/93642422--jason-npm-nan-0-5-2-package-tgz.lock
npm info preinstall nan@0.5.2
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build /usr/local/lib/node_modules/geoip/node_modules/nan
npm info build /usr/local/lib/node_modules/geoip/node_modules/nan
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/local/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/local/lib/node_modules/geoip/node_modules' ]
npm info linkStuff nan@0.5.2
npm verb linkBins nan@0.5.2
npm verb linkMans nan@0.5.2
npm verb rebuildBundles nan@0.5.2
npm info install nan@0.5.2
npm info postinstall nan@0.5.2
npm verb about to build /usr/local/lib/node_modules/geoip
npm info build /usr/local/lib/node_modules/geoip
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/local/lib/node_modules',
npm verb linkStuff   true,
npm verb linkStuff   '/usr/local/lib/node_modules' ]
npm info linkStuff geoip@0.4.12
npm verb linkBins geoip@0.4.12
npm verb linkMans geoip@0.4.12
npm verb rebuildBundles geoip@0.4.12
npm verb rebuildBundles [ 'nan' ]
npm info install geoip@0.4.12

> geoip@0.4.12 install /usr/local/lib/node_modules/geoip
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@0.12.1
gyp info using node@0.10.22 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.7.5+\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.10.22
gyp verb command install [ 'v0.10.22' ]
gyp verb install input version string "v0.10.22"
gyp verb install installing version: 0.10.22
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.10.22
gyp verb build dir attempting to create "build" dir: /usr/local/lib/node_modules/geoip/build
gyp verb build dir "build" dir needed to be created? /usr/local/lib/node_modules/geoip/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /usr/local/lib/node_modules/geoip/build/config.gypi
gyp verb config.gypi checking for gypi file: /usr/local/lib/node_modules/geoip/config.gypi
gyp verb common.gypi checking for gypi file: /usr/local/lib/node_modules/geoip/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/geoip/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/jason/.node-gyp/0.10.22/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/jason/.node-gyp/0.10.22',
gyp info spawn args   '-Dmodule_root_dir=/usr/local/lib/node_modules/geoip',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
Traceback (most recent call last):
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in 
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.11.0-12-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/geoip
gyp ERR! node -v v0.10.22
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok 
npm verb unsafe-perm in lifecycle false
npm info geoip@0.4.12 Failed to exec install script
npm info /usr/local/lib/node_modules/geoip unbuild
npm info preuninstall geoip@0.4.12
npm info uninstall geoip@0.4.12
npm verb true,/usr/local/lib/node_modules,/usr/local/lib/node_modules unbuild geoip@0.4.12
npm info postuninstall geoip@0.4.12
npm ERR! geoip@0.4.12 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the geoip@0.4.12 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.11.0-12-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "geoip" "-g" "--verbose"
npm ERR! cwd /usr/include
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.15
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/include/npm-debug.log
npm ERR! not ok code 0

Halp?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions