Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 fails 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.

like image 774
Trevor Burnham Avatar asked Nov 29 '25 15:11

Trevor Burnham


2 Answers

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.

like image 133
Luciano Fiandesio Avatar answered Dec 01 '25 07:12

Luciano Fiandesio


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.

like image 29
user908051 Avatar answered Dec 01 '25 05:12

user908051



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!