Differences
This shows you the differences between two versions of the page.
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:45] – Lars Bahren | public: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 7: | Line 7: | ||
* [[#C/C++ compiler and tools]] | * [[#C/C++ compiler and tools]] | ||
* [[#Fortran compiler]] | * [[#Fortran compiler]] | ||
+ | * [[#CMake]] | ||
+ | * [[#Python]] | ||
+ | * [[#Numpy]] | ||
+ | * [[#Scipy]] | ||
+ | * [[# | ||
- [[# | - [[# | ||
Line 32: | Line 37: | ||
=== Fortran compiler === | === Fortran compiler === | ||
- | Install the 64 bit optimized version of the GNU fortran compiler from the [[http:// | + | - Install the 64 bit optimized version of the GNU fortran compiler from the [[http:// |
- | Make sure you select the gfortan only binaries which can be found [[http:// | + | |
- | + | gunzip gcc-bin.tar.gz | |
- | Then | + | </ |
- | gunzip gcc-bin.tar.gz | + | |
- | (if your browser didn't do so already) and | + | |
sudo tar -xvf gcc-bin.tar -C /. | sudo tar -xvf gcc-bin.tar -C /. | ||
- | It installs everything in **/usr/local**. | + | </ |
- | + | | |
- | You can test if this worked by typing | + | |
- | | + | |
=== CMake === | === CMake === | ||
Line 51: | 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), | You may use the Enthought Python Distribution binary installer (EPD 6.3 64 bit) DMG (recommended), | ||
- | === Using Fink === | + | |
- | == Installing 64 bit Fink == | + | === 64 bit installation using Fink === |
First download the source code from [[http:// | First download the source code from [[http:// | ||
- | Unpack the tar.gz archive if this hasn't been done automatically, | + | Unpack the '' |
- | | + | <code bash> |
+ | tar -xvzf fink-0.29.21.tar.gz | ||
+ | </ | ||
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 | ||
- | | + | <code bash> |
+ | ./bootstrap | ||
+ | </ | ||
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?" | ||
- | | + | < |
- | (2) | + | (1) |
+ | (2) | ||
+ | </ | ||
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 | ||
+ | </ | ||
After the installation is completed, running the command | After the installation is completed, running the command | ||
- | | + | <code bash> |
+ | / | ||
+ | </ | ||
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: | ||
- | | + | <code bash> |
- | + | fink selfupdate-rsync | |
- | | + | fink index -f |
+ | </ | ||
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 | ||
- | | + | <code bash> |
+ | fink configure | ||
+ | </ | ||
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. | ||
- | | + | <code bash> |
- | fink selfupdate-rsync | + | fink selfupdate |
- | fink index -f | + | fink selfupdate-rsync |
- | fink scanpackages | + | fink index -f |
+ | fink scanpackages | ||
+ | </ | ||
Finally install the required packages using the following command: | Finally install the required packages using the following command: | ||
- | | + | <code bash> |
+ | fink install numpy-py26 scipy-py26 matplotlib-py26 pyfits-py26 ipython-py26 | ||
+ | </ | ||
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: | ||
- | | + | <code bash> |
+ | sudo fink remove -r python27 python27-shlib | ||
+ | </ | ||
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. | ||
- | | + | <code bash> |
+ | sudo ln -s / | ||
+ | </ | ||
And check if your path is set correctly | And check if your path is set correctly | ||
- | | + | <code bash> |
+ | which python | ||
+ | </ | ||
| | ||
should give you | should give you | ||
- | | + | < |
+ | / | ||
+ | </ | ||
=== 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 147: | Line 176: | ||
If you are running 64-bit, it will be 9223372036854775807, | If you are running 64-bit, it will be 9223372036854775807, | ||
- | == Numpy == | + | === Numpy === |
Download the source code for the latest stable version of numpy [[http:// | Download the source code for the latest stable version of numpy [[http:// | ||
Then extract and install using | Then extract and install using | ||
Line 154: | 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:// | + | |
- | Then extract and install using | + | - Download the source code for the latest stable version of scipy [[http:// |
- | tar xvf scipy-0.7.2.tar.gz | + | |
- | cd scipy-0.7.2 | + | tar xvf scipy-0.7.2.tar.gz |
- | sudo python setup.py install | + | </ |
+ | | ||
+ | cd scipy-0.7.2 | ||
+ | sudo python setup.py install | ||
+ | </ | ||
+ | |||
+ | === 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. |