Next Previous Contents

3. Installation

3.1 Things that you may not have

To compile and install Libpt 1.3 under Linux you need the Michael Pruett's Audio File Library http://www.68k.org/~michael/audiofile/ and Fastest Fourier Transform of the West library by Matteo Frigo and Steven G. Johnson http://theory.lcs.mit.edu/~fftw.

Note for RedHat 6.0 users

RedHat has included the Pruett's Audio File Library in the RH6.0 standard distribution since it's part of the GNOME project. Unfortunately the header files in that release are broken and don't work correctly with C++ programs. So please uninstall AFL with rpm

rpm --nodeps --erase  audiofile-devel
(as Joakim Verona suggested), download the sources from the site above, build and install AFL from scratch.

3.2 Things that are included in almost every Linux distribution

You may need the GNU autoconf utility (if your distribution has configure.in but lacks of the configure script).

3.3 Cleaning up

If you have an old version of Libpt and you want to wipe out that old stuff, you can do it if you have the old release tarball. Untar the old release and do

 autoconf ; ./configure ; make uninstall 

possibly as root. Remember to use the same configure switches that you used for installing.

3.4 Installing

If your system satisfy all requirements, try

 autoconf ; ./configure ; make install 
You may have to do make install as root.

This will install Libpt in the /usr/local directory tree. If you want to put the library in another path, specify that path with the --prefix option to configure. Something like this:

./configure --prefix=/YOUR/PATH
of course, do this before you run make.

3.5 Un-installing

If you want to uninstall this version of Libpt do

make uninstall
as root in the main directory of this source distribution. Once again, configure parameters must be the same as installation.

Please report problems to the author.


Next Previous Contents