开发者

Node.js fails to install on Mac: "`openpty` was not declared"

Trying to install the latest Node.js, when I do make install the build fai开发者_如何学Cls with the error

../src/node_stdio.cc: In function ‘v8::Handle<v8::Value> node::OpenPTY(const v8::Arguments&)’:
../src/node_stdio.cc:262: error: ‘openpty’ was not declared in this scope

Any idea what could be causing this? I've tried the current Node master, Node 0.4.3, and 0.4.2 (which I'd installed previously). Clearly, something changed on my system to interfere with the build, but what? I'm running Mac OS 10.6 with XCode 3.2.5.


I'm not sure what is causing your issue, but I reccommend you look into this installer for Node.js and OSX: https://sites.google.com/site/nodejsmacosx/

The package will also install NPM, the node package manager. Nice and easy.


I am the person that provides the binary packages at https://sites.google.com/site/nodejsmacosx/

They are actually pretty vanilla installs. All I do is

  ./configure --prefix=/usr
  make
  make DESTDIR=/User/philipp/NodeJS/files install

and then run the Package Maker over it. So there is no real magic involved and all defaults are kept. This way all the documentation is actually valid for your install.


I had a similar issue yesterday and asked in node.js IRC. What worked for me was to switch to the v0.4 branch. I was then able to compile with no issues.


I'd recommend using Homebrew to install Node.js, as well as other *nix tools for Mac. See if that helps.

Apparently this was a known issue, but appears to have been fixed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