基于linaro-nano的apt系统 已成功编译Node.js 0.10.5和0.8.22和0.6.19,分别装在~/opt里,我用ln -s node来换版本的说,install全部是-g 已apt-get了libxml2-dev 10.5和8.22都一样出错,6.19因为太久装不了sm… 看log貌似是libxml2的问题,但这个已经apt装了,是不是全局路径有问题?才学几天的Linux菜鸟桑不起啊~~
* File : false @ false
* Stack:
* Error: NPM error: npm http GET https://registry.npmjs.org/http-error/0.0.1
* npm http GET https://registry.npmjs.org/simple-template/0.0.1
* npm http GET https://registry.npmjs.org/connect/1.8.7
* npm http GET https://registry.npmjs.org/optimist/0.3.4
* npm http GET https://registry.npmjs.org/mappings
* npm http GET https://registry.npmjs.org/dryice/0.4.10
* npm http GET https://registry.npmjs.org/netutil/0.0.1
* npm http GET https://registry.npmjs.org/async/0.1.21
* npm http GET https://registry.npmjs.org/amd-loader/0.0.4
* npm http GET https://registry.npmjs.org/smith.io/0.0.36
* npm http GET https://registry.npmjs.org/architect/0.1.4
* npm http GET https://registry.npmjs.org/connect-architect/0.0.6
* npm http GET https://registry.npmjs.org/smith/0.1.9
* npm http GET https://registry.npmjs.org/vfs-architect/0.0.2
* npm http GET https://registry.npmjs.org/rimraf/2.0.1
* npm http GET https://registry.npmjs.org/nodeunit/0.7.4
* npm http GET https://github.com/ajaxorg/jsDAV/tarball/209289355d69adde11dbcd0c83e6dd24a6d9184a
* npm http GET https://registry.npmjs.org/sinon/1.3.4
* npm http GET https://registry.npmjs.org/vfs-local
* npm http GET https://registry.npmjs.org/vfs-nodefs-adapter
* npm http GET https://github.com/ajaxorg/ace/tarball/cc2a2c9e056c6d4049f8849ec3ad72974de37177
* npm http GET https://github.com/ajaxorg/apf/tarball/145f65bd24ae83f041418dd01a9c51d278045f3f
* npm http GET https://github.com/ajaxorg/async.js/tarball/0b4ed5608a32c280a7690b5f52883d8d1fc0de08
* npm http GET https://github.com/ajaxorg/lib-v8debug/tarball/d2fac9b09724cb2e75e2807191eace9bc27d3b52
* npm http GET https://github.com/ajaxorg/packager/tarball/bee2a82c6d5e2875024bfdc83937e98092ccf04f
* npm http GET https://github.com/ajaxorg/treehugger/tarball/b22d7ad712f76a7e7b1070ab339d567dfbf059b1
* npm http 304 https://registry.npmjs.org/mappings
* npm WARN package.json mappings[@0](/user/0).1.5 No README.md file found!
* npm http 304 https://registry.npmjs.org/http-error/0.0.1
* npm http 304 https://registry.npmjs.org/optimist/0.3.4
* npm http 304 https://registry.npmjs.org/dryice/0.4.10
* npm WARN package.json http-error[@0](/user/0).0.1 No README.md file found!
* npm http 304 https://registry.npmjs.org/simple-template/0.0.1
* npm http 304 https://registry.npmjs.org/connect/1.8.7
* npm WARN package.json simple-template[@0](/user/0).0.1 No README.md file found!
* npm http 304 https://registry.npmjs.org/async/0.1.21
* npm http 304 https://registry.npmjs.org/netutil/0.0.1
* npm WARN package.json connect[@1](/user/1).8.7 No README.md file found!
* npm http 304 https://registry.npmjs.org/amd-loader/0.0.4
* npm http 304 https://registry.npmjs.org/smith.io/0.0.36
* npm http 304 https://registry.npmjs.org/architect/0.1.4
* npm http 304 https://registry.npmjs.org/smith/0.1.9
* npm http 304 https://registry.npmjs.org/connect-architect/0.0.6
* npm http 304 https://registry.npmjs.org/nodeunit/0.7.4
* npm http 304 https://registry.npmjs.org/rimraf/2.0.1
* npm http 304 https://registry.npmjs.org/vfs-architect/0.0.2
* npm http 304 https://registry.npmjs.org/vfs-local
* npm http 304 https://registry.npmjs.org/sinon/1.3.4
* npm http 304 https://registry.npmjs.org/vfs-nodefs-adapter
* npm http 200 https://github.com/ajaxorg/async.js/tarball/0b4ed5608a32c280a7690b5f52883d8d1fc0de08
* npm http 200 https://github.com/ajaxorg/jsDAV/tarball/209289355d69adde11dbcd0c83e6dd24a6d9184a
* npm http 200 https://github.com/ajaxorg/ace/tarball/cc2a2c9e056c6d4049f8849ec3ad72974de37177
* npm http 200 https://github.com/ajaxorg/apf/tarball/145f65bd24ae83f041418dd01a9c51d278045f3f
* npm http 200 https://github.com/ajaxorg/lib-v8debug/tarball/d2fac9b09724cb2e75e2807191eace9bc27d3b52
* npm http 200 https://github.com/ajaxorg/treehugger/tarball/b22d7ad712f76a7e7b1070ab339d567dfbf059b1
* npm http 200 https://github.com/ajaxorg/packager/tarball/bee2a82c6d5e2875024bfdc83937e98092ccf04f
* npm WARN package.json vfs-architect[@0](/user/0).0.2 No README.md file found!
* npm WARN package.json vfs-nodefs-adapter[@0](/user/0).3.0 No README.md file found!
* npm WARN package.json packager[@0](/user/0).1.0 No README.md file found!
* npm WARN engine connect[@1](/user/1).8.7: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"v0.8.22","npm":"1.2.14"})
* npm http GET https://github.com/c9/engine.io/tarball/5f6fb9e32caed4f3edbb9f8536a13a20435d3d69
* npm http GET https://registry.npmjs.org/graceful-fs
* npm http GET https://registry.npmjs.org/vfs-http-adapter
* npm http GET https://github.com/c9/smith/tarball/packing-fix
* npm http GET https://registry.npmjs.org/msgpack-js
* npm http GET https://registry.npmjs.org/mime
* npm http GET https://registry.npmjs.org/simple-mime
* npm http GET https://registry.npmjs.org/msgpack-js-browser
* npm http GET https://registry.npmjs.org/uglify-js
* npm http GET https://registry.npmjs.org/wordwrap
* npm http 304 https://registry.npmjs.org/graceful-fs
* npm http 304 https://registry.npmjs.org/mime
* npm http 304 https://registry.npmjs.org/vfs-http-adapter
* npm http 304 https://registry.npmjs.org/simple-mime
* npm http 304 https://registry.npmjs.org/msgpack-js
* npm http 304 https://registry.npmjs.org/uglify-js
* npm http 304 https://registry.npmjs.org/msgpack-js-browser
* npm http 304 https://registry.npmjs.org/wordwrap
* npm http 200 https://github.com/c9/engine.io/tarball/5f6fb9e32caed4f3edbb9f8536a13a20435d3d69
* npm http 200 https://github.com/c9/smith/tarball/packing-fix
* npm http GET https://github.com/c9/node-gnu-tools/tarball/568f40a73a4d2902b730c63a6cc04bee4be14e51
* npm http GET https://registry.npmjs.org/asyncjs/0.0.8
* npm http GET https://registry.npmjs.org/node-sftp/0.1.1
* npm http GET https://registry.npmjs.org/xmldom/0.1.2
* npm http GET https://registry.npmjs.org/formidable
* npm http GET https://registry.npmjs.org/formidable/1.0.9
* npm http GET https://registry.npmjs.org/jsftp
* npm http GET https://registry.npmjs.org/qs
* npm WARN excluding symbolic link tests/node_modules/smith -> ../..
* npm http 304 https://registry.npmjs.org/formidable
* npm http 304 https://registry.npmjs.org/node-sftp/0.1.1
* npm http 304 https://registry.npmjs.org/asyncjs/0.0.8
* npm http 304 https://registry.npmjs.org/formidable/1.0.9
* npm http 304 https://registry.npmjs.org/xmldom/0.1.2
* npm http 304 https://registry.npmjs.org/jsftp
* npm http 304 https://registry.npmjs.org/qs
* npm http 200 https://github.com/c9/node-gnu-tools/tarball/568f40a73a4d2902b730c63a6cc04bee4be14e51
* npm http GET https://registry.npmjs.org/tap
* npm WARN excluding symbolic link node_modules/vfs-child -> ../child
* npm WARN excluding symbolic link node_modules/vfs-composite -> ../composite
* npm WARN excluding symbolic link node_modules/vfs-http-transport -> ../http-transport
* npm http 304 https://registry.npmjs.org/tap
* npm http GET https://registry.npmjs.org/libxml/0.0.7
* npm http GET https://registry.npmjs.org/slide
* npm http GET https://registry.npmjs.org/runforcover
* npm http GET https://registry.npmjs.org/nopt
* npm http GET https://registry.npmjs.org/difflet
* npm http GET https://registry.npmjs.org/mkdirp
* npm http GET https://registry.npmjs.org/deep-equal
* npm http GET https://registry.npmjs.org/buffer-equal
* npm http GET https://registry.npmjs.org/glob
* npm http GET https://registry.npmjs.org/simple-mime
* npm http GET https://registry.npmjs.org/ws
* npm http 304 https://registry.npmjs.org/libxml/0.0.7
* npm http 304 https://registry.npmjs.org/slide
* npm http 304 https://registry.npmjs.org/deep-equal
* npm http 304 https://registry.npmjs.org/runforcover
* npm http 304 https://registry.npmjs.org/mkdirp
* npm http 304 https://registry.npmjs.org/nopt
* npm http 304 https://registry.npmjs.org/glob
* npm http 304 https://registry.npmjs.org/ws
* npm http 304 https://registry.npmjs.org/buffer-equal
* npm http 304 https://registry.npmjs.org/simple-mime
* npm http 304 https://registry.npmjs.org/difflet
* npm http GET https://registry.npmjs.org/bunker
* npm http GET https://registry.npmjs.org/abbrev
* npm http GET https://registry.npmjs.org/charm
* npm http GET https://registry.npmjs.org/traverse
* npm http GET https://registry.npmjs.org/deep-is
* npm http GET https://registry.npmjs.org/graceful-fs
* npm http GET https://registry.npmjs.org/minimatch
* npm http GET https://registry.npmjs.org/commander
* npm http GET https://registry.npmjs.org/tinycolor
* npm http GET https://registry.npmjs.org/options
* npm http GET https://registry.npmjs.org/inherits
* npm http 304 https://registry.npmjs.org/bunker
* npm http 304 https://registry.npmjs.org/abbrev
* npm http 304 https://registry.npmjs.org/deep-is
* npm http 304 https://registry.npmjs.org/charm
* npm http 304 https://registry.npmjs.org/traverse
* npm http 304 https://registry.npmjs.org/minimatch
* npm http 304 https://registry.npmjs.org/graceful-fs
* npm http 304 https://registry.npmjs.org/commander
* npm http 304 https://registry.npmjs.org/tinycolor
* npm http 304 https://registry.npmjs.org/options
* npm http 304 https://registry.npmjs.org/inherits
* npm http GET https://registry.npmjs.org/burrito
* npm http GET https://registry.npmjs.org/lru-cache
* npm http GET https://registry.npmjs.org/sigmund
*
* > ws[@0](/user/0).4.25 install /home/bigmusic/cloud9/node_modules/vfs-architect/node_modules/vfs/node_modules/ws
* > (node-gyp rebuild 2> builderror.log) || (exit 0)
*
*
* > libxml[@0](/user/0).0.7 preinstall /home/bigmusic/cloud9/node_modules/packager/node_modules/libxml
* > ./build.sh
*
* npm http 304 https://registry.npmjs.org/lru-cache
* npm http 304 https://registry.npmjs.org/burrito
* npm http 304 https://registry.npmjs.org/sigmund
* npm http GET https://registry.npmjs.org/mime
* npm http GET https://registry.npmjs.org/jsdom
* npm http 304 https://registry.npmjs.org/jsdom
* npm http 304 https://registry.npmjs.org/mime
* npm http GET https://registry.npmjs.org/traverse
* npm http GET https://registry.npmjs.org/uglify-js
* npm http GET https://registry.npmjs.org/htmlparser
* npm http GET https://registry.npmjs.org/request
* npm http GET https://registry.npmjs.org/cssom
* npm http GET https://registry.npmjs.org/contextify
* npm http GET https://registry.npmjs.org/cssstyle
* npm http 304 https://registry.npmjs.org/request
* npm http 304 https://registry.npmjs.org/uglify-js
* npm http 304 https://registry.npmjs.org/htmlparser
* npm http 304 https://registry.npmjs.org/traverse
* npm http 304 https://registry.npmjs.org/cssom
* npm http 304 https://registry.npmjs.org/cssstyle
* npm http 304 https://registry.npmjs.org/contextify
* Checking for program g++ or c++ : /usr/bin/g++
* Checking for program cpp : /usr/bin/cpp
* Checking for program ar : /usr/bin/ar
* Checking for program ranlib : /usr/bin/ranlib
* Checking for g++ : ok
* Checking for node path : not found
* Checking for node prefix : ok /home/bigmusic/opt/node-v0.8.22
* 'configure' finished successfully (2.296s)
* Waf: Entering directory `/home/bigmusic/cloud9/node_modules/packager/node_modules/libxml/support/o3/build'
* [1/3] cxx: hosts/node-o3/sh_node.cc -> build/Release/hosts/node-o3/sh_node_1.o
* 21:37:20 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-msse2', '-ffast-math', '-fno-strict-aliasing', '-fPIC', '-DPIC', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-IRelease', '-I..', '-IRelease/include', '-I../include', '-IRelease/hosts', '-I../hosts', '-IRelease/modules', '-I../modules', '-IRelease/deps', '-I../deps', '-I/home/bigmusic/opt/node-v0.8.22/include/node', '../hosts/node-o3/sh_node.cc', '-c', '-o', 'Release/hosts/node-o3/sh_node_1.o']
* g++: error: unrecognized command line option '-msse2'
* npm http GET https://registry.npmjs.org/bindings
* Waf: Leaving directory `/home/bigmusic/cloud9/node_modules/packager/node_modules/libxml/support/o3/build'
* Build failed: -> task failed (err #1):
* {task: cxx sh_node.cc -> sh_node_1.o}
* File "/home/bigmusic/opt/node-v0.8.22/bin/node-waf", line 16, in <module>
* Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
* File "/home/bigmusic/opt/node-v0.8.22/bin/../lib/node/wafadmin/Scripting.py", line 147, in prepare
* error(str(e))
* cp: cannot stat `build/Release/o3.node': No such file or directory
* npm http 304 https://registry.npmjs.org/bindings
* npm http GET https://registry.npmjs.org/qs
* npm http GET https://registry.npmjs.org/forever-agent
* npm http GET https://registry.npmjs.org/tunnel-agent
* npm http GET https://registry.npmjs.org/http-signature
* npm http GET https://registry.npmjs.org/cookie-jar
* npm http GET https://registry.npmjs.org/aws-sign
* npm http GET https://registry.npmjs.org/oauth-sign
* npm http GET https://registry.npmjs.org/form-data/0.0.8
* npm http GET https://registry.npmjs.org/json-stringify-safe
* npm http GET https://registry.npmjs.org/node-uuid
* npm http GET https://registry.npmjs.org/hawk
* npm ERR! libxml[@0](/user/0).0.7 preinstall: `./build.sh`
* npm ERR! `sh "-c" "./build.sh"` failed with 1
* npm ERR!
* npm ERR! Failed at the libxml[@0](/user/0).0.7 preinstall script.
* npm ERR! This is most likely a problem with the libxml package,
* npm ERR! not with npm itself.
* npm ERR! Tell the author that this fails on your system:
* npm ERR! ./build.sh
* npm ERR! You can get their info via:
* npm ERR! npm owner ls libxml
* npm ERR! There is likely additional logging output above.
*
* npm ERR! System Linux 3.0.62
* npm ERR! command "/home/bigmusic/opt/node-v0.8.22/bin/node" "/home/bigmusic/opt/node/bin/npm" "install" "."
* npm ERR! cwd /home/bigmusic/cloud9
* npm ERR! node -v v0.8.22
* npm ERR! npm -v 1.2.14
* npm ERR! code ELIFECYCLE
* npm http 304 https://registry.npmjs.org/cookie-jar
* npm http 304 https://registry.npmjs.org/http-signature
* npm http 304 https://registry.npmjs.org/tunnel-agent
* npm http 304 https://registry.npmjs.org/forever-agent
* npm http 304 https://registry.npmjs.org/qs
* npm http 304 https://registry.npmjs.org/json-stringify-safe
* npm http 304 https://registry.npmjs.org/node-uuid
* npm http 304 https://registry.npmjs.org/aws-sign
* npm http 304 https://registry.npmjs.org/oauth-sign
* npm http 304 https://registry.npmjs.org/form-data/0.0.8
* npm http 304 https://registry.npmjs.org/hawk
*
* > contextify[@0](/user/0).1.5 install /home/bigmusic/cloud9/node_modules/ace/node_modules/jsdom/node_modules/contextify
* > node-gyp rebuild
*
* gyp http GET http://nodejs.org/dist/v0.8.22/node-v0.8.22.tar.gz
* gyp http 200 http://nodejs.org/dist/v0.8.22/node-v0.8.22.tar.gz
* npm http GET https://registry.npmjs.org/assert-plus/0.1.2
* npm http GET https://registry.npmjs.org/asn1/0.1.11
* npm http GET https://registry.npmjs.org/ctype/0.5.2
* npm http GET https://registry.npmjs.org/boom
* npm http GET https://registry.npmjs.org/combined-stream
* npm http GET https://registry.npmjs.org/hoek
* npm http GET https://registry.npmjs.org/async
* npm http GET https://registry.npmjs.org/cryptiles
* npm http GET https://registry.npmjs.org/sntp
* npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
* npm http 304 https://registry.npmjs.org/asn1/0.1.11
* npm http 304 https://registry.npmjs.org/ctype/0.5.2
* npm http 304 https://registry.npmjs.org/hoek
* npm http 304 https://registry.npmjs.org/cryptiles
* npm http 304 https://registry.npmjs.org/async
* npm http 304 https://registry.npmjs.org/sntp
* npm http 304 https://registry.npmjs.org/combined-stream
* npm http 304 https://registry.npmjs.org/boom
* npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
* npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
* make: Entering directory `/home/bigmusic/cloud9/node_modules/vfs-architect/node_modules/vfs/node_modules/ws/build'
* CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
* SOLINK_MODULE(target) Release/obj.target/bufferutil.node
* SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
* COPY Release/bufferutil.node
* CXX(target) Release/obj.target/validation/src/validation.o
* SOLINK_MODULE(target) Release/obj.target/validation.node
* SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
* COPY Release/validation.node
* make: Leaving directory `/home/bigmusic/cloud9/node_modules/vfs-architect/node_modules/vfs/node_modules/ws/build'
* make: Entering directory `/home/bigmusic/cloud9/node_modules/ace/node_modules/jsdom/node_modules/contextify/build'
* CXX(target) Release/obj.target/contextify/src/contextify.o
* SOLINK_MODULE(target) Release/obj.target/contextify.node
* SOLINK_MODULE(target) Release/obj.target/contextify.node: Finished
* COPY Release/contextify.node
* make: Leaving directory `/home/bigmusic/cloud9/node_modules/ace/node_modules/jsdom/node_modules/contextify/build'
*
* > ace[@1](/user/1).0.0 postinstall /home/bigmusic/cloud9/node_modules/ace
* > node ./install.js -c
*
* - Source without filename passed to moduleDefines(). Skipping addition of define(...) wrapper.
* # ace modes ---------
* mode lisp
* mode objectivec
* mode c9search
* mode makefile
* mode latex
* mode yaml
* mode text
* mode groovy
* mode coldfusion
* mode java
* mode glsl
* mode xml
* mode stylus
* mode haml
* mode lucene
* mode scss
* mode css
* mode scala
* mode jsx
* mode sql
* mode html
* mode ruby
* mode lua
* mode coffee
* mode golang
* mode json
* mode xquery
* mode r
* mode luapage
* mode haxe
* mode jsp
* mode abap
* mode liquid
* mode pgsql
* mode typescript
* mode javascript
* mode php
* mode dart
* mode tex
* mode svg
* mode diff
* mode rhtml
* mode markdown
* mode sh
* mode c_cpp
* mode less
* mode rdoc
* mode perl
* mode textile
* mode scad
* mode powershell
* mode clojure
* mode tcl
* mode jade
* mode python
* mode ocaml
* mode csharp
* mode asciidoc
* # ace themes ---------
* theme clouds
* theme solarized_dark
* theme kr_theme
* theme idle_fingers
* theme eclipse
* theme solarized_light
* theme textmate
* theme tomorrow_night_bright
* theme ambiance
* theme chrome
* theme dawn
* theme tomorrow_night_eighties
* theme crimson_editor
* theme vibrant_ink
* theme merbivore
* theme pastel_on_dark
* theme merbivore_soft
* theme github
* theme xcode
* theme clouds_midnight
* theme tomorrow_night_blue
* theme twilight
* theme monokai
* theme dreamweaver
* theme cobalt
* theme mono_industrial
* theme tomorrow_night
* theme tomorrow
* # ace extensions ---------
* extensions static_highlight
* extensions textarea
* # ace key bindings ---------
* # ace worker ---------
* worker for javascript mode
* worker for coffee mode
* worker for css mode
* worker for json mode
* worker for xquery mode
* npm ERR!
* npm ERR! Additional logging details can be found in:
* npm ERR! /home/bigmusic/cloud9/npm-debug.log
* npm ERR! not ok code 0
*
* at ChildProcess.<anonymous> (/home/bigmusic/opt/node-v0.8.22/lib/node_modules/sm/node_modules/sourcemint-pm-sm/node_modules/sourcemint-pm-npm/lib/npm.js:77:29)
* at ChildProcess.EventEmitter.emit (events.js:99:17)
* at Process._handle.onexit (child_process.js:678:10)
* ERROR ***************************************************************************
* ERROR ***************************************************************************
* Error: While calling `sm install .` (cwd: /home/bigmusic/cloud9). See above for errors.
* File : /home/bigmusic/opt/node-v0.8.22/lib/node_modules/sm/node_modules/sourcemint-pm-sm/lib/commands/clone.js @ 64 : 37
* Stack:
* at ChildProcess.EventEmitter.emit (events.js:99:17)
* at Process._handle.onexit (child_process.js:678:10)
* ERROR ***************************************************************************
4 回复
看这行貌似libxml是正常的?!?!看晕了
* > [email protected] preinstall /home/bigmusic/cloud9/node_modules/packager/node_modules/libxml
* > ./build.sh
是G++编译O3的问题,找到解决方法了,但买了一堆书要看,过几天试试
http://ian-corbitt.com/cloud9-ide-and-nodejs-v0-6-15-on-beaglebone/
继续自言自语 是这样的,因为官方用sm安装的时候gcc编译libxml加了一个sse2的参数,导致libxml编译不成功,最后直接导致整个cloud9的依赖包安装失败
最后发现其实求助google不如求github,在官方的issue里找到答案,简单的关键字"arm"就能搜出来…真晕~
链接在上面那楼
简单说一下,要clone一下cloud9作者的libxml依赖包,然后改掉o3里面的sse2参数,把包编译好安装到全局,回到cloud9目录安装所有包,这时候安装libxml就会找回全局已安装好的le
下面是撸的过程:
git clone https://github.com/ajaxorg/cloud9.git cloud9
cd cloud9 && mkdir node_modules && cd node_modules
git clone https://github.com/ajaxorg/node-libxml.git libxml
cd libxml && git checkout v0.0.7 && git submodule init && git submodule update
vim support/o3/wscript ##Delete the -msse2 options, save and exit nano.
npm install -g
cd ~/cloud9
npm install