mac os x 安装 node.js 0.8.1 错误
发布于 3年前 作者 iweblog 1475 次浏览

源码安装错误:

…/deps/uv/src/unix/darwin.c: In function ‘uv_hrtime’:

…/deps/uv/src/unix/darwin.c:66: error: ‘Nanoseconds’ undeclared (first use in this function)

…/deps/uv/src/unix/darwin.c:66: error: (Each undeclared identifier is reported only once

…/deps/uv/src/unix/darwin.c:66: error: for each function it appears in.)

…/deps/uv/src/unix/darwin.c:66: error: expected ‘;’ before ‘enano’

…/deps/uv/src/unix/darwin.c:68: error: ‘enano’ undeclared (first use in this function)

…/deps/uv/src/unix/darwin.c:68: warning: implicit declaration of function ‘AbsoluteToNanoseconds’

…/deps/uv/src/unix/darwin.c:68: error: ‘AbsoluteTime’ undeclared (first use in this function)

…/deps/uv/src/unix/darwin.c:68: error: expected expression before ‘)’ token

make[1]: *** [/private/tmp/node-v0.8.1/out/Release/obj.target/uv/deps/uv/src/unix/darwin.o] Error 1

make: *** [node] Error 2

brew install node 也是出错:

Error: Failed executing: make install (node.rb:30)

请问大神这是怎么回事啊?

回到顶部