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

时间:2014-04-25 15:16:34

标签: linux node.js ubuntu compiler-errors

我从git repo克隆node.js并尝试编译v0.11.12-release,但是有一个错误,我不知道如何解决它。以下是日志。< / p>

  

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

     

make -C out BUILDTYPE = Release V = 1

     

make [1]:进入目录`/ home / gitclone / node / out&#39;     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 /发布/ 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 /发布/ 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 /发布/ 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 /发布/ 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 / gitclo ne / 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 ++:没有这样的文件或目录

     

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

     

make [1]:离开目录`/ home / gitclone / node / out&#39;

     

make: * [node]错误2

更新

安装g ++之后,一切都很好。

1 个答案:

答案 0 :(得分:20)

看起来你没有g++

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

sudo apt-get install build-essential