薩拉姆(意思是你好):)在Ubuntu 12.10上安裝nodejs
我想在我的Ubuntu 12.04桌面上安裝node.js。我已經下載節點包,跟着自述文件,./configure
和make
命令工作得很好,但make install
命令的結果是:
[email protected]:~/Downloads/node-v0.10.21$ sudo make install
[sudo] password for nasser:
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/home/nasser/Downloads/node-v0.10.21/out'
g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_IA32' -I../deps/v8/src -Wall -Wextra -Wno-unused-parameter -pthread -m32 -fno-strict-aliasing -O2 -fno-strict-aliasing -fno-tree-vrp -fno-rtti -fno-exceptions -MMD -MF /home/nasser/Downloads/node-v0.10.21/out/Release/.deps//home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw -c -o /home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o ../deps/v8/src/accessors.cc
make[1]: g++: Command not found
make[1]: *** [/home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error 127
make[1]: Leaving directory `/home/nasser/Downloads/node-v0.10.21/out'
make: *** [node] Error 2
可能重複http://stackoverflow.com/questions/7067176/help-on-installing- node-js-on-ubuntu-10-04-from-terminal) – hexacyanide
安裝C++編譯器。 – SLaks
@hexacyanide謝謝你,你是對的。 –