在Raspberry Pi树莓派上编译Node.js

标签: , , ,

之前在《在Raspberry Pi 2树莓派2上安装Node.js》说了怎么安装Node.js,但是用这个方法在第一代树莓派上不适用,只能到官网下载预编译的包,当然也可以自己编译。

首先安装相应的工具:

sudo apt-get install git python g++ make

然后下载Node.js的源码:

git clone https://github.com/nodejs/node.git

编译:

make -j4

安装:

sudo make install

赞赏

微信赞赏支付宝赞赏

随机文章:

  1. This document was successfully checked as XHTML 1.0 Strict!
  2. Raspberry Pi树莓派新系统SSH连接被拒绝的解决方法
  3. VBS创建正则表达式对象的两种方法
  4. 用VBS修改Windows用户密码
  5. 用C语言实现凯撒密码算法

留下回复