Closed xoyk closed 10 years ago
Магия!!
а кто нибудь разобрался (не что надо по шагам делать, а по сути) что происходит? смесь версий питона или что?
Find the locally installed gyp python module that is causing problems
1) $ python -c 'import gyp; print gyp.__file__'
/usr/lib/python2.6/site-packages/gyp/__init__.pyc
Move or rename the folder so that python can't find it
2) $ mv /usr/lib/python2.6/site-packages/gyp /usr/lib/python2.6/site-packages/gyp_backup
Ensure that python can't find it
3) $ python -c 'import gyp; print gyp.__file__'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named gyp
4) продолжаем установку, всё должно работать
при установке возникает ошибка: xoyk@xoyk-ubuntu:~/deodar/x11clip$ node-gyp configure build gyp info it worked if it ends with ok gyp info using node-gyp@0.13.0 gyp info using node@0.10.26 | linux | x64 gyp http GET http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz gyp http 200 http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz gyp http GET http://nodejs.org/dist/v0.10.26/SHASUMS.txt gyp http 200 http://nodejs.org/dist/v0.10.26/SHASUMS.txt gyp info spawn python gyp info spawn args [ '/usr/local/lib/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 '/home/xoyk/deodar/x11clip/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/xoyk/.node-gyp/0.10.26/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/xoyk/.node-gyp/0.10.26', gyp info spawn args '-Dmodule_root_dir=/home/xoyk/deodar/x11clip', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', 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/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/node-gyp/lib/configure.js:340:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.11.0-18-generic gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" "build" gyp ERR! cwd /home/xoyk/deodar/x11clip gyp ERR! node -v v0.10.26 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok