KaRa is intended to be as computer-platform independant as possible
With that goal in mind it was written in PerlTk.
Therefore you need Perl with its add-on Tk & SerialPort.
It runs and has been used on:
GNU/Linux
RedHat, Fedora, Debian, Ubuntu and Mandrake
Windows
98, 2000, XP, Vista, 7 and 10
For the Apple/McIntosh platform no plans exist to port this application, but hey if Perl + Tk
+ SerialPort can be installed on it, KaRa might just work fine.
Summing it up, you will need these items to run KaRa
Perl with Perl/Tk
SerialPort
KaRa
Once you have gone through steps 1 and 2 you do not have to go through them again when you update
KaRa (only step 3, which is easy and takes no time at all).
Most unix installations come with Perl installed.
If that is not the case 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 may be 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 ...
As for Perl you have multiple options to install Perl/Tk on your computer.
A few examples for different GNU/Linux distributions (installed with 'rpm ivh ' or an installation programme):
- RedHat 7.3:
downloaded perl-Tk-800.022-11.i386.rpm (from Bastille site I think)
- RedHat 9:
perl-Tk-800.024-1.i386.rpm (from http://rpm.pbone.net on 2004-02-06)
- Mandrake 9.2:
perl-Tk-800.024-4mdk.i586.rpm (from http://rpmfind.rediris.es on 2004-02-17)
- 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)
- Debian Sarge and Ubuntu 8.04:
apt-get install perl-tk (yielded 800.025-2 on 2005-01-21 and 804.027-8 on 2008-06-19)
- Ubuntu 18.04, 20.04:
apt-get install perl-tk (yielded 804.033-2build1 on 2020-01-31 and 804.033-2build3 on 2021-09-17)
- CentOS 6.4:
yum install perl-Tk (yielded 804.028-12.el6.x86_64 on 2013-11-12)
- CentOS 8.2:
yum install perl-Tk (yielded 804.034-2.el8.x86_64 on 2020-10-08)
You can check, by find'ing Tk.pm within /usr/lib/perl5
or find /usr/lib -name Tk.pm
windows 98
For this, now ancient, version of Windows you will need the 'Windows Installer' of a certain version.
I found it with ActiveState and installed InstMsiA.exe in C:\Program Files\.
After getting the installer you can follow the recipe for Windows below here.
Note that on Win98 the entire installation will require a few reboots.
windows 10, 7, XP & 2000
A good binary installation is available from ActiveState.
However versions newer than 5.16 these do not include perl-Tk any more for Windows.
The latest usable version is available here:
ActivePerl-5.16.3.1604-MSWin32-x86-298023.msi
Download this MSI package for Windows and run it (or store it on disk somewhere and then run that executable ActivePerl-<version>.msi installation file).
The Windows installer will take care of the installation,
just go for the default standard installation (next, next, ... install), this
may take several minutes.
Previously, when you could take up to date versions this was the way to do it...
Go to www.activestate.com for ActivePerl.
GET THE 32-bit VERSION (also known as x86)!
Otherwise you will get problems using the SerialPort.
Click on 'Download ActivePerl Free Community Edition', 'download' or 'Free Download'.
You do not have to register (go to Next), just download the MSI package for Windows
(you will get a file like ActivePerl-5.8.7.813-MSWin32-x86-148120.msi)
and run it (or store it on disk somewhere and then run that executable ActivePerl-<version>.msi installation file).
The Windows installer will take care of the installation,
just go for the default standard installation (next, next, ... install), this
may take several minutes.
E.g. on 2014-05-20 ActivePerl 5.16.3 (x86 32-bit) was installed on a Windows 7.
Either you can install a package, if it is available, or you can do this manually as described a few lines below.
Install a package:
- Ubuntu 20.04 LTS and 22.04 LTS:
apt-get install libdevice-serialport-perl
Manual installation
You probably need tot do this as root, or with root access.
Download SerialPort *.tar.gz module from www.CPAN.org
Go to http://search.cpan.org/~cook/Device-SerialPort-1.04/
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
2008-06-19 ... 2020-10-02
Device-SerialPort-1.04.tar.gz
Put it somewhere convenient (e.g.: /tmp or ~/Desktop or whatever).
gunzip Device-SerialPort-*.tar.gz
tar -xf Device-SerialPort-*.tar
cd Device-SerialPort-*
perl Makefile.PL (or perl Makefile.pl)
on ubuntu you may encounter problems like 'C compiler cannot create executables', for that you may have to install gcc or libc6-dev, do 'apt-get install gcc' or 'apt-get install libc6-dev'
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 the extra module Win32::API (after installation of ActivePerl, see above) and Perl/Tk.
Fire up an MSDOS prompt and in it type 'ppm install Win32-API' (you may have to let the installer reach the Internet to update it's database).
Then type 'ppm install Tk'.
Ready.
In earlier times the package had to be downloaded and installed like...
You can find it at code.activestate.com/ppm then search Perl package 'Win32::API'.
Download 'Win32-API.zip' (which contains Win32-API.ppd) and unzip it
(put it somewhere like C:\windows\temp).
You find it below on the long page :-).
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
note 1: 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
note 2: 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...)
Download SerialPort-0_19.zip from the KaRa website.
unzip it and put it in a convenient location (C:\Windows\temp or whatever)
Go back to your MSDOS prompt and in it go into the directory of SerialPort-0_19, then perform:
'perl Makefile.PL'
'perl test.pl' (don't be afraid if this fails somewhat)
'perl install.pl'
To check if SerialPort-0.19 is now present on your system: perl -e "use Win32::SerialPort"
install is ok if no message and no error message
exit from the MSDOS window
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:
unix: $HOME/KaRa
windows: C:\kara or C:\My documents\KaRa
Use a web browser to go to www.KaRa.kajak.be.eu.org
where you can download the (current) KaRa distribution.
The distribution will be available in different, compressed, formats, choose the one that
suits you best:
unix: kara-<version>.tar.bzip2 or kara-<version>.tar.gz
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.3.6.tar.gz ; tar xvf kara-2.3.6.tar
windows: double-click kara-2.3.6.zip and winzip will unpack it;
yes, Windows users need WinZip or a comparable programme
on Windows access to serial port via USB does not work
on today's laptops serial RS232 ports do not exist any more and therefore a serial-to-USB cable is used
however using the common Prolific USB To Serial Driver will not work in many instances
obviously you must make sure you specified the correct port (COM1, COM2, ....), which you find out in the Device Manager
but if for no good reason whatsoever access to the chrono hardware via the serial port fails it is a good bet to check out the web page
http://www.ifamilysoftware.com/news37.html Prolific USB To Serial Driver Fix
this was used successfully on a Windows 10 installation of KaRa