2014-01-11 2 views
3

저는 node.js로 시작하여 node-xmpp 및 node-expat를 설치하려고하는 벽에 부딪혔습니다. 그것은 노드 - gyp 재건은 일반적인 원인 것 같습니다.node-gyp 재 구축 오류로 인해 node-xmpp 또는 node-expat을 설치할 수 없습니다.

저는 우분투 10.04입니다. npm install node-expat를 실행 한 후, 나는 다음과 같은 출력을 얻을 : 당신이 제공 할 수있는 어떤 도움

npm http GET https://registry.npmjs.org/node-expat 
npm http 200 https://registry.npmjs.org/node-expat 
npm http GET https://registry.npmjs.org/nan 
npm http 200 https://registry.npmjs.org/nan 

> [email protected] install /root/node_modules/node-expat 
> node-gyp rebuild 

Traceback (most recent call last): 
    File "/root/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module> 
    sys.exit(gyp.script_main()) 
    File "/root/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 534, in script_main 
    return main(sys.argv[1:]) 
    File "/root/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 527, in main 
    return gyp_main(args) 
    File "/root/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 503, in gyp_main 
    options.circular_check) 
    File "/root/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 129, in Load 
    params['parallel'], params['root_targets']) 
    File "/root/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2687, in Load 
    generator_input_info) 
    File "/root/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 594, in LoadTargetBuildFilesParallel 
    parallel_state.pool = multiprocessing.Pool(8) 
    File "/usr/lib/python2.6/multiprocessing/__init__.py", line 227, in Pool 
    return Pool(processes, initializer, initargs) 
    File "/usr/lib/python2.6/multiprocessing/pool.py", line 84, in __init__ 
    self._setup_queues() 
    File "/usr/lib/python2.6/multiprocessing/pool.py", line 131, in _setup_queues 
    self._inqueue = SimpleQueue() 
    File "/usr/lib/python2.6/multiprocessing/queues.py", line 328, in __init__ 
    self._rlock = Lock() 
    File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 117, in __init__ 
    SemLock.__init__(self, SEMAPHORE, 1, 1) 
    File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__ 
    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) 
OSError: [Errno 38] Function not implemented 
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onCpExit (/root/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 2.6.18-028stab093.2 
gyp ERR! command "node" "/root/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /root/node_modules/node-expat 
gyp ERR! node -v v0.10.24 
gyp ERR! node-gyp -v v0.12.1 
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the node-expat 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 node-expat 
npm ERR! There is likely additional logging output above. 

npm ERR! System Linux 2.6.18-028stab093.2 
npm ERR! command "node" "/root/local/bin/npm" "install" "node-expat" 
npm ERR! cwd /root 
npm ERR! node -v v0.10.24 
npm ERR! npm -v 1.3.23 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /root/npm-debug.log 
npm ERR! not ok code 0 

많은 감사합니다.

업데이트 : 여기 관련 오류 메시지는 OSError: [Errno 38] Function not implemented이며 해결 방법을 찾았습니다.

+0

이 질문을 참조하십시오 : http://stackoverflow.com/questions/3314031/django-celery-implementation-oserror-errno-38-function-not-implemented 및 HTTP ://stackoverflow.com/questions/6033599/oserror-38-errno-38-with-multiprocessing – user568109

+0

나를 트랙에 올려 주셔서 감사합니다 @ user568109. 관련 오류 메시지를 언급하는 질문을 업데이트합니다. – user577268

답변

1
sudo apt-get install build-essential 
sudo apt-get install libssl-dev 
+0

실행하기 위해 하나 또는 두 개의 명령을 게시하는 것이 아니라 문제가 무엇인지 설명하고이 명령을 실행하는 것이 왜 효과가 있는지 설명하는 것이 좋습니다. – Dukeling

관련 문제