Page 1 of 1

Howto install freeciv 2.3.4 from source on debian

Posted: Wed Feb 13, 2013 9:13 am
by BsKnng
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
[/size]
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
[/size]
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