Wikia

Freeciv

Install-Debian

Talk1
597pages on
this wiki

Official Debian packages Edit

A number of Freeciv packages are included in Debian. Try


 apt-cache search freeciv


Debian Etch has the most recent version of Freeciv. To install Freeciv with the GTK+ client, install the freeciv-server and freeciv-client-gtk packages. For example, using apt-get:

 apt-get install freeciv-server freeciv-client-gtk


Compiling from upstream source Edit

First, obtain the most recent version of the Freeciv source code from the Download section. You will need to use either tar, bzip2 (or a combination of both) or unzip to decompress the source depending on the version you download. For example, to decompress the "freeciv-2.0.3.tar.gz" archive you would use the following command.

tar -zxvf freeciv-2.0.3.tar.gz

This will create a "freeciv-2.0.3" directory wherever you placed the archived source code. Now, enter the freeciv code directory and configure the source for compile by running

./configure

The configure program will determine information about your system that will be needed to compile the freeciv source. If at any point it fails, it is likely that you are missing dependancies for Freeciv. In this case see the next section for the required dependancies and their packages. There are also various options you can pass, such as which client you would prefer to compile and many others. You can find more information on the various options available by passing the --help flag when running configure or reading the INSTALL file included in the source.

After it has finished created the makefile, you are free to begin the compile process. Simple use the command

make

and the process will being. The length it will take to compile depends on your machine. After it has finished, you can find the compiled binaries in the client/freeciv-gtk2 and server/freeciv-server directories, respectively.

You can now run Freeciv if you chose, however it may be best to "install" Freeciv to allow global use of the binaries or perhaps to use Internationalization while playing. Simply pass the command

make install

to do this. You should be able to simply type "freeciv-client" when you want to run the client now. The default path for the install is /usr/local.

Debian dependancy packages Edit

To compile freeciv from source, you will need the following development packages:

  • zlib1g-dev
  • libreadline5-dev (or another readline library - optional)

To compile the GTK2 client you will also need the following libraries:

  • libgtk2.0-dev

To compile the SDL client you will also need the following libraries:

  • libsdl1.2-dev
  • libsdl-image1.2-dev
  • libfreetype6-dev

(There may be other requirements that have been forgotten here.)

Advertisement | Your ad here

Around Wikia's network

Random Wiki