From XastirWiki
Jump to: navigation, search
Installing Xastir on CentOS 5.2

Much was taken from HowTo:Fedora6 page.

Click on "Applications/Add-Remove Software", then after logging in as root, highlight "Development" and select all the boxes on the right. Now click on "Apply".

Click on "Applications/Accessories/Terminal and type:

su <enter> (provide the root password)
mkdir ~/src;cd src <enter>

Install libXp and libXp-devel from your install media or repositories:

yum install libXp libXp-devel

(libXp and libXp-devel need be installed BEFORE openmotif.)

Get and install the latest OpenMotif rpm's and install ImageMagick

while still in the terminal type:
wget <enter>
wget <enter>
rpm -i openmotif-2.3.1-1.el5.1.i386.rpm <enter>
rpm -i openmotif-devel-2.3.1-1.el5.1.i386.rpm <enter>
yum install ImageMagick ImageMagick-devel

Get and configure Xastir

While still in the terminal type:

tar xzvf xastir-1.9.4.tar.gz
cd xastir-1.9.4
cd scripts

Here you need to edit and add the following lines below the header lines,on a new line enter:

mkdir /root/src

mkdir /root/src/xastir

mkdir /root/src/xastir/tmp

And save that file.

Now run the tool


That will churn away and may throw some warnings and errors out. For the most part they can be ignored.

Now it's time to build xastir.

cd ..
mkdir -p build
cd build

It should look similar to this: xastir 1.9.4 has been configured to use the following options and external libraries:

 ShapeLib (Vector maps) ................. : yes
 GraphicsMagick/ImageMagick (Raster maps) : yes (ImageMagick)
 pcre (Shapefile customization) ......... : yes
 dbfawk (Shapefile customization) ....... : yes
 rtree indexing (Shapefile speedups) .... : yes
 map caching (Raster map speedups) ...... : yes
 internet map retrieval ................. : yes (libcurl)
 AX25 (Linux Kernel I/O Drivers) ........ : no
 libproj (USGS Topos & Aerial Photos) ... : yes
 GeoTiff (USGS Topos & Aerial Photos) ... : yes
 Festival (Text-to-speech) .............. : yes
 GPSMan/gpsmanshp (GPS downloads) ....... : no
xastir will be installed in /usr/local/bin.

If yours doesn't look like this, see what steps you might have missed. If your configuration does look like this, you are now ready for the next step.

In the terminal window type:

make <enter>
make install <enter>

I run xastir from a terminal window just by typing "xastir" so that I can see what is going on behind the scenes.