server complaints about GLIBC_2.15 and libSpark_Physics.so on centos 6.3 x64
funkoolow
Join Date: 2003-04-28 Member: 15917Members, WC 2013 - Supporter
hello there,
tryin to run the fresh linux server on centos 6.3 x64, pops out the infamous message mentioned in the wiki:
thanks in advance
tryin to run the fresh linux server on centos 6.3 x64, pops out the infamous message mentioned in the wiki:
./server_linux32 ./server_linux32: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./server_linux32) ./server_linux32: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/ns2server/ns2/libSpark_Core.so) ./server_linux32: /lib/libm.so.6: version `GLIBC_2.15' not found (required by /home/ns2server/ns2/libSpark_Physics.so) ./server_linux32: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/ns2server/ns2/libsteam_api.so)I saw the wiki says to install manually someextra libs but it only refers to ubuntu debian distros packages, can someone pls give the precise library name so that I can look for it on centos 6 or eventually set it up from source?
thanks in advance
Comments
You either need Centos 6.4 or higher or something like Ubuntu 12.04 LTS or 13.04.
Unless the Centos Developers release a newer glibc for Centos 6.3. This manual fix stated in the Wiki is rather useless, because GLIBCXX is also not being updated properly this way. Other things might be missing as well.
You try installing compiled files yourself (from another distro, newer vision of your distro). You can also always compile them yourself.
Maxunit mentions this works on 6.4, so I'd just upgrade (unless there is a reason not to)
Considering this is the C and C++ Standard library, they shouldn't have more dependencies I think. You can always check though with a programm called ldd.
I had to upgrade from Debian 6 to another Distro, since Debian 7 also only has GLIBC 2.13. Ubuntu was my choice, since it is based on Debian and Ubuntu 12.04 LTS has GLIBC 2.15 according to the shell command ldd --version.
I just downloaded the NS2 Server for Linux and will try to run it.
Another reason was, that Steam is compiled on Ubuntu and against GLIBC 2.15 and the NS2 Server also might be. No official word on that tho.
As you can see CentOS 6.4 only supports up to GLIBCXX_3.4.13
It seems that Ubuntu is the best best currently with these issues. Unless you want to self compile. Hopfully someone finds a simple workaround for this. I will also be researching this
But the NS2 devs could always link/compile against an older version I suppose, as long they don't need the features from a newer one.
just take the needed binaries from these packages and copy them directly to the folder where the server_linux32 binary is.
for libm.so.6
http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.4_i386.deb
and for libstdc++6:
http://ftp.br.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_i386.deb
worked for me.
greetz.
Simply run the server using the 'run.sh' script, e.g.:
~/.steam/bin32/steam-runtime/run.sh ./server_linux32
EDIT: damn, Max beat me to it!
You shouldn't link the server against the steam runtime as it doesn't require the steam client.
All a server needs is steamcmd to download and update the server.
Regarding the steam-runtime method, gonna try that later and report what happens
thanks for now for the info everyone
https://github.com/dgibbs64/linuxgameservers
http://danielgibbs.co.uk/scripts/
- open terminal
- move to /tmp dir - grab packages - extract files from deb packages (be aware that the ar command will always extract a data.tar.gz file so be sure to extract it before launching any subsequent ar command): - move needed files to the dir where your server_linux32 is (including symlinks): - start your server with server_linux32 command