14
Mar

How to arma2 on centos GLIBC 2.7 error

I was asked to setup GLIBC 2.7 to allow arma2 server to run on centos 6.4.

I have come up with the following steps:

#install dependancies

yum -y install libmpc-devel mpfr-devel

#Download GCC:
#home directory shouldnt get full, i tried using /usr/src first, ended up with rootfs full.

mkdir /home/src
cd /home/src
wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.7.1/gcc-4.7.1.tar.bz2

#Unpack:
tar xjf gcc-4.7.1.tar.bz2
cd gcc-5.7.1

#Compile:
./configure
#(if you encounter any errors deal with them accordingly by installing missing packages etc)

#open a screen
screen
./make -j5(if you have a cpu with 4 cores)

#ctrl a+d to break out of screen, allows make to run a little faster
#screen -r to resume to check status of make

#resume screen then run
./make install
#ctrl a+d to detach screen again, check status occasionally

echo /usr/local/lib/ > /etc/ld.so.conf.d/libs.conf

#setup new libstdc++
sudo rm /usr/lib/libstdc++.so /usr/lib/libstdc++.so.6
sudo ln -s /usr/lib/libstdc++.so.6.0.17 /usr/lib/libstdc++.so
sudo ln -s /usr/lib/libstdc++.so.6.0.17 /usr/lib/libstdc++.so.6
sudo chmod 755 /usr/lib/libstdc++.so.6.0.17

#create config at #SOMEDIRECTORY#/arma2oa-linux/server.cfg
#check server is ready to start

arma2oaserver check

#start server

arma2oaserver start

#check status

arma2oaserver status


Hope this can help the people out there with a full set of instructions of how to get this working.