Installing the compilation tool GCC 4.2+
# #检查命令, the system prompts g++ program does not install [email protected]:~$ g++ -vthe program ' g++ ' is currently not installed. you can install it by typing:sudo apt-get install g++# #安装命令 [EMAIL PROTECTED]:~$ SUDO APT-GET INSTALL GCC g++# #输入密码 [sudo] password for wh:# #安装开始Reading package lists... donebuilding dependency tree reading state information... done# #此处省略一万字 ... setting up g++-4.8 (4.8.4-2ubuntu1~14.04) setting up g++ (4:4.8.2-1UBUNTU6) ...update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c + +) in auto mode# #安装结束 # #再次检查 [email protected]:~$ g++ -vusing built-in specs.# #此处省略一万字 ......gcc version 4.8.4 ( ubuntu 4.8.4-2ubuntu1~14.04) # #安装成功 [email protected]:~$
Installing the Build tool GNU make 3.81+
# #检查命令, the system prompts you not to make this file or directory [email protected]:~$ make-v-bash:/usr/bin/make:no such file or directory# #安装命令 [email protected]:~$ sudo apt-get install make# #安装开始Reading Package lists ... donebuilding Dependency tree# #此处省略一万字 ... Setting up make (3.81-8.2UBUNTU3) ... # #安装结束 # #再次检查 [email protected]:~$ make-vgnu make 3.81Copyright (C) 2006 Free Softwar E Foundation, inc.# #此处省略一万字 ... Built for i686-pc-linux-gnu# #安装成功 [email protected]:~$
Dependent packet python 2.7.x check, System is installed by default, if you want to use multiple versions of Python please participate in-python multi-version management
# #检查命令 [email protected]:~$ python-vpython 2.7.6[email protected]:~$
Download and unzip the soft package-official
# #下载 [email protected]:~$ wget-c https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz--2015-08-15 14:18:58--https:// Nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gzresolving nodejs.org (nodejs.org) ... 165.225.133.150Connecting to Nodejs.org (nodejs.org) |165.225.133.150|:443 ... connected.# #此处省略一万字, and wait ... 2015-08-15 14:23:03 (81.3 kb/s)-' node-v0.12.7.tar.gz ' saved [20063992/20063992]# #解压 [email protected]:~$ tar-xzf node-v 0.12.7.tar.gz
Compiling the installation
# #构建 && compile && install [email protected]:~$ cd node-v0.12.7[email protected]:~/node-v0.12.7$./configure & & Make && sudo make install# #此处省略一万字 and wait for ... # #第二天, check results, successful version 0.12.7[email protected]:~/node-v0.12.7$ node -vv0.12.7[email protected]:~/node-v0.12.7$
Ubuntu Server 14.04.3 LTS compiled installation NodeJS