1 Star 0 Fork 0

阿海 / deno-binary-for-centos7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
阿海 提交于 2021-03-23 11:26 . update README.md.

deno-binary-for-centos7

介绍

deno-binary-for-centos7

编译教程

第一步,安装所需软件包:

yum upgrade -y && yum install -y git gcc && yum clean packages

第二步,安装rust

curl -sSf https://sh.rustup.rs | sh -s -- -y

第三步,拉取deno代码,并进入deno代码目录

git clone https://github.com/denoland/deno.git && cd deno

第四步,开始编译

 ~/.cargo/env && cargo build --release

若deno发布新版本,则更新代码再次编译

 git pull origin master

 ~/.cargo/env && cargo build --release

编译后即可在deno/target/release目录下找到deno二进制文件。

注意项:

1、国内访问 crates.io 速度比较慢,可以使用清华大学提供的镜像站点 Rust crates.io 索引镜像使用帮助

2、Github访问速度太慢的话,可以用 Gitee 极速下载 的地址代替:https://gitee.com/mirrors/deno ,需要注意码云上的版本是否已同步到最新版!

3、rusty_v8编译需要比较长时间,可以在denoland/rusty_v8 下载相应系统的lib文件,放到 deno/target/release/gn_out/obj 目录下,并将名称改为:librusty_v8.a 即可极大缩短编译时间。

4、1.8.2后,要更新gcc到4.9.4,避免rust组件编译失败。

JavaScript
1
https://gitee.com/haimadongli001/deno-binary-for-centos7.git
git@gitee.com:haimadongli001/deno-binary-for-centos7.git
haimadongli001
deno-binary-for-centos7
deno-binary-for-centos7
master

搜索帮助