Discussion:
[golang-dev] how to build golang with a lower version kernal requirement?
f***@gmail.com
2018-11-30 05:33:01 UTC
Permalink
I build golang program in ubuntu 18.04 and try to run it on centos 7 and
ubunbu 16.04.
it hint , "kernel too old."

ldd --version ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27 #ubuntu 18.04 ldd
(Ubuntu GLIBC 2.23-3ubuntu1) 2.23 #ubuntu 16.04

glibc 2.24 above requires kernel 3.2 minimum glibc 2.23 requires kernel
2.6.32. minimum #ubuntu 16.04

Question:
1. how to build golang with a lower version kernel requirement?

2. on the other hand, if I build golang programe in ubuntu 16.04 , can it
be run on ubutu 18.04?
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ian Lance Taylor
2018-11-30 05:57:17 UTC
Permalink
I build golang program in ubuntu 18.04 and try to run it on centos 7 and ubunbu 16.04.
it hint , "kernel too old."
ldd --version ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27 #ubuntu 18.04 ldd (Ubuntu GLIBC 2.23-3ubuntu1) 2.23 #ubuntu 16.04
glibc 2.24 above requires kernel 3.2 minimum glibc 2.23 requires kernel 2.6.32. minimum #ubuntu 16.04
1. how to build golang with a lower version kernel requirement?
Build it on an older system with an older glibc.
2. on the other hand, if I build golang programe in ubuntu 16.04 , can it be run on ubutu 18.04?
Yes.

Ian
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...