Code Monkey home page Code Monkey logo

Comments (3)

theturtle32 avatar theturtle32 commented on July 21, 2024

It looks kind of like node and/or node-gyp is installed incorrectly.

Sent from my iPhone

On Aug 23, 2012, at 6:47 PM, Leafstream [email protected] wrote:

Ubuntu: 10.10, python 2.6.6, node.js 0.8.6(0.8.8), gun make 3.81, gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

when I install websocket:

[StReam:~/Program/node-v0.8.6/deps/npm] npm install websocket
npm http GET https://registry.npmjs.org/websocket
npm http 304 https://registry.npmjs.org/websocket +

[email protected] install /home/stream/Program/node-v0.8.6/deps/npm/node_modules/websocket
node install.js +
[websocket v1.0.7] Attempting to compile native extensions.
[websocket v1.0.7]
Native code compile failed!!
On Windows, native extensions require Visual Studio and Python.
On Unix, native extensions require Python, make and a C++ compiler.
more information:

[websocket v1.0.7] Attempting to compile native extensions.
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | ia32
gyp info spawn python
gyp info spawn args [ '/home/stream/.node-gyp/0.8.6/tools/gyp/gyp',
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 '/home/stream/Program/node-v0.8.6/deps/npm/node_modules/websocket/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/stream/.node-gyp/0.8.6/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/stream/.node-gyp/0.8.6',
gyp info spawn args '-Dmodule_root_dir=/home/stream/Program/node-v0.8.6/deps/npm/node_modules/websocket',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
python: can't open file '/home/stream/.node-gyp/0.8.6/tools/gyp/gyp': [Errno 2] No such file or directory
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:346:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Linux 3.3.0-996-generic-pae
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/stream/Program/node-v0.8.6/deps/npm/node_modules/websocket
gyp ERR! node -v v0.8.6
gyp ERR! node-gyp -v v0.6.8
gyp ERR! not ok
[websocket v1.0.7]
Native code compile failed!!
On Windows, native extensions require Visual Studio and Python.
On Unix, native extensions require Python, make and a C++ compiler.
Please help me, thank you!


Reply to this email directly or view it on GitHub.

from websocket-node.

GICodeWarrior avatar GICodeWarrior commented on July 21, 2024

This looks like a problem with your node installation.

If you have node installed in "/home/stream/Program/node-v0.8.6" why is node-gyp running from "/usr/local/bin/node-gyp"?

Why are you running npm from "~/Program/node-v0.8.6/deps/npm"?

How did you install node? Are other modules with native extensions compiling correctly?

If you want to workaround the issue, you could try "npm install node-gyp". However it seems like you should run a proper install of node instead.

from websocket-node.

theturtle32 avatar theturtle32 commented on July 21, 2024

I'm going to go ahead and close this, since no new information has been posted.

from websocket-node.

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.