Discussion:
Battlefield 2 Server won't start
Freek Nossin
2005-06-20 12:58:45 UTC
Permalink
Hello,

I was happy when I saw that the Battlefield 2 Linux Server was released. Now
I finally had the chance to run this server (a freebsd machine ofcourse ;))
I thought. After a smooth install (the most annoying parts was accepting the
agreements) I tried to run the server.

I entered the following command in my BF2 directory:

./start.sh

And then I got this "very nice" error message:

/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f: /usr/lib/libstdc++.so.5: version
`GLIBCPP_3.2.2' not found (required by
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)

The library the program was looking for wasn't in the location it expected,
as it is a linux library. I made a symbolic link to the correct file:

$ls -al /usr/lib/libstdc++.*
-r--r--r-- 1 root wheel 1709842 Jun 15 22:29 /usr/lib/libstdc++.a
lrwxr-xr-x 1 root wheel 14 Jun 15 22:29 /usr/lib/libstdc++.so ->
libstdc++.so.4
-r--r--r-- 1 root wheel 834196 Jun 15 22:29 /usr/lib/libstdc++.so.4
lrwxr-xr-x 1 root wheel 40 Jun 15 15:02 /usr/lib/libstdc++.so.5 ->
/usr/compat/linux/usr/lib/libstdc++.so.5
-r--r--r-- 1 root wheel 1705326 Jun 15 22:29 /usr/lib/libstdc++_p.a

and

$ls -al /usr/compat/linux/usr/lib/libstdc++.so.5*
lrwxrwxrwx 1 root wheel 18 Mar 21 21:42
/usr/compat/linux/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.1
-rwxr-xr-x 1 root wheel 4181584 Sep 4 2002
/usr/compat/linux/usr/lib/libstdc++.so.5.0.1

but I still get the same error message. Perhaps it has something to do with
the note about GLIBCPP_3.2.2. I checked my GCC version, which is 3.2.1. Can
this be the cause? Or what can else cause this kind of error?

I am currently running FreeBSD 5.3

You could make my day I one of you know how to solve this!

Kind Regards,

Dennis
Freek Nossin
2005-06-20 18:44:34 UTC
Permalink
Nice try,

but it didn't work, unfortunately.

I'm still getting the same error:

/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f: /usr/lib/libstdc++.so.5: version
`GLIBCPP_3.2.2' not found (required by > >
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)
-----Original Message-----
Sent: maandag 20 juni 2005 15:06
To: Freek Nossin
Subject: Re: Battlefield 2 Server won't start
sometimes things get messed up when you don't type the full path of the
startup script...
/usr/local/etc/rc.d/script.sh start
as opposed to
cd /usr/local/etc/rc.d
./script.sh start
... just a stab in the dark
Post by Freek Nossin
Hello,
I was happy when I saw that the Battlefield 2 Linux Server was
released. Now
I finally had the chance to run this server (a freebsd machine
ofcourse ;))
I thought. After a smooth install (the most annoying parts was
accepting the
agreements) I tried to run the server.
./start.sh
version
`GLIBCPP_3.2.2' not found (required by
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)
The library the program was looking for wasn't in the location it
expected,
$ls -al /usr/lib/libstdc++.*
-r--r--r-- 1 root wheel 1709842 Jun 15 22:29 /usr/lib/libstdc++.a
lrwxr-xr-x 1 root wheel 14 Jun 15 22:29 /usr/lib/libstdc++.so
->
libstdc++.so.4
-r--r--r-- 1 root wheel 834196 Jun 15 22:29 /usr/lib/libstdc++.so.4
lrwxr-xr-x 1 root wheel 40 Jun 15 15:02
/usr/lib/libstdc++.so.5 ->
/usr/compat/linux/usr/lib/libstdc++.so.5
-r--r--r-- 1 root wheel 1705326 Jun 15 22:29 /usr/lib/libstdc++_p.a
and
$ls -al /usr/compat/linux/usr/lib/libstdc++.so.5*
lrwxrwxrwx 1 root wheel 18 Mar 21 21:42
/usr/compat/linux/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.1
-rwxr-xr-x 1 root wheel 4181584 Sep 4 2002
/usr/compat/linux/usr/lib/libstdc++.so.5.0.1
but I still get the same error message. Perhaps it has something to do
with
the note about GLIBCPP_3.2.2. I checked my GCC version, which is
3.2.1. Can
this be the cause? Or what can else cause this kind of error?
I am currently running FreeBSD 5.3
You could make my day I one of you know how to solve this!
Kind Regards,
Dennis
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
Eugene Hercun
2005-06-20 19:59:44 UTC
Permalink
Did you install the linux binaries?
Derrick Ryalls
2005-06-20 21:44:48 UTC
Permalink
Post by Freek Nossin
Hello,
I was happy when I saw that the Battlefield 2 Linux Server was released. Now
I finally had the chance to run this server (a freebsd machine ofcourse ;))
I thought. After a smooth install (the most annoying parts was accepting the
agreements) I tried to run the server.
./start.sh
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f: /usr/lib/libstdc++.so.5: version
`GLIBCPP_3.2.2' not found (required by
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)
The library the program was looking for wasn't in the location it expected,
$ls -al /usr/lib/libstdc++.*
-r--r--r-- 1 root wheel 1709842 Jun 15 22:29 /usr/lib/libstdc++.a
lrwxr-xr-x 1 root wheel 14 Jun 15 22:29 /usr/lib/libstdc++.so ->
libstdc++.so.4
-r--r--r-- 1 root wheel 834196 Jun 15 22:29 /usr/lib/libstdc++.so.4
lrwxr-xr-x 1 root wheel 40 Jun 15 15:02 /usr/lib/libstdc++.so.5 ->
/usr/compat/linux/usr/lib/libstdc++.so.5
-r--r--r-- 1 root wheel 1705326 Jun 15 22:29 /usr/lib/libstdc++_p.a
and
$ls -al /usr/compat/linux/usr/lib/libstdc++.so.5*
lrwxrwxrwx 1 root wheel 18 Mar 21 21:42
/usr/compat/linux/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.1
-rwxr-xr-x 1 root wheel 4181584 Sep 4 2002
/usr/compat/linux/usr/lib/libstdc++.so.5.0.1
but I still get the same error message. Perhaps it has something to do with
the note about GLIBCPP_3.2.2. I checked my GCC version, which is 3.2.1. Can
this be the cause? Or what can else cause this kind of error?
I am currently running FreeBSD 5.3
You could make my day I one of you know how to solve this!
I don't have a solution for this, but here is what someone send me,
and they claim it worked:

