PDA

View Full Version : Call of Duty 2 1.3 Linux server issue



croni1012
27th September 2015, 16:30
Hi,

I have tried to create a linux server for version 1.3. Set up virtualbox, install ubuntu 15 and the game with linux version.
When I tried to start (./cod2_lnxded) it said:


./cod2_lnxded: error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory

After some searching I found the libraries and tried to run the server with the libraries (LD_LIBRARY_PATH=$LD_LIBRARY_PATH:...cod2/lib/ ./cod2_lnxded), but it said:


Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!

I haven't found the solution for this. Anyone know how to fix it?

kung foo man
27th September 2015, 17:56
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:...cod2/lib/ ./cod2_lnxded

That path looks pretty wrong, you named your lib folder "...cod2" with three dots?

IzNoGoD
27th September 2015, 18:21
apt-get install libstdc++5:i386

croni1012
27th September 2015, 18:21
No, its "/usr/local/games/cod2/lib/" just shorted it :)

croni1012
27th September 2015, 18:22
apt-get install libstdc++5:i386

I did it, the change only is I don't have to use library path "./cod2_lnxded" enough.

IzNoGoD
27th September 2015, 18:30
This is my default install for a ubuntu-minimal server:


dpkg --add-architecture i386
apt-get update
apt-get install gcc-multilib
apt-get install libmysqlclient-dev:i386
apt-get install g++-multilib
apt-get install libstdc++5
apt-get install libstdc++5:i386

im not 100% sure the x64 version of libstdc++5 is needed, but it cant hurt afaik
Then im using this startup script:


LD_PRELOAD="_bin/cod2/libcod2_1_3.so" $cod $args +set g_gametype codjumper +map mp_jump

$cod is the location of cod2_lnxded, $args is stuff like fs_homepath etc and my libcod is in /home/USERNAME/_bin/cod2/

croni1012
27th September 2015, 18:41
What's your ubuntu version?

IzNoGoD
27th September 2015, 22:27
What's your ubuntu version?
14.04 lts x64 or x86 (works on both) minimal (server) install. Tried this setup on many different "minimal" vps server installations, some were completely barebone (only sshd installed), others had lots of packages pre-installed and wouldn't qualify as "minimal"

croni1012
27th September 2015, 22:49
I don't get it... i have tried also 14.04 lts x64 and x86 too and nothing changes.
BUT! I have a vps which has 14.04 lts x64 and worked on that....

Any idea whats the problem?

kung foo man
27th September 2015, 23:47
Can you post the output of: ldd cod2_lnxded

croni1012
28th September 2015, 11:46
How can I do that?

Ni3ls
28th September 2015, 17:29
Just type ldd cod2_lnxded in the console if u are in the folder of cod2_lnxded

croni1012
28th September 2015, 21:53
ldd output of cod2_lnxded:


Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!

kung foo man
29th September 2015, 02:48
When your system can't even run default programs, just reinstall the crap with time-proven 14.04 e.g.