Howto install freeciv 2.3.4 from source on debian

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
BsKnng
Posts: 3
Joined: Wed Feb 13, 2013 7:58 am

Howto install freeciv 2.3.4 from source on debian

Postby BsKnng » Wed Feb 13, 2013 9:13 am

Tested on a fresh net-install debian squeeze 32 bit.

Hardware acceleration:
I dont know if it is really necessary, but just to be sure, I wanted hardware acceleration on.
In root terminal:

Code: Select all

glxinfo | grep rendering

Result:

Code: Select all

direct rendering: Yes

My ati video-card hardware seems accelerated automatically during install. :D Good.

/usr/apt/sources.list
I am using the default /etc/apt/sources.list. To check your sources.list:

Code: Select all

cat /etc/apt/sources.list

Result:

Code: Select all

deb http://ftp.us.debian.org/debian/ squeeze main
deb-src http://ftp.us.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ squeeze-updates main
deb-src http://ftp.us.debian.org/debian/ squeeze-updates main

Perhaps you need to adjust your sources.list with an editor like nano (or any other you prefer) like so:

Code: Select all

nano /etc/apt/sources.list


Reload repositories
To be able to get the latest versions from the repositories we should now 'update' like so:

Code: Select all

apt-get update


Requirements
For compiling:

Code: Select all

apt-get install build-essential

For freeciv I just included all libraries mentioned:

Code: Select all

apt-get install zlib1g-dev gtk+2.0 autoconf libpangomm-1.4-dev libpng++-dev libiconv-hook-dev libimlib2-dev libgd2-xpm-dev libglib2.0-dev automake pkg-config libatk1.0-dev


Create a place
To create some place to put files temporarily:

Code: Select all

cd /home
mkdir freecivtemp
cd freecivtemp


Fonts
To download and install some freeciv fonts:

Code: Select all

wget http://download.gna.org/freeciv/requirements/cjk_fonts.tar.bz2
tar jxfv cjk_fonts.tar.bz2
rm cjk_fonts.tar.bz2
rm COPYING.*
mkdir /usr/share/fonts/truetype/freeciv
cp *.ttf /usr/share/fonts/truetype/freeciv
rm *.ttf

Reload all fonts with:

Code: Select all

fc-cache -fv


Freeciv itself
To download, compile and install freeciv 2.3.4:

Code: Select all

wget http://download.gna.org/freeciv/stable/freeciv-2.3.4.tar.bz2
tar jxfv freeciv-2.3.4.tar.bz2
rm freeciv-2.3.4.tar.bz2
cd freeciv-2.3.4
./configure
make
make install


Clean up
Remove temporary download folder:

Code: Select all

cd /home
rm -f -r freecivtemp


Final Words
Check under Applications, Games, Freeciv to start Freeciv 2.3.4!
or, start from any normal, non-root terminal with command:

Code: Select all

freeciv-gtk2