Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Get the source from /nfs/farm/g/glast/u05/extlib/cfitsio/cfitsio-v3.060A-src.tar.gz
  2. Unzip in temporary directory
  3. cd into that directory
  4. Run the following (for a shared library, instead of running "make," run, "make shared")
    Code Block
     ./configure --prefix=<installation directory>
    make
    make install
    

Mac Ooperating system

*Note:  Make sure you do the build from bldmac01 or bldmac02 (Intel processors). (smile)

...

*Note:  Make sure you do the build from bldmac01 or bldmac02 (Intel processors). (smile)

  1. The

...

  1. source can be found here /nfs/farm/g/glast/u05/extlib/xerces/xerces-c-src_2_7_0-gl1-mac.tar.gz
  2. Copy the source to a temporary directory
  3. Run the following
    Code Block
    
    tar -zxvf xerces-c-src_2_7_0-gl1-mac.tar.gz
    setenv XERCESCROOT <path-to-xerces-c-src_2_7_0-gl1-mac>/xerces-c-src_2_7_0-gl1-mac
    cd xerces-c-src_2_7_0-gl1-mac
    cd src/xercesc
    ./runConfigure -p macosx -n native -t native -P <install-path>
    
    
    Why the patch?

The version of xerces that was being used assumes a PPC mac only so it builds as big endian (breaking xml parsing on intel macs). The newer (3.x) versions of xerces check at runtime but it is easy to check at build time in the version we use.

The problematic file was:  xerces/src/xercesc/util/Platforms/MacOS/MacOSDefs.hpp (thumbs down)

No need to fix this file because xerces-c-src_2_7_0-gl1-mac.tar.gz already contains the patch.Obtaining the original MacOSDefs.hpp (without the patch)If for any reason you need the original file, then it's located in
<path-to-xerces-c-src_2_7_0-gl1-mac>/xerces-c-src_2_7_0-gl1-mac/MacOSDefs.hpp-original

Building xerces-2.7.0 against the original MacOSDefs.hpp

If you want to build this xerces-2.7.0-gl1 against the original MacOSDefs.hpp file there are 2 methods to do it

    1. From within xerces-c-src_2_7_0-gl1-mac, copy (the contents) MacOSDefs.hpp-original to xerces/src/xercesc/util/Platforms/MacOS/MacOSDefs.hpp
    2. Repeat step 3 from above
    1. Grab, and extract, the original xerces-2.7.0 from /nfs/farm/g/glast/u05/extlib/xerces/xerces-c-src_2_7_0.tar.gz
    2. Code Block
      
      setenv XERCESCROOT <path-to-xerces-c-src_2_7_0>/xerces-c-src_2_7_0
      cd xerces-c-src_2_7_0
      cd src/xercesc
      ./runConfigure -p macosx -n native -t native -P <install-path>
      

...

...

NumPy

Windows operating system 

...