1 Star 0 Fork 0

阿海 / deno-binary-for-centos7

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
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 即可极大缩短编译时间。

Comments ( 0 )

Sign in for post a comment

About

deno-binary-for-centos7 spread retract
Cancel

Releases (3)

All

Contributors

All

Activities

load more
can not load any more
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

Search