I remember running into something on google that mentions parts of
ncurses being missing as a possible culprit.
I ran the following command in /compat/linux on an rpm i had
downloaded:
srv# rpm2cpio -q < ncurses-base-5.6-20.20080927.fc10.i386.rpm | cpio
-id421 blocks
problem seems to have
Quoting Alex (from Wed, 23 Mar 2011 21:17:10 +1100):
I tried changing the first line to use the /compat/linux/bin/sh
shell. made no difference. I added set -x:
After looking at the script I do not expect to run with a linux shell
(it specially looks if it is running on FreeBSD amd64).
[
On Wed, 23 Mar 2011 21:17:10 +1100
Alex wrote:
> I tried changing the first line to use the /compat/linux/bin/sh shell.
> made no difference. I added set -x:
>
> [game@srv ~/bf2]$ ./start.sh
> + MACH=''
> + uname -m
> + MACH=ia-32
> + [ -d pb ]
> + pwd
> + BINARY_DIR=/usr/home/game/bf2
I tried changing the first line to use the /compat/linux/bin/sh shell.
made no difference. I added set -x:
[game@srv ~/bf2]$ ./start.sh
+ MACH=''
+ uname -m
+ MACH=ia-32
+ [ -d pb ]
+ pwd
+ BINARY_DIR=/usr/home/game/bf2/bin
+ [ -d /usr/home/game/bf2/bin/ia-32 ]
+ BINARY_DIR=/usr/home/game/bf2/bi
Here is the script:
[game@srv ~/bf2]$ cat start.sh
#!/bin/sh
MACH=""
# 64-bit FreeBSD is "amd64"; emulates 32-bit Linux.
case `uname -m` in
i[3456]86 | amd64) MACH="ia-32"
;;
x86_64) MACH="amd-64"
;;
esac
if ! [ -d pb ]
then
Quoting Alex (from Wed, 23 Mar 2011 17:29:05 +1100):
Hi Guys,
I am trying to run a battlefield 2 server on FreeBSD 8.2 with linux
emulation enabled, I have some other apps that run just fine.
Here is the error I get:
[game@srv ~/bf2]$ ./start.sh
Error opening terminal: xterm.
[game@srv ~