public:user_software:cr-tools:installation_mac_os_x_10.6_64_bit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:user_software:cr-tools:installation_mac_os_x_10.6_64_bit [2011-10-18 15:53] Lars Bahrenpublic:user_software:cr-tools:installation_mac_os_x_10.6_64_bit [2017-03-08 15:27] (current) – external edit 127.0.0.1
Line 9: Line 9:
     * [[#CMake]]     * [[#CMake]]
     * [[#Python]]     * [[#Python]]
 +    * [[#Numpy]]
 +    * [[#Scipy]]
 +    * [[#Matplotlib]]
   - [[#Installing CR-Tools]]   - [[#Installing CR-Tools]]
  
Line 34: Line 37:
 === Fortran compiler === === Fortran compiler ===
  
-  - Install the 64 bit optimized version of the GNU fortran compiler from the [[http://hpc.sourceforge.net|High Performance Computing]] project. +  - Install the 64 bit optimized version of the GNU fortran compiler from the [[http://hpc.sourceforge.net|High Performance Computing]] project. Make sure you select the gfortan only binaries which can be found [[http://prdownloads.sourceforge.net/hpc/gfortran-snwleo-intel-bin.tar.gz?download|here]].
-Make sure you select the gfortan only binaries which can be found [[http://prdownloads.sourceforge.net/hpc/gfortran-snwleo-intel-bin.tar.gz?download|here]].+
   - Then <code bash>   - Then <code bash>
 gunzip gcc-bin.tar.gz gunzip gcc-bin.tar.gz
Line 41: Line 43:
   sudo tar -xvf gcc-bin.tar -C /.   sudo tar -xvf gcc-bin.tar -C /.
 </code> It installs everything in ''/usr/local''. </code> It installs everything in ''/usr/local''.
- +  - You can test if this worked by typing <code bash>gfortran</code>
-You can test if this worked by typing +
-  gfortran+
  
 === CMake === === CMake ===
Line 52: Line 52:
  
 === Python === === Python ===
 +
 There are three ways to install Python. There are three ways to install Python.
 You may use the Enthought Python Distribution binary installer (EPD 6.3 64 bit) DMG (recommended), fink or you may compile Python and all required packages from source manually. You may use the Enthought Python Distribution binary installer (EPD 6.3 64 bit) DMG (recommended), fink or you may compile Python and all required packages from source manually.
-=== Using Fink === + 
-== Installing 64 bit Fink ==+=== 64 bit installation using Fink === 
 First download the source code from [[http://downloads.sourceforge.net/fink/fink-0.29.21.tar.gz|here]]. First download the source code from [[http://downloads.sourceforge.net/fink/fink-0.29.21.tar.gz|here]].
  
-Unpack the tar.gz archive if this hasn't been done automatically, e.g. via+Unpack the ''tar.gz'' archive if this hasn't been done automatically, e.g. via
  
-  tar -xvzf fink-0.29.21.tar.gz+<code bash> 
 +tar -xvzf fink-0.29.21.tar.gz 
 +</code>
  
 if it has already been partially unpacked, in a terminal window. Then, in a terminal window, change to the resulting fink-0.29.21 directory, and use if it has already been partially unpacked, in a terminal window. Then, in a terminal window, change to the resulting fink-0.29.21 directory, and use
  
-  ./bootstrap+<code bash> 
 +./bootstrap 
 +</code>
  
 to start the boostrapping operation, which will install the Fink base setup. to start the boostrapping operation, which will install the Fink base setup.
 When you get the following question: "Your hardware is a 64bit-compatible intel processor, so you have the option of running Fink in 64bit-only mode. This is not recommended for most users, since many more packages are available for the default mode (which is mostly 32bit but includes some 64bit packages). Which mode would you like to use?" When you get the following question: "Your hardware is a 64bit-compatible intel processor, so you have the option of running Fink in 64bit-only mode. This is not recommended for most users, since many more packages are available for the default mode (which is mostly 32bit but includes some 64bit packages). Which mode would you like to use?"
  
-  (1)     Default (mostly 32bit) +<code> 
-  (2)     64bit-only+(1)     Default (mostly 32bit) 
 +(2)     64bit-only 
 +</code>
  
 Be sure to select option 2 to build the 64 bit version. Be sure to select option 2 to build the 64 bit version.
  
-  Choose a mode: [1] 2+<code> 
 +Choose a mode: [1] 2 
 +</code>
  
 After the installation is completed, running the command After the installation is completed, running the command
  
-  /sw/bin/pathsetup.sh+<code bash> 
 +/sw/bin/pathsetup.sh 
 +</code>
  
 will set up your environment for Fink (assuming you have installed Fink under /sw). If you open a new terminal window, the session will use these environment settings. Once you have installed fink and the other base packages, the command sequences: will set up your environment for Fink (assuming you have installed Fink under /sw). If you open a new terminal window, the session will use these environment settings. Once you have installed fink and the other base packages, the command sequences:
  
-  fink selfupdate-rsync +<code bash> 
- +fink selfupdate-rsync 
-  fink index -f+fink index -f 
 +</code>
  
 If you have not done so during the bootstrap, switch your fink installation to use the unstable tree by running If you have not done so during the bootstrap, switch your fink installation to use the unstable tree by running
  
-  fink configure+<code bash> 
 +fink configure 
 +</code>
  
 and selecting the appropriate option. and selecting the appropriate option.
 Then run the following commands to update the index and rebuild all packages. Then run the following commands to update the index and rebuild all packages.
  
-  fink selfupdate +<code bash> 
-  fink selfupdate-rsync +fink selfupdate 
-  fink index -f +fink selfupdate-rsync 
-  fink scanpackages+fink index -f 
 +fink scanpackages 
 +</code>
  
 Finally install the required packages using the following command: Finally install the required packages using the following command:
  
-  fink install numpy-py26 scipy-py26 matplotlib-py26 pyfits-py26 ipython-py26+<code bash> 
 +fink install numpy-py26 scipy-py26 matplotlib-py26 pyfits-py26 ipython-py26 
 +</code>
  
 Unfortunately Fink also automatically installs a basic python 2.7 which does not work with the current version of boost python. Unfortunately Fink also automatically installs a basic python 2.7 which does not work with the current version of boost python.
 Therefore remove this installation using: Therefore remove this installation using:
  
-  sudo fink remove -r python27 python27-shlib+<code bash> 
 +sudo fink remove -r python27 python27-shlib 
 +</code>
  
 Also make sure that python points to the default python by creating the correct symlink. Also make sure that python points to the default python by creating the correct symlink.
  
-  sudo ln -s /sw/bin/python2.6 /sw/bin/python+<code bash> 
 +sudo ln -s /sw/bin/python2.6 /sw/bin/python 
 +</code>
  
 And check if your path is set correctly And check if your path is set correctly
  
-  which python+<code bash> 
 +which python 
 +</code>
      
 should give you should give you
  
-  /sw/bin/python+<code> 
 +/sw/bin/python 
 +</code>
  
 === Manually compile from source === === Manually compile from source ===
 +
 If you want to build the Python Pypeline you will need to install the latest 2.6 series version of Python. If you want to build the Python Pypeline you will need to install the latest 2.6 series version of Python.
 Unfortunately the binaries for OSX Snow Leopard are compiled as 32 bit. Unfortunately the binaries for OSX Snow Leopard are compiled as 32 bit.
Line 148: Line 176:
 If you are running 64-bit, it will be 9223372036854775807, for 32 bit it will print 2147483647, if the latter is the case please check what went wrong before continuing. If you are running 64-bit, it will be 9223372036854775807, for 32 bit it will print 2147483647, if the latter is the case please check what went wrong before continuing.
  
-== Numpy ==+=== Numpy ==
 Download the source code for the latest stable version of numpy [[http://sourceforge.net/projects/numpy/files/NumPy/1.4.1/numpy-1.4.1.tar.gz/download|here]]. Download the source code for the latest stable version of numpy [[http://sourceforge.net/projects/numpy/files/NumPy/1.4.1/numpy-1.4.1.tar.gz/download|here]].
 Then extract and install using Then extract and install using
Line 155: Line 184:
   sudo python setup.py install   sudo python setup.py install
  
-== Scipy == +=== Scipy === 
-Download the source code for the latest stable version of scipy [[http://sourceforge.net/projects/scipy/files/scipy/0.7.2/scipy-0.7.2.tar.gz/download|here]]. + 
-Then extract and install using +  - Download the source code for the latest stable version of scipy [[http://sourceforge.net/projects/scipy/files/scipy/0.7.2/scipy-0.7.2.tar.gz/download|here]]. 
-  tar xvf scipy-0.7.2.tar.gz +  - Extract the tar-archive: <code bash> 
-  cd scipy-0.7.2 +tar xvf scipy-0.7.2.tar.gz 
-  sudo python setup.py install+</code> 
 +  - Build and install Scipy: <code bash> 
 +cd scipy-0.7.2 
 +sudo python setup.py install 
 +</code> 
 + 
 +=== Matplotlib ===
  
-== Matplotlib == 
 Compiling a 64bit version of matplotlib is a bit more involved. Compiling a 64bit version of matplotlib is a bit more involved.
 We need the latest SVN checkout of the matplotlib source code. We need the latest SVN checkout of the matplotlib source code.
  • Last modified: 2011-10-18 15:53
  • by Lars Bahren