I’m trying to build node.js in a debootstrap environment (which can be thought as a very basic Debian installation).
When I call:
make -f Makefile.cmake
It results in the following error:
Linking CXX executable default/node
CMakeFiles/node.dir/src/node_stdio.cc.o: In function `OpenPTY':
/home/node-v0.4.11/src/node_stdio.cc:261: undefined reference to `openpty'
collect2: ld returned 1 exit status
make[3]: *** [default/node] Error 1
make[3]: Leaving directory `/home/node-v0.4.11/build'
make[2]: *** [CMakeFiles/node.dir/all] Error 2
make[2]: Leaving directory `/home/node-v0.4.11/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/node-v0.4.11/build'
make: *** [package] Error 2
I couldn’t find a Debian package for openpty. How can I make it build?
I finally tried
which worked.