Problems with installation on Ubuntu

Discussion of the Generic Collectible Card Game engine designed and run by Tommi "wigy" Ronkainen.
Post Reply
Alter Tuk
Posts: 453
Joined: Sun Aug 27, 2006 6:20 pm
Location: Germany

Problems with installation on Ubuntu

Post by Alter Tuk » Sun May 26, 2013 2:36 pm

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
[url=http://gccg.sourceforge.net/]Come to GCCG or die a lonely death.[/url]

Sauron
Posts: 550
Joined: Tue Sep 19, 2006 3:27 pm

Re: Problems with installation on Ubuntu

Post by Sauron » Sun May 26, 2013 2:43 pm

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.

Alter Tuk
Posts: 453
Joined: Sun Aug 27, 2006 6:20 pm
Location: Germany

Re: Problems with installation on Ubuntu

Post by Alter Tuk » Sun May 26, 2013 3:05 pm

I forgot to mention that i used gccg under Ubuntu with my old computer. So the mistake must be somewhere in the installation process.
[url=http://gccg.sourceforge.net/]Come to GCCG or die a lonely death.[/url]

emux
Posts: 24
Joined: Mon Nov 05, 2012 6:56 pm

Re: Problems with installation on Ubuntu

Post by emux » Mon May 27, 2013 8:18 am

try with:

./ccg_client metw.xml

Alter Tuk
Posts: 453
Joined: Sun Aug 27, 2006 6:20 pm
Location: Germany

Re: Problems with installation on Ubuntu

Post by Alter Tuk » Fri Feb 21, 2014 7:09 am

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
[url=http://gccg.sourceforge.net/]Come to GCCG or die a lonely death.[/url]

jhunholz
Posts: 198
Joined: Mon Apr 17, 2006 7:24 pm

Re: Problems with installation on Ubuntu

Post by jhunholz » Mon Feb 24, 2014 6:19 pm

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.

Post Reply

Return to “GCCG”