Salam (means hello) :)
I'm trying to install node.js on my ubuntu 12.04 desktop. I've downloaded node package and followed readme file, ./configure
and make
commands worked fine, but make install
command results in this:
nasser@nasser-pc:~/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
Maybe try this?
sudo apt-get install g++
To begin with, go through Compiling Easy How To
./configure
make
Check out this answer if you're still having trouble. It's very easy to do from a PPA that I maintain.
通常,它是由旧版本引起的,检查版本gcc和gcc-c ++,它们应该比4.8更新,我用的是centos 6,所以我只能拥有4.4版本,你可以上传一个编译好的包https:/ /nodejs.org/dist/v4.2.2/node-v4.2.2-linux-x64.tar.gz希望能解决你的问题:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.