Mac Leopardã§node-v0.8.7ããã«ãåºæ¥ã
node 0.6.xã¯Leopardã§ããã«ãåºæ¥ã¦ããã ãã©ã次ã®å®å®ç0.8.xã«ãªã£ã¦ãããã«ãåºæ¥ãã«å°ã£ã¦ã¾ãããMac Leopardにnode-v0.8.1.pkgで入れたnodeをアンインストールする - kanonjiの日記ã§ã¤ã³ã¹ãã¼ã©ã¼ã使ã£ã¦ã¿ãã¨ãã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªãåºå®ã§ãã¾ã好ã¿ãããªããã¿ã¤ãã«éãæ¶ãã¦ãã¾ã£ãã
解決ç
$ CC=gcc-4.2 CXX=g++-4.2 nvm install v0.8.7
ããã§ãã«ãåºæ¥ã¾ããã
CC=gcc-4.2 CXX=g++-4.2 ./configure && makeFix issues building node 0.6.15 on OS X 10.5 · Issue #3114 · nodejs/node-v0.x-archive · GitHub
Leopardã®ããã©ã«ãã®gccã ã¨ãã«ãåºæ¥ããgcc 4.2ã使ãå¿ è¦ãããã¨ã®äºãnvmã§å ¥ãã¦ããã©ãnvmã§ãä¸è¨ã®éããã«ãåºæ¥ã¾ããã
è£è¶³
0.8.7ã®ãã«ãåºæ¥ããã©ã対話ã¢ã¼ããã¨ã©ã¼ãã
$ nvm use v0.8.7 Now using node v0.8.7 $ node > Assertion failed: (!!(events & UV__IO_READ) ^ !!(events & UV__IO_WRITE)), function uv__stream_io, file ../deps/uv/src/unix/stream.c, line 732.
ãã«ãåºæ¥ãã®ã¯è¯ããã©ã対話ã¢ã¼ãã§èµ·åãããã¨ããã¨ã¨ã©ã¼ã«ãªãã¾ããã
`node < /dev/tty` doesn't seem to work as expected on OSX · Issue #3072 · nodejs/node-v0.x-archive · GitHubã®issueã§ç´ãããç´ã£ã¦ãªãã£ã¦ã³ã¡ã³ããæ¥ããã§ã対å¿ä¸ã®æ§åã
$ sudo node web.js
ã¡ããã©æ¸ãã¦ãã³ã¼ãã¯ãåããã¦ã¿ããåãã¿ãããªã®ã§ã対話ã¢ã¼ãã ã使ããªãã®ãªããã¾ããããªã«ä¸é½åã¯ç¡ãããªã
ããã©ã«ãã®gccã使ã£ãå ´åã®ã¨ã©ã¼
$ ./configure --prefix=/Users/myuser/tmp/node-v0.8.6 $ make [é·ããã«ãå¦çãé²ã¿ã»ã»ã»] LD_LIBRARY_PATH=/Users/myuser/tmp/node-v0.8.6/out/Release/lib.host:/Users/myuser/tmp/node-v0.8.6/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/tools/gyp; mkdir -p /Users/myuser/tmp/node-v0.8.6/out/Release/obj.target/v8_snapshot/geni; "/Users/myuser/tmp/node-v0.8.6/out/Release/mksnapshot" --log-snapshot-positions --logfile "/Users/myuser/tmp/node-v0.8.6/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/Users/myuser/tmp/node-v0.8.6/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" /bin/sh: line 1: 63221 Bus error "/Users/myuser/tmp/node-v0.8.6/out/Release/mksnapshot" --log-snapshot-positions --logfile "/Users/myuser/tmp/node-v0.8.6/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/Users/myuser/tmp/node-v0.8.6/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" make[1]: *** [/Users/myuser/tmp/node-v0.8.6/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 138 make: *** [node] Error 2
ãããªã¨ã©ã¼ã«ãªãã¾ããããªãã©ããã«ãã¯è©¦ãã¦ãã¦ãä¸è¨ã«snapshot.logã«è²ã æ¸ãã¦ãã£ãã±ã¼ã¹ããã£ããããªæ°ããããã ãã©ãä»åã¯ç©ºã£ã½ã§ããããªãã§ã ããã
Leopardã¯Pythonã®ãã¼ã¸ã§ã³ãããã©ã«ãã ã¨åããªã
python 2.6 or 2.7. The build tools distributed with Node run on python.
Installation · nodejs/node-v0.x-archive Wiki · GitHub
pythonãLeopardã®ããã©ã«ãã2.5ç³»ãªã®ã§ããã1åæ°ãããã¼ã¸ã§ã³ãå ¥ããå¿ è¦ãããã¾ãã
æ¸ããæ¥
2012-08-16
ä¾ã«ãã£ã¦ä¸æ¸ãã®ã¾ã¾æ¾ç½®ãã¦ã