• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Rune install Path

gosh

Newbie
mahlzeit
hab aus meinem regal mal n altes spiel rausgekramt (RUNE) naja wollts das erste mal auf linux antesten, installation etc hat auch alles wunderbar geklappt.

nur wenni ch es spielen will bekomme ich folgende fehlermeldung
Code:
Couldn't run Rune (rune-bin). Is RUNE_DATA_PATH set?

aus einer rune script datei habe ich folgende config file ausgelesen, wobei ichallerdings nicht weiss (den fehler vermute ich hier!) was ich in welcher zeile einzusetzen habe, da sich meine c bzw c++ kenntnisse aufs äußerste beschränken ;)

wäre toll wenn mir jemand weiterhelfen könnte.
das spiel wurde standardmäßig auf suse10.1 auf /usr/local/games/rune installiert

danke und gruss :)


Code:
#!/bin/sh
#
# Rune startup script
#

# The user preferences directory
RUNE_PREFS="${HOME}/.loki/rune"

# Function to find the real directory a program resides in.
# Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
FindPath()
{
    fullpath="`echo $1 | grep /`"
    if [ "$fullpath" = "" ]; then
        oIFS="$IFS"
        IFS=:
        for path in $PATH
        do if [ -x "$path/$1" ]; then
               if [ "$path" = "" ]; then
                   path="."
               fi
               fullpath="$path/$1"
               break
           fi
        done
        IFS="$oIFS"
    fi
    if [ "$fullpath" = "" ]; then
        fullpath="$1"
    fi
    # Is the awk/ls magic portable?
    if [ -L "$fullpath" ]; then
        fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
    fi
    dirname $fullpath
}

# Set the home if not already set.
if [ "${RUNE_DATA_PATH}" = "" ]; then
    RUNE_DATA_PATH="`FindPath $0`/System"
fi

LD_LIBRARY_PATH=.:${RUNE_DATA_PATH}:${LD_LIBRARY_PATH}

export LD_LIBRARY_PATH
export RUNE_DATA_PATH

create_prefpath()
{
    path="${RUNE_PREFS}/$1"
    if [ ! -d "$path" ]; then
        echo "Creating directory $path"
        mkdir "$path"
    fi
}

copy_if_needed()
{
    dist="${RUNE_DATA_PATH}/$1"
    file="${RUNE_PREFS}/$1"
    if [ ! -f "$file" ]; then
        echo "Installing default $file"
        cp "$dist" "$file"
    fi
}

# Hey, it's fun time!
if [ ! -d ${HOME}/.loki ]
then
    mkdir ${HOME}/.loki
fi

if [ ! -d ${RUNE_PREFS} ]
then
    echo "Creating preferences directory..."
    create_prefpath
fi
create_prefpath System

# Let's boogie!
if [ -x "${RUNE_DATA_PATH}/rune-bin" ]
then
	cd "${RUNE_DATA_PATH}/"
	exec "./rune-bin" -log $*
fi
echo "Couldn't run Rune (rune-bin). Is RUNE_DATA_PATH set?"
exit 1
 
Oben