...
- Get the source from /nfs/farm/g/glast/u05/extlib/cfitsio/cfitsio-v3.060A-src.tar.gz
- Unzip in temporary directory
- cd into that directory
- 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).
...
*Note: Make sure you do the build from bldmac01 or bldmac02 (Intel processors).
- The
...
- source can be found here /nfs/farm/g/glast/u05/extlib/xerces/xerces-c-src_2_7_0-gl1-mac.tar.gz
- Copy the source to a temporary directory
- Run the following
Why the patch?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>
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
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
- 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
- Repeat step 3 from above
- 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
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
...