installed linux_base-8-8
installed the server distro
copied the libsc++.so.5 and so.1 to the game servers /ia_32 folder

</copy>

I haven't yet been able to try this out, so no promises and sounds
like what you already did. If you do figure this out before the rest
of us, please update the archives (send a mail telling what to do).

Good luck to us all.
Freek Nossin
2005-06-21 19:19:03 UTC
Permalink
-----Original Message-----
Sent: maandag 20 juni 2005 23:45
To: Freek Nossin
Subject: Re: Battlefield 2 Server won't start
Post by Freek Nossin
Hello,
I was happy when I saw that the Battlefield 2 Linux Server was released.
Now
Post by Freek Nossin
I finally had the chance to run this server (a freebsd machine ofcourse
;))
Post by Freek Nossin
I thought. After a smooth install (the most annoying parts was accepting
the
Post by Freek Nossin
agreements) I tried to run the server.
./start.sh
version
Post by Freek Nossin
`GLIBCPP_3.2.2' not found (required by
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)
The library the program was looking for wasn't in the location it
expected,
Post by Freek Nossin
$ls -al /usr/lib/libstdc++.*
-r--r--r-- 1 root wheel 1709842 Jun 15 22:29 /usr/lib/libstdc++.a
lrwxr-xr-x 1 root wheel 14 Jun 15 22:29 /usr/lib/libstdc++.so ->
libstdc++.so.4
-r--r--r-- 1 root wheel 834196 Jun 15 22:29 /usr/lib/libstdc++.so.4
lrwxr-xr-x 1 root wheel 40 Jun 15 15:02 /usr/lib/libstdc++.so.5
->
Post by Freek Nossin
/usr/compat/linux/usr/lib/libstdc++.so.5
-r--r--r-- 1 root wheel 1705326 Jun 15 22:29 /usr/lib/libstdc++_p.a
and
$ls -al /usr/compat/linux/usr/lib/libstdc++.so.5*
lrwxrwxrwx 1 root wheel 18 Mar 21 21:42
/usr/compat/linux/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.1
-rwxr-xr-x 1 root wheel 4181584 Sep 4 2002
/usr/compat/linux/usr/lib/libstdc++.so.5.0.1
but I still get the same error message. Perhaps it has something to do
with
Post by Freek Nossin
the note about GLIBCPP_3.2.2. I checked my GCC version, which is 3.2.1.
Can
Post by Freek Nossin
this be the cause? Or what can else cause this kind of error?
I am currently running FreeBSD 5.3
You could make my day I one of you know how to solve this!
I don't have a solution for this, but here is what someone send me,
installed linux_base-8-8
installed the server distro
copied the libsc++.so.5 and so.1 to the game servers /ia_32 folder
</copy>
I haven't yet been able to try this out, so no promises and sounds
like what you already did. If you do figure this out before the rest
of us, please update the archives (send a mail telling what to do).
Good luck to us all.
No luck at all :(

2 things I dont understand

-) libsc++.so.5, i do not know of such a file, but I think its a typo. Just
to be sure, you did mean libstdc++.so.5, didn't you?

-) so.1, again I file I don't have. Should I have it?

I did try to copy the libstdc++.so.5 to the directory you referred to. The
game indeed found the lib, but it was just another way to reach the same
goal that I did by creating the symbolic link. The result was almost the
same, the only thing that changed was the error message, which now referred
to the copied library (so it DOES find the file, but it seems to be an
incorrect version).

Did you succeed?
Derrick Ryalls
2005-06-21 20:18:25 UTC
Permalink
Post by Derrick Ryalls
Post by Freek Nossin
Hello,
I was happy when I saw that the Battlefield 2 Linux Server was released. Now
I finally had the chance to run this server (a freebsd machine ofcourse ;))
I thought. After a smooth install (the most annoying parts was accepting the
agreements) I tried to run the server.
./start.sh
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f: /usr/lib/libstdc++.so.5: version
`GLIBCPP_3.2.2' not found (required by
/usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)
The library the program was looking for wasn't in the location it expected,
$ls -al /usr/lib/libstdc++.*
-r--r--r-- 1 root wheel 1709842 Jun 15 22:29 /usr/lib/libstdc++.a
lrwxr-xr-x 1 root wheel 14 Jun 15 22:29 /usr/lib/libstdc++.so ->
libstdc++.so.4
-r--r--r-- 1 root wheel 834196 Jun 15 22:29 /usr/lib/libstdc++.so.4
lrwxr-xr-x 1 root wheel 40 Jun 15 15:02 /usr/lib/libstdc++.so.5 ->
/usr/compat/linux/usr/lib/libstdc++.so.5
-r--r--r-- 1 root wheel 1705326 Jun 15 22:29 /usr/lib/libstdc++_p.a
and
$ls -al /usr/compat/linux/usr/lib/libstdc++.so.5*
lrwxrwxrwx 1 root wheel 18 Mar 21 21:42
/usr/compat/linux/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.1
-rwxr-xr-x 1 root wheel 4181584 Sep 4 2002
/usr/compat/linux/usr/lib/libstdc++.so.5.0.1
but I still get the same error message. Perhaps it has something to do with
the note about GLIBCPP_3.2.2. I checked my GCC version, which is 3.2.1. Can
this be the cause? Or what can else cause this kind of error?
I am currently running FreeBSD 5.3
You could make my day I one of you know how to solve this!
I don't have a solution for this, but here is what someone send me,
installed linux_base-8-8
installed the server distro
copied the libsc++.so.5 and so.1 to the game servers /ia_32 folder
</copy>
I haven't yet been able to try this out, so no promises and sounds
like what you already did. If you do figure this out before the rest
of us, please update the archives (send a mail telling what to do).
Here is what is working for me:

linux_base-8 installed.
copy libstdc++.so.5 from an install of linux_base-rh-9 (I can email
binaries if needed) to bin/ia-32
execute start script.

I believe one caveat is that the processor has to be failrly modern.
Works on 1.2gig, 2500XP, and 1800XP.

Continue reading on narkive:
Loading...