linux app wont start...

Alexander Leidinger Alexander at Leidinger.net
Wed Mar 23 08:52:44 UTC 2011


Quoting Alex <other at ahhyes.net> (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 at srv ~/bf2]$ ./start.sh
> Error opening terminal: xterm.
>
> [game at srv ~/bf2]$ echo $TERM
> xterm
>
> I can "export TERM" and set another value but the result is always  
> the same it will just say "Error opening terminal <whatever>"
>
> I have a suspicion it's to do with the termcap in the linux compat  
> section, not the local freebsd termcap.

IMO: There is not enough info to conclude this.

It is not obvious which shell is used to execute start.sh (linux shell  
or FreeBSD shell). To determine this we need to see the first line of  
the script. I would expect a FreeBSD one is started and I would  
suggest to try a linux one instead.

Did you see any messages on the console (run "dmesg" after a failed  
start and have a look for unusual output).

I would also suggest to have "set -x" as the second line in the  
script, this will give you a trace what is executed. The output needs  
to be reviewed then to analyze what is going on. After a suspicious  
action is tracked down, this action can maybe started within ktrace  
and the linux_kdump port can then be used to further investigate what  
is going on.

Bye,
Alexander.

-- 
No matter how cynical you get, it's impossible to keep up.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list