手把手教你搭建Facebook区块链Libra的开发环境
123458254
post on 2023-1-8 10:01:17
20
0
0
安装Move项目开发环境
1.打开https://developers.libra.org/docs/my-first-transaction网站,并使用git命令克隆项目
git clone https://github.com/libra/libra.git
2.配置yum源
使用以下命令,配置yum源
sudo gedit fedora-163.repo
sudo gedit fedora-updates-163.repo
其中fedora-163.repo文件的内容如下,直接贴过去即可
?948 ?sudo unzip -o protoc-3.9.0-linux-x86_64.zip -d /usr/local bin/protoc
? 950 ?sudo unzip -o protoc-3.9.0-linux-x86_64.zip -d /usr/local include/*
fedora-updates-163.repo文件的内容如下:
[updates]
name=Fedora 17 - $basearch - Updates - 163.com
failovermethod=priority
baseurl=http://mirrors.163.com/fedora/updates/17/$basearch/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f17&arch=$basearch
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
[updates-debuginfo]
name=Fedora 17 - $basearch - Updates - Debug - 163.com
failovermethod=priority
baseurl=http://mirrors.163.com/fedora/updates/17/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f17&arch=$basearch
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
[updates-source]
name=Fedora 17 - Updates Source - 163.com
failovermethod=priority
baseurl=http://mirrors.163.com/fedora/updates/17/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f17&arch=$basearch
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
使用以下命令,重新配置yum源:
yum makecache
yum repolist all
看到有如下返回,就大成告成了。
repo id repo name status
fedora Fedora 17 - x86_64 - 163.com enabled: 27,033
fedora-debuginfo Fedora 17 - x86_64 - Debug - 163.com disabled
fedora-source Fedora 17 - Source - 163.com disabled
updates Fedora 17 - x86_64 - Updates - 163.com enabled: 13,163
updates-debuginfo Fedora 17 - x86_64 - Updates - Debug - 163.com disabled
updates-source Fedora 17 - Updates Source - 163.com disabled
repolist: 40,196
3.安装protoc
使用以下命令安装protoc
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.8.0/protoc-3.8.0-linux-x86_64.zip
sudo unzip -o protoc-3.8.0-linux-x86_64.zip -d /usr/local bin/protoc
sudo unzip -o protoc-3.8.0-linux-x86_64.zip -d /usr/local include/*
4.安装Go语言
使用以下命令安装Go语言
sudo apt-get install golang
5.安装Libra Core环境
使用以下命令配置LibraCore
cd libra
./scripts/dev_setup.sh
第一个Libra的“hello world"项目
使用以下命令,进入libra的开发环境
./scripts/cli/start_cli_testnet.sh
进入到libra的命令行
使用以下命令就可以创造你第一个帐户了
create | c
BitMere.com is Information release platform,just provides information storage space services.
The opinions expressed are solely those of the author,Does not constitute advice, please treat with caution.
The opinions expressed are solely those of the author,Does not constitute advice, please treat with caution.
Write the first review