Installation manual for KaRa

-----------------------------------------------------------------------------------------------------

KaRa is intended to be as computer-platform independant as possible.
With that goal in mind it was written in PerlTk and hence you need Perl and the two Perl-add-ons
for Tk and for SerialPort for your computer to run KaRa.

Currently it runs and has been tested on Gnu/Linux (RedHat) and Windows (98, 2000 and XP).
For the Apple/McIntosh platform no plans exist to port this application, but hey if Perl + Tk
+ SerialPort would be available on it, KaRa might just work fine.

-----------------------------------------------------------------------------------------------------

Summing it up, you will need these items to run KaRa:
	1 Perl
	2 Perl/Tk
	3 SerialPort
	4 KaRa

Once you have gone through steps 1, 2 and 3 you do not have to go through them again when you update
KaRa (only step 4, which is easy and takes no time at all).
However it must be said that installing Perl on Windows (steps 1, 2 & 3) is not a 'click-and-ready'
affair (see also www.extropia.com/tutorials/winperl/).


Here it is, step by step:

1  If you do not have Perl installed on your computer ...

	unix	that is sad for you, since most unix computers have Perl installed;
		you will have to install Perl, you can try by installing:
			- a package
				especially if you have a Gnu/Linux distribution which supports RPM
				packages, you may very well be able to install perl 'rpm' packages,
				it will be the quickest solution
			- a binary distribution
				you can search the Net for a binary distribution for your system,
				but it will hard to find I guess
			- from source
				you will need a fully working system with a C compiler, probably gcc
				but if your system is fully operational it should work out fine,
				check out: www.cpan.org www.perl.com ...

	windows
		a good binary installation can be used from ActiveState:
		go to www.activestate.com and choose 'perl'
		among the 'Resources' choose ActivePerl
		check out 'System Requirements', make sure to download and install additional
			software if it is required
				for Win-98 you will need the 'Windows Installer' of a certain version;
				I installed InstMsiA.exe in C:\Program Files\
				for Win-2000 and XP however, you do not need the 'Windows Installer'
		go to 'Features' this will lead you to a page with info, go to 'download' and
			download the MSI package for Windows (e.g.: 5.8.0 build 806 [earlier 805
			worked fine])
		so now you should have:
			ActivePerl-<version>.msi
			and for old Windows versions like Win-98 also InstMsiA.exe (not for Win2000
			and Win-XP)
		if your Windows version needs it, install the 'Windows Installer' by double-clicking
			the first file (you may have to close your web browser and reboot the
			computer before going any further)
		after rebooting, install Perl by double-clicking the MSI file (the second file) and
			walk through the installation screens;
			you might want to put the installation in a directory (destination folder)
			like C:\Program Files\Perl
			just go for the default installation features
			during all that - which takes some time - PPM will also be installed for you
		reboot the system once more, this will not be necessary on all Windows versions


2  If you do not have Perl/Tk installed on your computer ...

	unix
		as with Perl itself you have multiple options to install Perl/Tk on your computer, so
		work like above (1)
		Gnu/Linux users might want to know how it got installed working from an RPM package
		(installed with 'rpm ivh <package>'):
		for RedHat 7.3: downloaded perl-Tk-800.022-11.i386.rpm (from Bastille site I think)
		for RedHat 9:              perl-Tk-800.024-1.i386.rpm (from http://rpm.pbone.net on 2004-02-06)
		for Mandrake 9.2:          perl-Tk-800.024-4mdk.i586.rpm (from http://rpmfind.rediris.es on 2004-02-17)
		for Fedora core 3:         perl-Tk-804.027-1.1.fc3.rf.i386.rpm (from http://dag.wieers.com/packages/perl-Tk/ on 2005-01-12)
		for Debian testing:        apt-get install perl-tk (yielded 800.025-2 on 2005-01-21)
		you can check, by find'ing Tk.pm within /usr/lib/perl5

	windows
		if you went through step 1, above, Tk should be installed in
		C:\Program Files\Perl\site\lib\Tk.pm you can check that out


3  If you do not have Perl/SerialPort installed on your computer ...

	unix
		download SerialPort *.tar.gz module from www.CPAN.org go to
		http://search.cpan.org/~cook/Device-SerialPort-1.002/ and get (a recent) *.tar.gz file
		(previously http://search.cpan.org/dist/Device-SerialPorts/)
		e.g.: on 2004-10-13 Device-SerialPort-1.000002.tar.gz
		         2005-01-12 Device-SerialPort-1.002.tar.gz
		put it somewhere convenient (e.g.: /tmp)
		unzip & untar
		perl Makefile.PL (or perl Makefile.pl), make, make test (the testing registered some problems), make install
		make sure that the device /dev/ttyS0 is 'rw' for group & others!
			this may also apply to /dev/ttyS1 for the testing

	windows
		you will need two extra modules: Win32::API and Win32::SerialPort

		you can find Win32::API that at: www.activestate.com/PPMPackages/
			if that would not exist, try searching it like in step 1 ...
			go to www.activestate.com
			and choose 'perl'
			among the 'Resources' choose ActivePerl
			with 'Technical Info' choose 'Documentation'
			go to 'PPM Repository', or search it out there somewhere
		go to 5.6 (also called 8xx)
		download 'Win32-API.zip' (which contains Win32-API.ppd) and unzip it
		fire up an MSDOS prompt and in it go to the directory where you put Win32-API.ppd,
			type 'ppm' and wait for the 'PPM>' prompt to appear
			type 'install Win32-API' and let PPM do its job, exit
			note1: if you get 'ppm not found' or problems to that effect, it helps to
			reboot your computer, after which ppm (part of perl) should be found
			note2: if you access the Internet through a proxy, installing Win32-API may
			be problematic, because reference is made to a website which may not be
			accessible (workaround: download tar-file with Win32-API to your hard-disk,
			then modify the website specification in the ppd file to make it point to
			the file on your hard-disk like C:\temp\whatever...)
		exit from the MSDOS window
		download SerialPort-0_19.zip from the KaRa website
		put it in a convenient location (C:\Windows\temp or whatever)
		unzip it
		fire up an MSDOS prompt and in it go to the directory where you put SerialPort-0_19
			'perl Makefile.PL'
			'perl test.pl' (don't be afraid if this fails)
			'perl install.pl'


4  Install KaRa
	you're almost there, this is the easy part
	first decide in which directory (map) you will put KaRa, it may be a good idea to
	make a directory (map) specifically for it, some examples:
		on unix:	$HOME/KaRa
		on windows:	C:\My documents\KaRa
	use a web browser to go to the website www.KaRa.kajak.be.eu.org where you can
	download the (latest) KaRa distribution
	the distribution will be available in different, compressed, formats, choose the one that
	suits you best:
		for unix:	kara-<version>.tar.bzip2 or kara-<version>.tar.gz
		for windows:	kara-<version>.zip
	put the compressed file in the directory (map) where you want to put KaRa
	unpack the distribution, examples:
		unix:		gunzip kara-2.1.8.tar.gz ; tar xvf kara-2.1.8.tar
		windows:	double-click kara-2.1.8.zip and winzip will unpack it
					yes, Windows users need WinZip or a comparable programme

