我试图在Amazon EC2上编译Node.js,但我甚至无法安装“build essential”。 问题在哪里?
谢谢。
sudo yum install build-essential Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile (...) No package build-essential available. Error: Nothing to do
./configure Checking for program g++ or c++ : not found Checking for program icpc : not found Checking for program c++ : not found error: could not configure a cxx compiler!
无法configurationcxx编译器!
build-essential是一个包含在aptitude (Debian)中的包,而不是Yum(RHEL)中的包。 也许你应该改变你的问题,提供有关核心问题的更多信息 – 即安装EC2工具?
yum的build-essential元软件包的(粗略的)相当于:
yum install make glibc-devel gcc patch
我假设你正在构buildnode.js,因为我有同样的问题。 我想你错过的是:
yum install gcc-c++
但是经过第一部分之后,你可能需要更多的东西。
它的重要性足以让这个更完整的替代品成为一个单独的条目
yum groupinstall "Development Tools"
除了gcc-c ++之外,我还需要安装openssl的开发包:
yum install openssl-devel
安装完之后,我可以通过http://nodejs.org/#download成功编译和安装node.js