root/trunk/INSTALL.pre.in

Revision 815, 2.0 kB (checked in by rob, 12 months ago)

Refs #322: removed references to using setup.py to install the program
* reorganized download.html.in to add prerequisites

Line 
1$prog $version
2$release_date
3Copyright (c) $yearrange $author ($author_email)
4
5$url
6
7
8
9INSTALLATION
10============
11
12NOTE! Since peppy is an application and not a library, it is not installed in
13the site-packages directory.  I recommend you just unpack the source and run
14it from there.  See the README for more instructions.
15
16If you're looking for more info on how to install optional packages, read on...
17
18
19
20INSTALLING OPTIONAL MODULES
21===========================
22
23If using the hyperspectral image viewing capabilities of peppy, numpy
24*must* be installed, and scipy and gdal can optionally be installed.
25
26Installing NumPy
27----------------
28
29The numerical python library, NumPy (numpy.scipi.org) is installed
30like a typical python module: by downloading it and running
31
32$ python setup.py install
33
34You may have to be root to complete the installation.
35
36Installing SciPy
37----------------
38
39SciPy is a bit more complicated of an install, as it depends on the
40BLAS and LAPACK libraries.  The SciPy website has instructions here:
41
42http://www.scipy.org/Installing_SciPy/BuildingGeneral
43
44which is, unfortunately, a bit more complicated than just "python
45setup.py install" but is relatively straight-forward.  In general, you
46can just follow those instructions.
47
48However, a problem that plagued me for a while was that the "python
49setup.py install" stage was picking up libblas and liblapack from the
50system's /usr/lib directory, and RedHat prior to early 2007 supplied
51incomplete libraries.  I had to replace these system libraries with my
52just-built libraries, because setup.py seemed to ignore the paths I
53specified for BLAS and LAPACK as shown in the instructions on the
54webpage above.
55
56Installing GDAL
57---------------
58
59To take advantage of the variety of image formats that GDAL supports,
60you can install it as well.  Download from www.gdal.org and uncompress
61in a directory.  The setup is a bit more complicated than a typical
62python module:
63
64$ cd gdal-1.4.1
65$ ./configure --without-python --with-ngpython
66$ make
67$ cd swig/python
68$ python setup.py install
Note: See TracBrowser for help on using the browser.