ERROR: not found /lib64/libc.so.6: version `GLIBC_2.14

542 views
Skip to first unread message

Josh Kamau

unread,
Sep 26, 2014, 8:48:14 AM9/26/14
to golang-nuts
When i compile a certain library, (https://bitbucket.org/liamstask/goose/)  it runs perfectly on my fedora20. When i send the binary to the server (centos 6.5), i get the below error when i run it. 

./goose:' not found /lib64/libc.so.6: version `GLIBC_2.14 (required by ./goose)

Does it mean that the library is not pure go and that it requires some c libraries that are not statically compiled with it?

If i do a simple hello world and send it to the same sever, it works perfectly. 

Josh 


Ian Lance Taylor

unread,
Sep 26, 2014, 9:23:13 AM9/26/14
to Josh Kamau, golang-nuts
By default, even programs that are pure Go do link aginst libc if they
do any DNS lookups or user name lookups. This is because those
operations are highly system-dependent to deal with things like
firewalls and LDAP.

You can force the use of a pure-Go DNS lookup by building with "-tags
netgo". Note that that means that your program will not honor the
/etc/nsswitch.conf file. Or you can build your program on your CentOS
machine.

Ian

Josh Kamau

unread,
Sep 26, 2014, 10:06:50 AM9/26/14
to Ian Lance Taylor, golang-nuts
Thanks Ian, 

are " DNS lookups or user name lookups" the only standard lib apis that link agains libc? 

Josh

Ian Lance Taylor

unread,
Sep 26, 2014, 10:27:42 AM9/26/14
to Josh Kamau, golang-nuts
On Fri, Sep 26, 2014 at 7:06 AM, Josh Kamau <joshn...@gmail.com> wrote:
>
> are " DNS lookups or user name lookups" the only standard lib apis that link
> agains libc?

At present, yes. Specifically the net and os/user packages.

Ian

Josh Kamau

unread,
Sep 26, 2014, 10:29:38 AM9/26/14
to Ian Lance Taylor, golang-nuts
Thanks alot Ian.
Reply all
Reply to author
Forward
0 new messages