Contents |
Xastir is now included in the Fedora Distribution!
Thanks to the efforts of the guys over at the Fedora Amateur Radio Special Interest Group, Xastir is included in the Fedora repositories. You can install Xastir simply by using the command:
sudo yum install xastir
See the Sudo notes for help in setting up sudo.
If you're not familiar with sudo, See links and notes below
This is not meant to be a replacement for INSTALL - but simply a distro-centric abridgment.
A sort of 'check-list' if you will.
This link will take you to a current copy of Xastir's INSTALL file.
Two ways to gain root privileges (other than logging in as root) are:
su will elevate you to 'root' privileges and leave you in the current directory, but retains the user's environment. Return to 'normal user' privileges by typing 'exit'. If you encounter environment based erros, try "su -" instead. Just be sure to change to your working directory!
sudo followed by a command will grant privileges for just that command, automatically dropping you back to normal privileges when that command is completed. Sudo is generally considered safer than su, but it does need to be setup before you can use it. See the Sudo notes for instructions on setting up sudo. Using sudo respects the same Unix tradition of not logging in as root except when necessary. The Fedora Unity project also has a sudo howto.
'su' is immediately available without any setup, but does - conceivably - carry some risks. Any command you give after using 'su' will be performed with root privileges - until you type exit to return to normal privileges. It's possible you may forget you have root privileges and inadvertently damage your system, it's installed programs or even expose your system to exploit. If you follow this how-to and don't issue any extra commands, you should be fine.
sudo yum grouplist
That will return something like (details will vary depending on options, modules you have installed and repositories enabled and used):
[user@localhost ~]$ sudo yum grouplist Loaded plugins: fastestmirror, presto, refresh-packagekit Setting up Group Process Loading mirror speeds from cached hostfile updates/metalink | 17 kB 00:00 * fedora: astromirror.uchicago.edu * rpmfusion-free: mirror.web-ster.com * rpmfusion-free-updates: mirror.web-ster.com * rpmfusion-nonfree: mirror.web-ster.com * rpmfusion-nonfree-updates: mirror.web-ster.com * updates: astromirror.uchicago.edu rpmfusion-free-updates | 3.3 kB 00:00 rpmfusion-nonfree-updates | 3.3 kB 00:00 Installed Groups: ::snipped:: Available Groups: ::snipped:: Done
I've removed the actual group listings from that output and replaced them with ::sinpped::. It will be different for every install.
You'll see what groups you have installed. Look through the first part, "Installed Groups". You want to find these 4 groups (Fortunately, they're listed in alphabetical order):
If they're not there, install them with:
sudo yum groupinstall "Group-1 Name" "Group-2 Name" <enter>
So, if my system had everything but the "Gnome Software Development", I'd install that with:
yum install "Gnome Software Development" <enter>
You can always double check again with 'sudo yum grouplist' to make sure you have it all.
Now, to work...
These packages are included in the Fedora repositories and can be installed using Fedora's package management tools. They will also be automatically updated as new versions become available.
This first package's install line would become:
sudo rpm -q GraphicsMagick <enter>
You can use either GraphicsMagick or ImageMagick. GraphicsMagick is the Fedora default and currently preferred.
Simply run:
rpm -q GraphicsMagick <enter>
You should get a response similar to:
GraphicsMagick-1.3.12-2.fc14.i686
This tells you GraphicsMagick is installed and exactly what version it is. Exact numbers in the version string may be different
If you get this instead:
Package GraphicsMagick is not installed
Then install it with:
yum -y install GraphicsMagick <enter>
Install GraphicsMagick-devel.
yum -y install GraphicsMagick-devel <enter>
If you didn't have GraphicsMagick, you surely don't have GraphicsMagick-devel. Get both like this:
yum -y install GraphicsMagick GraphicsMagick-devel <enter>
I'll be leaving out the <enter> for the rest of the commands. You can safely assume it's there
Optional: festival provides speech synthesis allowing Xastir to 'talk' to you. Of course, you'll also need a working sound card and speakers.
Install Festival and Festival-devel, if not already present.
rpm -q festival
If not installed, then install festival and it's devel package.
yum -y install festival festival-devel
Verify presence of libtiff
rpm -q libtiff
If not installed, install it
yum -y install libtiff
NOTE: no need for a devel package with Libtiff! It's a library, not an application.
note: In the past, Fedora included OpenMotif, but due to an incompatible license from OpenMotif, Fedora now includes lesstif instead.
Verify presence of lesstif
rpm -q lesstif
If present, verify presence of lestif development package
rpm -q lesstif-devel
If either are not present, install whatever is missing
yum -y install lesstif lesstif-devel
The DBFAWK capability of xastir requires PCRE. We do not recommend building xastir without DBFAWK capability if you plan on using shapefiles. PCRE will probably not be installed already, so just install it:
yum -y install pcre pcre-devel
These packages are not included in the Fedora repositories, so must be manually installed and updated.
Change to your to your working directory of choice.
Tradition would suggest /usr/local/src. I use my home directory /home/<username>. You may also make a /source or /src directory most anywhere in the filesystem and use that. Totally up to you where you do this or what you call it. To continue, just make it is your current directory. Use the "pwd" to show your current directly.
If not, just add each to it's own line. Something like:
/usr/local/lib /usr/lib /usr/X11R6/lib include ld.so.conf.d/*.conf
That last line include ld.so.conf.d/* should already be there. After all the 'tar ball' sourced libraries are installed, execute ldconfig to update the library cache.
/sbin/ldconfig
This will allow the compiler to find the required libraries on your system.
Change to your working directory. Verify with 'pwd'. Then, execute:
wget http://download.osgeo.org/proj/proj-4.7.0.tar.gz tar xzvf proj-4*.gz cd proj* cd nad wget http://download.osgeo.org/proj/proj-datumgrid-1.5.zip unzip *.zip cd ../ ./configure make sudo make install
The proj-datumgrid file must be extracted into the nad directory before libproj is compiled, as indicated in the steps above.
Change to your working directory. Verify with 'pwd'. Then, execute:
wget ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/libgeotiff-1.3.0.tar.gz tar xzvf libgeotiff*.gz cd libgeotiff* ./configure make sudo make install
NOTES:
You may install them using "sudo yum install libgeotiff-devel", instead of installing from source.
a way around this 'limitation' to use GDAL from the repositories. It may be 'cleaner' to install GDAL from source as well.
Change to your working directory. Verify with 'pwd'. Then, execute:
wget http://dl.maptools.org/dl/shapelib/shapelib-1.2.10.tar.gz tar xzvf shapelib*.gz cd shapelib* make lib sudo make lib_install
Execute
/sbin/ldconfig
cd ~ <enter>
Enter this full line and hit enter (you can cut 'n paste it from here)
cvs -d:pserver:anonymous@xastir.cvs.sourceforge.net:/cvsroot/xastir login
When asked for a password, just hit the 'enter' key - leave it blank. Then enter this full line and hit enter:
cvs -z3 -d:pserver:anonymous@xastir.cvs.sourceforge.net:/cvsroot/xastir co -P xastir
This will create the ~/xastir directory and place the current source tree there. To update, in the future cd into this directory (cd ~/xastir) and then run 'cvs update -d'.
cd ~/xastir ./bootstrap.sh ./configure make sudo make install
Following this guide, you'll have:
xastir 2.0.1 has been configured to use the following options and external libraries: MINIMUM OPTIONS: ShapeLib (Vector maps) ................. : yes RECOMMENDED OPTIONS: GraphicsMagick/ImageMagick (Raster maps) : yes (GraphicsMagick) pcre (Shapefile customization) ......... : yes dbfawk (Shapefile customization) ....... : yes rtree indexing (Shapefile speedups) .... : yes map caching (Raster map speedups) ...... : yes internet map retrieval ................. : yes (libcurl) FOR THE ADVENTUROUS: AX25 (Linux Kernel I/O Drivers) ........ : no libproj (USGS Topos & Aerial Photos) ... : yes GeoTiff (USGS Topos & Aerial Photos) ... : yes Festival (Text-to-speech) .............. : yes GDAL/OGR (Obtuse map formats) .......... : no GPSMan/gpsmanshp (GPS downloads) ....... : no xastir will be installed in /usr/local/bin. Type 'make' to build Xastir (Use 'gmake' instead on some systems)
Now, do as instructed and run 'make' to actually build Xastir, then run 'make install' to install Xastir to your system.
Yup - that's it!
Start Xastir by typing:
xastir <enter>
Now, setup your station and enjoy!
File > Configure > Station
A way to fix this is to set the User ID bit on the xastir binary. Do that with this command:
sudo chmod 4755 /usr/local/bin/xastir
This allows Xastir to run with the privileges of the file owner, root - if you've followed this guide.
Read the INSTALL file found in your xastir source directory. Everything is pretty much is spelled out.
If you're using a serial TNC, your serial ports are:
/dev/ttyS0 (what windows would call 'COM1') /dev/ttyS1 (what windows would call 'COM2')
You may see an error in the console similar to:
"Character '\55' not supported in font"
No biggy and you can safely ignore it. However, if you'd like to correct this, see the appropriate section in the FAQ, find the FAQ in your xastir source directory. You're looking for:
4.13 Why do I see "Character '\55' not supported in font"?
You can read it online at: Xastir FAQ
If you receive an error after running "make", similar to:
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include -DXASTIR_DATA_BASE=\"/usr/local/share/xastir\" -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -Wno-unused-parameter -pthread -I/usr/include -MT alert.o -MD -MP -MF .deps/alert.Tpo -c -o alert.o alert.c In file included from /usr/include/Xm/XmAll.h:46, from alert.c:308: /usr/include/Xm/Xm.h:76:34: error: X11/extensions/Print.h: No such file or directory In file included from /usr/include/Xm/XmAll.h:46, from alert.c:308: /usr/include/Xm/Xm.h:858: error: expected specifier-qualifier-list before âXPContextâ In file included from /usr/include/Xm/XmAll.h:88, from alert.c:308: /usr/include/Xm/Print.h:46: error: expected declaration specifiers or â...â before âXPFinishProcâ
Just install the missing libraries:
yum install libXp libXp-devel <enter>
and try "make" again - no need to re-run configure. libXp-devel contains the missing Print.h header.
If you get some other 'make' error about a missing header or file. try:
yum whatprovides <missing header name>
and then install the package and package-devel indicated.
Any questions? Ask on the reflector. http://www.xastir.org/mailman/listinfo/xastir