linux – 在Ubuntu服务器12.04.4上编译Node.js v0.11.12-release错误

前端之家收集整理的这篇文章主要介绍了linux – 在Ubuntu服务器12.04.4上编译Node.js v0.11.12-release错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我是从git repo克隆node.js并尝试编译v0.11.12-release,但是有一个错误,我不知道如何解决它.以下是日志.

tericky@XXXXXXXX:/home/gitclone/node$make

make -C out BUILDTYPE=Release V=1

make[1]: Entering directory `/home/gitclone/node/out’
flock /home/gitclone/node/out/Release/linker.lock g++ -pthread -rdynamic -m64 -o /home/gitclone/node/out/Release/openssl-cli -Wl,–start-group /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/app_rand.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/apps.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/asn1pars.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/ca.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/ciphers.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/cms.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/crl.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/crl2p7.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/dgst.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/dh.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/dhparam.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/dsa.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/dsaparam.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/ec.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/ecparam.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/enc.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/engine.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/errstr.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/gendh.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/gendsa.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/genpkey.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/genrsa.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/nseq.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/ocsp.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/openssl.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/passwd.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/pkcs12.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/pkcs7.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/pkcs8.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/pkey.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/pkeyparam.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/pkeyutl.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/prime.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/rand.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/req.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/rsa.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/rsautl.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/s_cb.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/s_client.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/s_server.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/s_socket.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/s_time.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/sess_id.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/smime.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/speed.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/spkac.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/srp.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/ts.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/verify.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/version.o /home/gitclone/node/out/Release/obj.target/openssl-cli/deps/openssl/openssl/apps/x509.o /home/gitclone/node/out/Release/obj.target/deps/openssl/libopenssl.a -Wl,–end-group -ldl

flock: g++: No such file or directory

make[1]: * [/home/gitclone/node/out/Release/openssl-cli] Error 69

make[1]: Leaving directory `/home/gitclone/node/out’

make: * [node] Error 2

更新:

安装g后,一切都很好.

解决方法

看起来你没有g

安装build essential,它是编译Debian软件包所需的所有软件包的参考.它通常包括gcc / g编译器库和一些其他工具

sudo apt-get install build-essential

猜你在找的Linux相关文章