尝试安装 Node JS,但在 make ./configure 时遇到问题

Trying to install Node JS, but have problems while make ./configure

感谢这篇文章http://habrahabr.ru/post/95960/ 我正在尝试正确安装节点 js。但是在配置的时候,我遇到了一些没有安装包的问题。

Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for program gcc or cc           : /usr/bin/gcc 
Checking for gcc                         : ok  
Checking for library dl                  : not found 
Checking for library execinfo            : not found 
Checking for openssl                     : yes 
Checking for library rt                  : not found 
--- libeio ---
Checking for library pthread             : not found 
Checking for function pthread_create     : not found 
/usr/local/bin/node/deps/libeio/wscript:12: error: the configuration failed (see '/usr/local/bin/node/build/config.log')

有人可以帮我找到那些吗?我已经搜索过,并尝试通过 apt-get 管理器安装它,但我没有得到任何结果。我正在使用 Ubuntu 14.

你不能从你的默认包管理器 运行 安装 Node.js 下面的命令吗?

sudo apt-get update
sudo apt-get install nodejs

此外,您可能会发现这篇文章很有帮助,https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

我想 install/update 节点的最佳方法是使用 nvm(节点版本管理器)https://github.com/creationix/nvm

安装 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash

安装 node 4.1 nvm install 4.1

超级简单,您可以使用 nvm 做很多事情。只需查看文档即可。

如果你想编译,就像你正在做的那样,你必须安装所有需要的库。