我正在使用此站点来遵循有关如何安装节点的命令:
https://github.com/joyent/node/wiki/Installation
这部分没有错误:
git clone --depth 1 git://github.com/joyent/node.git # or git clone git://github.com/joyent/node.git if you want to checkout a stable tag cd node git checkout v0.4.10 # optional. Note that master is unstable. export JOBS=2 # optional,sets number of parallel commands. mkdir ~/local
一旦我点击这个命令,我就得到了错误
root@tgwizman:/node# ./configure --prefix=$HOME/local/node Checking for program g++ or c++ : not found Checking for program icpc : not found Checking for program c++ : not found /node/wscript:228: error: could not configure a cxx compiler!
我该怎么做才能得到一个cxx编译器?
您应该只能在终端中运行以下内容:
sudo apt-get update sudo apt-get install build-essential
(此外,阅读https://help.ubuntu.com/community/CompilingSoftware以获取更多背景信息等)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。