【go】Ubuntu 22.04 LTS golang go-ethereum编译安装

编译go

安装源自带的go 1.18.1

sudo apt install golang-go

编译安装go1.21.6

git clone -b go1.21.6 https://github.com/golang/go
cd go/src
bash make.bash

bin移动到/opt/go1.21.6

mkdir /opt/go1.21.6
sudo cp ~/Downloads/src/go/bin /opt/go1.21.6/ -r

卸载源里面的go1.18.1

sudo apt remove golang-go

编译/etc/profile,末尾新增内容

export PATH=/opt/go1.21.6/bin:/usr/local/cuda/bin:$PATH
export GOROOT=/home/yeqiang/Downloads/src/go

验证版本

编译go-ethereum

下载源码

git clone -b v1.13.0 https://github.com/ethereum/go-ethereum
cd go-ethereum
make all -j6

编译结果

相关推荐

  1. Ethereum 和 Layer2的关系

    2024-01-24 09:24:04       39 阅读
  2. linux 编译安装libzmq

    2024-01-24 09:24:04       54 阅读
  3. 库的编译安装

    2024-01-24 09:24:04       63 阅读
  4. LinuxLMNP编译安装

    2024-01-24 09:24:04       48 阅读
  5. centos 编译安装 make

    2024-01-24 09:24:04       61 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-24 09:24:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-24 09:24:04       101 阅读
  3. 在Django里面运行非项目文件

    2024-01-24 09:24:04       82 阅读
  4. Python语言-面向对象

    2024-01-24 09:24:04       91 阅读

热门阅读

  1. React和Vue的生态系统有何不同?

    2024-01-24 09:24:04       57 阅读
  2. Pytorch Tensor 维度变换学习记录

    2024-01-24 09:24:04       58 阅读
  3. PMP考試刷題20240124

    2024-01-24 09:24:04       57 阅读
  4. 《动手学深度学习(PyTorch版)》笔记1

    2024-01-24 09:24:04       63 阅读
  5. Vue 高频面试题

    2024-01-24 09:24:04       41 阅读
  6. C++入门【35-类访问修饰符】

    2024-01-24 09:24:04       44 阅读
  7. 【Go语言】常用变量类型的创建

    2024-01-24 09:24:04       50 阅读
  8. vue折叠展开transition动画使用keyframes实现

    2024-01-24 09:24:04       56 阅读
  9. C语言联合体(Union)在实战中的使用技巧

    2024-01-24 09:24:04       57 阅读
  10. python实例100第36例:求100之内的素数

    2024-01-24 09:24:04       52 阅读
  11. Hudi0.14.0集成Spark3.2.3(Spark SQL方式)

    2024-01-24 09:24:04       56 阅读