how do I remove `GLIBC_2.27' requirement at compile time?

前端 未结 3 911
感情败类
感情败类 2021-01-19 07:34

I\'ve been using a docker image for c++ compilation. It\'s based on Ubuntu 18.04. When I attempt to run on some Ubuntu 16 systems, I get this message:

/lib/x86_64-li

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 08:22

    You need to build against an older glibc version. Very few distributions, if any, support that out of the box. The only practical way at the moment is to build on an older distribution.

    Some distributions with long support cycles offer newer GCC versions that do not require newer system compilers (such as Developer Toolset, which is available for CentOS and Red Hat Enterprise Linux).

提交回复
热议问题