View Full Version : Problem getting Linux BF2 server running
Manaz
06-15-2005, 05:07 AM
Hi all,
I've downloaded and installed the Linux dedicated server, but I'm getting an error when I run it - it is telling me it can't find libstdc++.so.5 (or similar, I don't have the error in front of me).
Any suggestions?
evs_pete
06-15-2005, 05:20 AM
you need to install a .rpm file with libstdc++5 in it
heres a link to get you started:
http://rpm.pbone.net/index.php3/stat/4/idpl/1034749/com/libstdc++5-3.3.1-4sls.i586.rpm.html
Manaz
06-15-2005, 10:12 AM
yum shows that library as installed already...
Kommander
06-15-2005, 01:38 PM
i have the same problem
ipx11222:/home/derkommander/bf2/bf2# ./start.sh
/home/derkommander/bf2/bf2/bin/ia-32/bf2_f: relocation error: /home/derkommander/bf2/bf2/bin/ia-32/bf2_f: symbol _ZNSbIwSt11char_traitsIwESaIwEE20_S_empty_rep_stor ageE, version GLIBCPP_3.2 not defined in file libstdc++.so.5 with link time reference
Manaz
06-15-2005, 02:07 PM
That's the second part of the error I get, if I put the libstdc++ library in with the rest of the libraries it ships with.
The documentation that ships with the dedicated server says that it's dynamically linked, and should work with any version of libstdc++ - I wish it did :(
Cartman1971
06-15-2005, 02:49 PM
Just installed on a server running fedora core 3.
You need to install an older version of the lib than the one that comes with the standard installation. BF2 is not the only programm with this problem so there is an official compatibility RPM.
Just do
yum install compat-libstdc++.i386
and you should be fine.
Kommander
06-15-2005, 03:16 PM
i canīt find a compat librarie for debian 3.0 or 3.1 :(
Manaz
06-15-2005, 09:16 PM
Just installed on a server running fedora core 3.
You need to install an older version of the lib than the one that comes with the standard installation. BF2 is not the only programm with this problem so there is an official compatibility RPM.
Just do
yum install compat-libstdc++.i386
and you should be fine.
I'm running FC4 - and that package isn't available through yum it seems. I'll try to find it manually as an RPM I guess.
evs_pete
06-16-2005, 01:42 AM
i gave a link to that .rpm above
http://rpm.pbone.net/index.php3/sta...s.i586.rpm.html
Manaz
06-16-2005, 09:17 AM
i gave a link to that .rpm above
http://rpm.pbone.net/index.php3/sta...s.i586.rpm.html
I wasn't sure if that RPM suited FC4 - cheers!
Manaz
06-16-2005, 10:01 AM
Doesn't work - and a newer version is already installed anyway (4.0.0.8).
I've read somewhere that there's a compatibility version of the libstdc++ libraries around, for precisely this reason - another online game server requires them - but I can't find the link any more. :(
Manaz
06-16-2005, 01:37 PM
OK.
I've found compat-libstdc++ with yum/up2date - but then once I install it, it tells me it needs GCC_3.3.
/usr/local/games/bf2/bin/ia-32/bf2_f: /usr/local/games/bf2/bin/ia-32/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libstdc++.so.5)
So much for yum/up2date solving dependency issues... :(
I hope they decide to supply the necessary libraries and hard-link them in the full version - I know soft-linking is "nicer", but if they supply the libraries and hard-link to them, at least the bloody thing works...
evs_pete
06-16-2005, 04:30 PM
OK.
I've found compat-libstdc++ with yum/up2date - but then once I install it, it tells me it needs GCC_3.3.
So much for yum/up2date solving dependency issues... :(
I hope they decide to supply the necessary libraries and hard-link them in the full version - I know soft-linking is "nicer", but if they supply the libraries and hard-link to them, at least the bloody thing works...
I completely agree, its just hard to keep up with all the distros and how often they change.
|RS|Osprey
06-17-2005, 02:17 AM
Hey Fellas are you still having this problem?
I just went ahead and launched our 64 Man BF2 server and I got the same error. I am very new to Linux so if anyone is kind enough to walk me through it, I would greatly appreciate it.
Here is the error I have
error while loading shared libraries: libstdc++.so.6:cannot open shared object file :No such file or directory.
I am running SUSE 9.2 64Bit distro.
inker
06-18-2005, 12:27 AM
Make sure yall install the rpm, make sure it's in your library PATH (/etc/ld.so.conf)... THEN you gotta run 'ldsoconfig'.
Hope this helps.
Manaz
06-20-2005, 12:16 AM
Well, the full retail version has been released, and it works on my system without any issues - didn't have to fiddle around with it.
Seems that the dynamic linking that EA talked about (where it would work with any version of the libstdc++ library) does work after all.
Happy days! :)
|RS|Osprey
06-20-2005, 03:05 AM
Well I installed the new server package and I still get the same error. Thanks inker, but I am way to new to Linux to try your very helpfull suggestions. I need literally step by step instructions.
Im just pissed because Im really thinking I should have stuck with windows on this new server.
If anyone could help I really appreciate it. The thing that really erks is its a new AMD 64 4000+ w/ 2GB of ram on a monster bandwith line just sitting there not working.
Someone just stab me right now.
inker
06-20-2005, 12:51 PM
Well I installed the new server package and I still get the same error. Thanks inker, but I am way to new to Linux to try your very helpfull suggestions. I need literally step by step instructions.
Im just pissed because Im really thinking I should have stuck with windows on this new server.
If anyone could help I really appreciate it. The thing that really erks is its a new AMD 64 4000+ w/ 2GB of ram on a monster bandwith line just sitting there not working.
Someone just stab me right now.
What distribution of linux are you running? Perhaps I could step-by-step this out for ya....
ElevenBravo
06-23-2005, 03:37 AM
I fought this problem all day today.
Solution, update your gcc to 3.4.x
From the promt type
gcc --version
If its below 3.4.x you need to install the updated rpm.
gateway
06-24-2005, 11:01 PM
im seeing the same thing on my box..
[root@vision3 bf2]# ./start.sh
/home/games/bf2/bin/ia-32/bf2_f: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
[root@vision3 bf2]# ls -la /usr/lib/libstdc++.so*
lrwxrwxrwx 1 root root 18 Feb 26 00:58 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.3
-rwxr-xr-x 1 root root 811744 Oct 26 2004 /usr/lib/libstdc++.so.6.0.3
[root@vision3 bf2]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
not sure what to do..
thoughts?
gateway
06-27-2005, 03:13 PM
self bump.. anyone have a fix?
Stnank
06-30-2005, 11:40 AM
Manaz, this might come a bit too late, seeing as how you have gotten the retail server version running... :)
For Fedora Core 4, one has to install two compatibility libraries: (Do this when logged in as root)
yum -y install compat-libstdc++-296 compat-libstdc++-33
By doing so, I have been able to get the linux ia-32 server for the demo to run.
Fedora Core 3 users might be helped by
yum -y install compat-libstdc++(Just like a previous poster in this thread has said). Since I recently wiped my FC3 and installed FC4 fresh, I can't test and confirm this.
In general, keep your Fedora system updated. Do this manually by issuing
yum -y updateever so often. If your machine runs 24/7, automate that by enabling nightly yum updates:
chkconfig rhnsd off
chkconfig yum on
service yum start
To gateway
It looks like you're running a stock FC3 install. Get that yum -y update going to upgrade your system libs and, if needed, install the compatibility library ("yum -y install compat-libstdc++").
Hope this helps!
mr_skot
07-03-2005, 02:40 AM
I had the same issue on Fedora Core 4 with the missing libstdc++.so.5...
So I went to http://rpmfind.net/...
Entered "libstdc++.so.5" in the search box...
Went here....
http://rpmfind.net//linux/RPM/fedora/4/i386/compat-libstdc++-33-3.2.3-47.fc4.i386.html
Downloaded the .rpm....
rpm -ivh compat-libstdc++-33-3.2.3-47.fc4.i386.rpm
Presto, chango, server works now....
gateway
07-07-2005, 09:45 PM
when I try the yum command below I get this.
Dependencies Resolved
Transaction Listing:
Install: compat-libstdc++.i386 0:8-3.3.4.2
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 4f2a6fd2
public key not available for //var/cache/yum/base/packages/compat-libstdc++-8-3.3.4.2.i386.rpm
never honestly used yum before so not sure how to aquire the key. thoughts?
I did run the yum update tho.. before doing this.
the rmp way i installed it, but when trying it , it didnt work.
[root@vision3 temp]# rpm -ivh compat-gcc-32-3.2.3-47.fc4.src.rpm
warning: compat-gcc-32-3.2.3-47.fc4.src.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
1:compat-gcc-32 ########################################### [100%]
[root@vision3 temp]# cd ../bf2/
[root@vision3 bf2]# ./start.sh
/home/games/bf2/bin/bf2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
man.. the prob is this box is at a webhost so I dont have it here to resintall if i needed to.
Stnank
07-09-2005, 06:39 PM
when I try the yum command below I get this.
Dependencies Resolved
Transaction Listing:
Install: compat-libstdc++.i386 0:8-3.3.4.2
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 4f2a6fd2
public key not available for //var/cache/yum/base/packages/compat-libstdc++-8-3.3.4.2.i386.rpm
never honestly used yum before so not sure how to aquire the key. thoughts?Yep.
rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY*That will import the proper GPG keys to rpm/yum so you can use yum to update your system and/or install new software from the base Fedora repository. A good place to read about tricks like this is the Unofficial Fedora FAQ (http://www.fedorafaq.org/)
I did run the yum update tho.. before doing this.
the rmp way i installed it, but when trying it , it didnt work.Ok...well, hopefully, by importing the GPG keys you should be able to use yum to "just do it" and not have to manually mess around with downloaded RPM packages.
[root@vision3 temp]# rpm -ivh compat-gcc-32-3.2.3-47.fc4.src.rpm
warning: compat-gcc-32-3.2.3-47.fc4.src.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
1:compat-gcc-32 ########################################### [100%]
[root@vision3 temp]# cd ../bf2/
[root@vision3 bf2]# ./start.sh
/home/games/bf2/bin/bf2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Yikes... two things
1 - you are installing a FC4 package on a FC3 machine. Ouch!
2 - that package is a *source* RPM, not a binary. That't won't do you any
good.
3 - You are trying to run the bf2 server as root. Don't do that - create a new user account for the bf2 server. This is for security reasons.
man.. the prob is this box is at a webhost so I dont have it here to resintall if i needed to.Noted. Just keep your head cool and get yum working and then use the proper Fedora Core 3 packages. Don't download stray RPM packages that people suggest...I've seen people linking to just about all sorts of RPM packages in this forum and others. That will sooner or later lead to a botched-up system, and seeing as how it's at a web host, you certainly won't want that. So, the steps would be:
1 - Import the GPG keys into rpm/yum:
rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY*
2 - Get your FC3 installation updated
(This will most likely take some time. Have a cup of coffee or your choice of favourite beverage. The kernel will also be updated here, so you will need to reboot after the updates are done and before proceeding to #3)
yum -y update
3 - Install the compatibility libs (These might just make bf2 start)
yum -y install compat-libstdc++
4 - Activate automatic yum updates (Optional, but recommended)
(We also turn off "rhnsd", the Redhat Network Service daemon, since yum replaces it and is the preferred way to keep your system updated.)
chkconfig rhnsd off
chkconfig yum on
service rhnsd stop
service yum start
While this might not make bf2 work, you will at least have a properly updated system. ;)
5 - Work on getting the BF2 server up and running
vrslider
07-09-2005, 09:37 PM
Guys hope you can help, i have all the above installed and running okay ( RHEL 4 box ) but when i launch BF2 i get this in the console :
PlayerManager created
ObjectManager created
GameLogic created
Serversettings created
IInvalid instruction
[root@portal bf2]#
Any ideas ??
ope you can help, i have all the above installed and running okay ( RHEL 4 box ) but when i launch BF@ i get this in the console :
PlayerManager created
ObjectManager created
GameLogic created
Serversettings created
IInvalid instruction
[root@portal bf2]#
Any ideas ??
Stnank
07-09-2005, 11:48 PM
Guys hope you can help, i have all the above installed...For RHEL4, "all the above" would include the packages compat-libstdc++-296
compat-libstdc++-33
Do you have those installed?...but when i launch BF2 i get this in the console :
PlayerManager created
ObjectManager created
GameLogic created
Serversettings created
IInvalid instructionAny ideas ??Invalid instruction, eh? Tell me a little bit about the machine (architecture, ie ia32 or x86-64) you're running RHEL4 and trying to run bf2 on. What kind of CPU do you have in the server machine? AFAIK, you need a CPU that supports the SSE instruction set, ie an Intel Pentium III/4 or AMD Athlon XP/Athlon 64/Opteron. Some older Athlons and Durons don't support that, which could be the reason for the "Invalid instruction" error message. How do you find out?
cat /proc/cpuinfo
should give you some data on the CPU(s) in the machine. Here's an example output from my old rustbucket Athlon XP:
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : AMD Athlon(tm) XP 1900+
stepping : 2
cpu MHz : 1600.706
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 3170.30
From that, we gather it's an Athlon XP that supports the SSE instruction set.
nemattoad
07-10-2005, 03:49 AM
I have had similar "Illegal Instruction" and "Killed" errors (my thread is a few threads down in the list) and I use an AMD Athlon cpu, not XP.
I am wondering if SSE is truely needed, because that would explain it not working on my exceptionally well configured gentoo box :P.
What CPU are you running, and does anyone have any evidence that SSE is needed?
[RIC]Splinter
08-27-2005, 05:07 PM
you need to install a .rpm file with libstdc++5 in it
heres a link to get you started:
http://rpm.pbone.net/index.php3/stat/4/idpl/1034749/com/libstdc++5-3.3.1-4sls.i586.rpm.html
Thanx! worked for me!
MikeC
04-09-2006, 05:24 PM
Hi all,
I know this thread is a bit old now but Im hoping somebody will still be able to help me.
Ive just installed BF2 on a linux server and when start.sh I get this error:-
[root@localhost bf2]# ./start.sh +dedicated
/home/bf2/bf2/bin/ia-32/bf2: relocation error: /home/bf2/bf2/bin/ia-32/bf2: symbol _ZNSbIwSt11char_traitsIwESaIwEE20_S_empty_rep_stor ageE, version GLIBCPP_3.2 not defined in file libstdc++.so.5 with link time reference
I'm running FC3 and have been through the whole of this thread and have updated everything I need to via yum but I am still getting the error above.
Please, please can someone help cos I am really pulling my hair out on this one.
Cheers all
Mike
jmeek12345
06-27-2006, 07:35 PM
for CentOS the yum command was "yum install compat-libstdc++-33.i386" to get the appropriate library.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.