search

Home  >  Q&A  >  body text

node.js - linux 下通过apt-get 安装的node为何找不到src/node_extensions.h???

之前是通过apt-get命令安装的node,但是在其安装目录中并没有找到src/extensins.h,不知道为何,求大神解释。
另外,通过apt-get命令安装的node和通过源码安装有和区别?

PHP中文网PHP中文网2786 days ago481

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 15:56:06

    apt-get is installed directly based on binary, which means apt-get will download the compiled binary file (naturally it cannot find src/extensins.h) and then install it. (However, since the software source is not updated simultaneously, the node version is generally not the latest)
    For source code installation, you need to go to the official website or github to download the node source code of any version (including the latest version) and then manually
    1, configure configure
    2 , make compile
    3, make install install

    reply
    0
  • Cancelreply