Page 1 of 1

Problems with installation on Ubuntu

Posted: Sun May 26, 2013 2:36 pm
by Alter Tuk
Hi folks,

i tried to install GCCG under Ubuntu. I followed the instructions on sourceforge.net but maybe i messed something up.

I installed sdl, sdl-ttf, sdl-mixer, sdl-net and sdl imgage with apt in the terminal and checked with synaptic as well. It seems to be installed. Then I followed the instructions but when I try to start ./Metw it doesnt work. Any thoughts?

Image

Image

Re: Problems with installation on Ubuntu

Posted: Sun May 26, 2013 2:43 pm
by Sauron
probably need to edit the metw script and see where it's failing. It may be written under a different script, like kshell or bash.

Re: Problems with installation on Ubuntu

Posted: Sun May 26, 2013 3:05 pm
by Alter Tuk
I forgot to mention that i used gccg under Ubuntu with my old computer. So the mistake must be somewhere in the installation process.

Re: Problems with installation on Ubuntu

Posted: Mon May 27, 2013 8:18 am
by emux
try with:

./ccg_client metw.xml

Re: Problems with installation on Ubuntu

Posted: Fri Feb 21, 2014 7:09 am
by Alter Tuk
Ok thanks to my mate domse we made it run again. There is a bug in the script which I never could have found out on my own. Im posting here in case that anyone else has ever the same problem. Maybe there is someone who can fix that in the download file?

Change the script as following:

- change
#!/bin/sh --login
to
#!/bin/bash --login

- put the new server
--server gccg.councilofelrond.org
at the right spot.

Here is the corrected script of the Metw file.




#!/bin/bash --login
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./lib"
DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:./lib"
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH

CCG_PATH=`which $0`
CCG_PATH=`dirname $CCG_PATH`
cd $CCG_PATH

if [ ! -f ./scripts/client.functions ]; then
echo "You must install 'client' package."
exit 1
fi

if [ "$1" = "--text" ]; then
if [ ! -x ./ccg_text_client ]; then
echo "You must install package containing program binaries for text version, for example 'linux-text-i386'."
exit 1
fi
shift
./ccg_text_client $* metw.xml
else
if [ ! -x ./ccg_client ]; then
echo "You must install package containing program binaries, for example 'linux-i386'."
exit 1
fi
./ccg_client $* --server gccg.councilofelrond.org metw.xml
fi

Re: Problems with installation on Ubuntu

Posted: Mon Feb 24, 2014 6:19 pm
by jhunholz
This is actually an Ubuntu specific problem. Ubuntu uses Dash as their default shell instead of Bash. Usually the first thing I do when I install Ubuntu is change the default shell back to Bash.