How to compile/install node.js(could not configure a cxx compiler!) (Ubuntu).

前端 未结 7 1200
盖世英雄少女心
盖世英雄少女心 2020-12-02 07:25

How can I compile/install node.js on Ubuntu? It failed with an error about cxx compiler.

7条回答
  •  忘掉有多难
    2020-12-02 08:01

    If like me, you are attempting to install this on an AWS instance running Amazon Linux AMI (which looks to be a cut down version CentOS):

    Install base tools:

    yum groupinstall "Development Tools"

    Now install openssl-devel:

    yum install openssl-devel

    Node should compile fine now.

提交回复
热议问题