Giter VIP home page Giter VIP logo

Comments (1)

admininfon avatar admininfon commented on June 30, 2024
  • Golang 编译步骤与问题汇总:
  1. centos:latest 镜像编译安装QConf
  2. 更新DNF与yum, LInk:https://haydenjames.io/fix-error-failed-to-download-metadata-for-repo-appstream-centos-8/
dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
  1. 建立软链接: ln -s /usr/local/qconf/lib/libqconf.so /usr/lib64/libqconf.so 未找到libqconf.so解决方案
  2. go代理链接失败: go env -w GOPROXY=https://goproxy.cn,direct 解决方案
  3. 编译报错[build constraints exclude all Go files]: go build -o main-cli -ldflags "-L qconf -L m -s -w" . 添加cgo编译参数解决
  4. 感觉镜像比较大, 可以使用FROM ... AS build, COPY --from=build $DIST_DIR/bin $RPC_DIR/bin 压缩进新镜像减小体积

from qconf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.