node.js - linux 下通过apt-get 安装的node为何找不到src/node_extensions.h???
PHP中文网
PHP中文网 2017-04-17 15:54:06
0
1
480

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

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
洪涛

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template