Tgw*_*man 7 terminal installation ubuntu node.js
我正在使用此站点来遵循有关如何安装节点的命令:
https://github.com/joyent/node/wiki/Installation
Run Code Online (Sandbox Code Playgroud)
这部分没有错误:
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
Run Code Online (Sandbox Code Playgroud)
一旦我点击这个命令,我就得到了错误
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!
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能得到一个cxx编译器?
Ian*_*ley 13
您应该只能在终端中运行以下内容:
sudo apt-get update
sudo apt-get install build-essential
Run Code Online (Sandbox Code Playgroud)
(另外,请阅读https://help.ubuntu.com/community/CompilingSoftware以获取更多背景信息等)
您缺少编译器.
只需输入:
sudo apt-get install g++
Run Code Online (Sandbox Code Playgroud)
本指南有这一切.
http://www.codediesel.com/linux/installing-node-js-on-ubuntu-10-04/
| 归档时间: |
|
| 查看次数: |
5501 次 |
| 最近记录: |