美文网首页
在ubunut上源码安装nodejs

在ubunut上源码安装nodejs

作者: AISpider | 来源:发表于2018-11-27 14:39 被阅读14次

1.git上获取node.js源码

$ sudo git clone https://github.com/nodejs/node.git
Cloning into 'node'...

2.修改目录执行权限

$ sudo chmod -R 755 node

3.使用 ./configure 创建编译文件

$ cd node
$ sudo ./configure
$ sudo make
$ sudo make install

这里需要注意,如果执行sudo ./configure 报错如下:

WARNING: failed to autodetect C++ compiler version (CXX=g++)
WARNING: failed to autodetect C compiler version (CC=gcc)
ERROR: No acceptable C compiler found!

       Please make sure you have a C compiler installed on your system and/or
       consider adjusting the CC environment variable if you installed
       it in a non-standard prefix.

解决方案:
先确认ubuntu是否安装了python,并且为python2x版本。然后
a>如果你的ubunut下没有yum,先安装yum

$ sudo apt-get install  yum

b>安装gcc 编译工具

$ sudo yum  install  gcc-c++

c>安装 build-essential

sudo apt-get install build-essential 

相关文章

  • 在ubunut上源码安装nodejs

    1.git上获取node.js源码 2.修改目录执行权限 3.使用 ./configure 创建编译文件 这里需要...

  • Linux 升级或安装Python3.x

    升级或安装Python3.x 安装依赖库 centos ubunut可以直接使用apt安装源码安装可能需要sudo...

  • nodejs安装(linux和windows)

    1 Linux下源码安装nodejs centos安装nodejs和npm 2 windows下安装nodejs ...

  • CentOS7上安装Nodejs

    CentOS7上安装Nodejs 下载源码 解压源码,并重命名源码 编译安装 配置NODE_HOME,进入prof...

  • Apache Kylin-2.6安装部署

    1. Kylin源码编译 1.1 安装Maven 1.2 安装Git 1.3 安装nodejs 注意:nodejs...

  • Node.js安装

    1.Ubuntu下Nodejs安装: Node.js源码方式安装: 安装依赖包: Github上获取Node.js...

  • linux 下nodejs安装

    一. nodejs 源码安装 1. node js的源码包下载地址:http://nodejs.org/dist/...

  • Nodejs安装 & forever让Nodejs应用后

    安装nodejs 安装依赖包 下载源码包 配置、编译、安装 配置nodejs环境 测试是否安装成功 forever...

  • Mac上Nodejs环境搭建

    在Mac上可以通过安装包安装、二进制库安装和源码安装3种方式来进行Nodejs环境搭建。 一、安装包安装 这种方式...

  • 安装node

    源码安装 ①下载源码 前往https://nodejs.org/en/download/ 选择想要安装的版本复制...

网友评论

      本文标题:在ubunut上源码安装nodejs

      本文链接:https://www.haomeiwen.com/subject/kddgqqtx.html