Installing libavg
We have libavg packages available for several system configurations. This page describes how to install them. If you don't find your configuration here or if you'd like to compile libavg yourself for some other reason, have a look at one of the following pages:
Mac
For the current version, there is a dmg available that works with 64 bit Snow Leopard and Lion. For Snow Leopard, it works with the preinstalled Python. Under Lion, you need to use Python 2.6 - see below. If anything goes wrong, have a look at Known Mac Installation Issues.
The installation is simple:
- Download the disk image from the Download page
- Doubleclick it to mount.
- Doubleclick the pkg file it contains to start the installer.
- Follow the install steps.
Note: On Lion, libavg needs to work with python 2.6. This is installed but not the default. The following command line changes the default:
$ defaults write com.apple.versioner.python Version 2.6
Alternatively, you can start libavg scripts with the correct python version explicitly by using a command like python2.6 Test.py.
Optional, but highly recommended:
- Open a command line and type the following to run the tests:
$ cd /Library/Python/2.6/site-packages/libavg/avg/test/ $ ./Test.py
You should see lots of test images and wild console output, ending in something like:
Ran 164 tests in 11.231s OK
If this isn't the case, please tell us.
Linux
Ubuntu
There is a package (sudo apt-get install python-libavg) available for Ubuntu. If this package is outdated, then your best bet is to download the tarball from the download page and do a source install like described on the UbuntuSourceInstall page.
Archlinux
If you have Yaourt installed, just execute the following command:
yaourt -S libavg
Otherwise, download the Tar-Archiv, extract and CD into the directory and execute
makepkg
followed by
pacman -U NewPackageInDir
Other
Follow instructions as described on UbuntuSourceInstall and adjust them accordingly. If anything goes wrong, have a look at Known Linux Installation Issues.
Windows
The windows installer was tested under XP and Vista. It needs Python 2.7 (32 bit) installed. These are the steps to install it:
- Download the Visual C++ runtimes and the libavg installer from the Download page and execute the installers.
- Add C:\Python27\scripts to the PATH so the avg utilities are accessible.
Optional, but highly recommended:
- Open a command line and execute the tests
C:\> cd \Python27\lib\site-packages\libavg\test C:\...\> c:\Python27\python Test.py
You should lots of test images and wild console output, ending in something like:
Ran 164 tests in 11.231s OK
If this isn't the case, please tell us.
