Einzelnen Beitrag anzeigen
Alt 07.03.2013, 12:33   #17 (permalink)
flickflack
His Awesomeness!
10 Jahre hx3
5000 Beiträge
 
Benutzerbild von flickflack
 
Registriert seit: 25.07.2006
Ort: Regnum Borussiae
Beiträge: 9.282
Standard

Hmm...laut BIF, hat bei einem noch das geholfen:

Zitat:

export LD_LIBRARY_PATH="/home/arma/arma2arrowhead/lib32:${LD_LIBRARY_PATH}"

Beim Fettgedruckten dann natürlich dein Pfad.

€: Wenn bei dir dann auch kommt:

Zitat:

[...]undefined symbol: _ZNSt8messagesIcE2idE, version GLIBCXX_3.4

Hat deine Distro scheinbar nur alte Quellen. Es fehlt eine passende LIBSTDC++.

€: Im BIF empfiehlt Psycho das Folgende:

Zitat von http://forums.bistudio.com/showthread.php?138230-Linux-1-62-95577-alpha&p=2202541&viewfull=1#post2202541

1. get the last available lib32stdc++6 deb package from sid
# wget http://ftp.de.debian.org/debian/pool....1-6_amd64.deb
2. extract the data tar ball
# ar -vx lib32stdc++6_4.7.1-6_amd64.deb
# tar -xzvf data.tar.gz
3. copy the lib32 dir to your game-dir
4. use this modified start/stop-script arma2oaserver (fixes the watchdog too) :

Code:
#!/bin/bash
#
# armaserver: ArmA 2 Linux Dedicated Server Control Script
#  (c) 2010 BIStudio
#  ArmA 2 binary version must be 1.04 or later
#
# mod by: Psycho Dad , Date: 2012/08/05

#=======================================================================
#========               CONFIGURATION PARAMETERS                ========
#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========
#=======================================================================
ARMA_DIR=$HOME/arma2arrowhead
CONFIG=server.cfg
PORT=2302
PIDFILE=$************_DIR}/${PORT}.pid
RUNFILE=$************_DIR}/${PORT}.run
LOGFILE=$************_DIR}/${PORT}.log
SERVER=$************_DIR}/server
OTHERPARAMS=-cpucount=4
#=======================================================================

ulimit -c 1000000

# setup the libraries, local dir first! (add!)
export LD_LIBRARY_PATH=".:$************_DIR}/lib32:/usr/lib32:${LD_LIBRARY_PATH}"

case "$1" in


    start)
        if [ -f ${RUNFILE} ]; then
            $0 stop
        fi
        echo "Starting ArmA 2 server..."
        # remove core dumps (add!)
        find $************_DIR} -name core -type f -print | xargs -r rm -f
        # file to mark we want server running...
        echo "go" >${RUNFILE}
        # launch the background watchdog process to run the server (mod!)
        nohup </dev/null >/dev/null 2>&1 $0 watchdog-port-${PORT} &
        ;;

    stop)
        echo "Stopping ArmA 2 server..."
        if [ -f ${RUNFILE} ]; then
        # ask watcher process to exit by deleting its runfile...
            rm -f ${RUNFILE}
        fi
        # and terminate ArmA 2 server process
        if [ -f ${PIDFILE} ]; then
            kill -TERM $(< ${PIDFILE})
            if [ -f ${PIDFILE} ]; then
                rm -f ${PIDFILE}
            fi
        sleep 1s
        fi
        # kill watchdog (add!)
        pgrep -U ${UID} -fl watchdog-port-${PORT} | awk '{print $1}' | xargs -r kill -TERM >/dev/null 2>&1
        ;;


    status)
        if [ -f ${RUNFILE} ]; then
            echo "Server should be running..."
        else
            echo "Server should not be running..."
        fi
        if [ -f ${PIDFILE} ]; then
            PID=$(< ${PIDFILE})
            echo "PID file exists (PID=${PID})..."
            if [ -f /proc/${PID}/cmdline ]; then
                echo "Server process seems to be running..."
            fi
        fi
        ;;


    check)
        echo -n "ArmA 2 directory: $************_DIR} "
        if [ -d $************_DIR} ]; then
            echo "OK"
        else
            echo "MISSING!"
        fi

        echo -n "Server executable: ${SERVER} "
        if [ -x ${SERVER} ]; then
            echo "OK"
        else
            echo "ERROR!"
        fi

        echo "Port number: ${PORT}"

        echo -n "Config file: ${CONFIG} "
        if [ -f ${CONFIG} ]; then
            echo "OK"
        else
            echo "MISSING!"
        fi

        echo "PID file: ${PIDFILE}"
        echo "RUN file: ${RUNFILE}"
        ;;

    restart)
        echo "Restarting ArmA 2 server..."
        $0 stop >/dev/null
        $0 start >/dev/null
        ;;

    watchdog-port-${PORT})
        # this is a background watchdog process. Do not start directly
        while [ -f ${RUNFILE} ]; do
        # launch the server...
            cd $************_DIR}
            echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."
            ${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} ${OTHERPARAMS}
            if [ -f ${RUNFILE} ]; then
                echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."
                sleep 10s
            else
                echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"
            fi
        done
        ;;
    *)
        echo "$0 (start|stop|restart|status|check)"
        ;;
esac
flickflack ist offline