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

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

概述我是从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’ flo 我是从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 – 在Ubuntu服务器12.04.4上编译Node.js v0.11.12-release错误全部内容,希望文章能够帮你解决linux – 在Ubuntu服务器12.04.4上编译Node.js v0.11.12-release错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:http://outofmemory.cn/yw/1048859.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-25
下一篇2022-05-25

发表评论

登录后才能评论

评论列表(0条)

    保存