Changes between Version 27 and Version 28 of InstallDiscoveryBrowse


Ignore:
Timestamp:
04/06/08 11:58:05 (11 years ago)
Author:
pjkersha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallDiscoveryBrowse

    v27 v28  
    44 
    55== Step 1: Choose your Python == 
    6 This process is going to install a lot of packages (mainly eggs) to your python distribution. You may or may not want to use the system python for this. However we are recommending python 2.4 for this install so if your system python is different you will want to create a separate python. 
    7  
    8 On Glue a fresh python 2.4 was installed into /usr/local. 
     6This process is going to install a lot of packages (mainly eggs) to your python distribution. You may or may not want to use the system python for this. However we are recommending python 2.5 for this install so if your system python is different you will want to create a separate python. 
     7 
     8On Glue a fresh python 2.5 was installed into /usr/local. 
    99 
    1010Whichever python you use (system or otherwise), in the following instructions, whenever you see the command 'python' it refers to your chosen python so make sure your PATH environment variable is correct. The command 'sudo' is used throughout as I was in a directory owned by the root user, but this may or may not apply to you.  
    1111 
    12 Python 2.4 can be downloaded [http://www.python.org/download/releases/2.4.4/ here] along with install instructions. 
     12Python 2.5 can be downloaded [http://www.python.org/download/releases/2.5.2/ here] along with install instructions. 
    1313 
    1414== Step 2: Install the latest setuptools egg == 
     
    3434}}} 
    3535 
    36 == Step 3: Install Paste == 
    37 {{{ 
    38 sudo python -m easy_install paste 
    39 }}} 
    40  
    4136== Step 4: Install Pylons == 
    4237{{{ 
    43 sudo python -m easy_install pylons==0.9.5 
     38sudo python -m easy_install "pylons>=0.9.6" 
    4439}}} 
    4540If easy_install can't find this version, try: 
     
    5550 
    5651== Step 6: Install CSML == 
    57 This stage will install the CSML, Cdat_lite and Numeric eggs. The Numeric install was not straightforward on Glue, perhaps because I wasn't using the system python. 
    58  
    59 Anyway, try this: 
    60 {{{ 
    61 sudo python -m easy_install -f http://ndg.nerc.ac.uk/dist csml 
    62 }}} 
    63  
    64 If that worked go straight to Step 7. 
    65  
    66 However if you got  a message about not being able to find Numeric/arrayobject.h then then try and follow these instructions to make those headers available (there's probably a better way to do this but this is what worked for me). I think this is due to trying to install into a non-system python. 
    67  
    68 === Step 6.1: Download and unpack the Numeric source code ===  
    69 {{{ 
    70 wget http://downloads.sourceforge.net/numpy/Numeric-24.2.tar.gz 
    71 sudo gunzip  -c Numeric-24.2.tar.gz 
    72 sudo tar -xvf  Numeric-24.2.tar      
    73  
    74 cd Numeric-24.2 
    75 }}} 
    76  
    77 === Step 6.2: Copy header files into your local includes === 
    78 I'd installed python into /usr/local, so I had to move the headers to /usr/local/include/python2.4 
    79  
    80 There is a subdirectory called Numeric which contains the header files, copy this into your python includes eg: 
    81 {{{ 
    82 sudo cp -rf Numeric /usr/local/include/python2.4/ 
    83 }}} 
    84  
    85 And there are some more that need moving: 
    86 {{{ 
    87 sudo cp -rf Packages/FFT/Include /usr/local/include/python2.4 
    88 sudo cp -rf Packages/RNG/Include /usr/local/include/python2.4 
    89 }}} 
    90  
    91 Right, now you can get rid of this source directory. 
    92 {{{ 
    93 cd .. 
    94 sudo rm -rf Numeric-24.2 
    95 }}} 
    96  
    97 === Step 6.3: Install Numeric === 
    98 {{{ 
    99 sudo python -m easy_install http://ndg.nerc.ac.uk/dist/Numeric-24.2.tar.gz 
    100 }}} 
    101  
    102 === Step 6.4: Install Cdat_Lite === 
    103 {{{ 
    104 sudo python -m  easy_install http://ndg.nerc.ac.uk/dist/cdat_lite-4.1.2-0.2.4.tar.gz 
    105 }}} 
    106  
    107 === Step 6.5: Install CSML === 
     52This stage will install the CSML, cdat_lite and numpy eggs.  As of CDatLite 5.0, the Numeric package is replaced by numpy.  These instructions are given here but more details of the new CDatLite package can be found [wiki:CdatLite here].   
     53 
     54Download the netCDF tarball from [here http://www.unidata.ucar.edu/software/netcdf/].  Extract and follow the instructions in the INSTALL file.  If you encounter problems there is a [help page with a list of known issues http://www.unidata.ucar.edu/software/netcdf/docs/known_symptoms.html] 
     55 
     56Install numpy: 
     57{{{ 
     58sudo python -m easy_install numpy 
     59}}} 
     60 
     61Install CDatLite: 
     62{{{ 
     63sudo python -m easy_install numpy 
     64}}} 
     65 
     66Install CSML: 
    10867{{{ 
    10968sudo python -m easy_install -f http://ndg.nerc.ac.uk/dist csml 
     
    12079>>> import pylons 
    12180>>> import paste 
    122 >>> import Numeric 
     81>>> import numpy 
    12382>>> import cdms 
    12483>>> import csml