Giter Club home page Giter Club logo

Comments (2)

codeskyblue avatar codeskyblue commented on September 13, 2024

this is a message from https://groups.google.com/forum/#!topic/golang-nuts/C_XnXq9mpNU

unfortunately, no magic here.

you have several alternatives:

  1. if your program doesn't use cgo (either directly or indirectly, exclude those in the standard library), you can
    try build it with the binary distributions which is compiled with an old enough glibc.
  2. you can disable cgo, and rebuild go (set CGO_ENABLED=0, then run src/make.bash)
  3. alternatively to 3, if the only reason cgo is used is the net package, you can try build the net package with the
    "netgo" build tag. go build -a -v -tags netgo std; and then rebuild your program.
  4. use a chroot with an environment that matches the production server, and build Go and your program in that chroot.

from xgo.

karalabe avatar karalabe commented on September 13, 2024

You pretty much have your issue and solution there. The glibc on the machine you are trying to run the binary is too old and incompatible with the one used by xgo. You'll either need a custom docker image with an old glibc or a newer machine to run on.

I don't really see any motivation within the xgo project for fixing this issue and supporting deprecated glibc versions.

from xgo.

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.