Installation mac mavericks os x
Contents
Installation
Download a python distribution which include wxPython
At the time for this post, (Dec 2013), the installation of wxPython2.9-osx-cocoa-py2.7 made hickups and crashes.
This is reported here and here.
The problem is based on the wxPython version and 32/64 bit issues.
It is therefore strongly recommended to install the 32 bit python package distribution.
If one installs the "epd" enthought python distribution, this will include a working wxPython.
SIgn-up with preferably a university email to get the Academic License, and you can then download for free
https://www.enthought.com/repo/epd/installers/
Specifically download and install:
epd-7.x-x-macosx-i386.dmg
Special note about 64-bit Mac OSX
The macosx-x86_64 installer does not include wxPython, which a lot of ETS relies on. Even though ETS supports the use of PySide as a backend, things are much less stable under Qt. Therefore, if you want to use ETS, we recommned using the 32-bit EPD on Mac OSX.
Testing the Python installation
After installation, restart your terminal, and check path to python.
$ which python
/Library/Frameworks/Python.framework/Versions/Current/bin/python
Before installing relax, it is best to be sure that the Python modules are functional by trying to import them and print the version of them:
$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.3-2 (32-bit)
Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "credits", "demo" or "enthought" for more information.
>>> import wx; wx.__version__; wx.__file__
'2.8.10.1'
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/wx/__init__.py'
Then install pip
$ sudo easy_install pip
Minfx and Bmrblib
Remember to check, if there are newer versions of minfx and bmrblib.
The minfx and bmrblib libraries can be installed on all Linux systems by typing:
cd $HOME/Downloads
curl http://download.gna.org/minfx/minfx-1.0.5.tar.gz -o minfx-1.0.5.tar.gz
tar -xzf minfx-1.0.5.tar.gz
cd minfx-1.0.5
sudo pip install .
cd ..
curl http://download.gna.org/bmrblib/bmrblib-1.0.3.tar.gz -o bmrblib-1.0.3.tar.gz
tar -xzf bmrblib-1.0.3.tar.gz
cd bmrblib-1.0.3
sudo pip install .
cd
Then check
$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.3-2 (32-bit)
Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "credits", "demo" or "enthought" for more information.
import bmrblib; bmrblib.__version__; bmrblib.__file__
'1.0.3'
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/bmrblib/__init__.pyc'
import minfx; minfx.__version__; minfx.__file__
'1.0.5'
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/minfx/__init__.pyc'
Check if the have been installed
pip freeze | grep "minfx\|bmrblib"
Checking out a relax branch and build with scons
If you would like to play with relax branch rather than the main relax downloads, the Subversion program should first be installed.
You can see the different branches here.
First the relax sources can be checked out of the source code repository and the C modules compiled:
Using subversion or git
To check out the trunk branch using the subversion client, simply type:
svn co svn://svn.gna.org/svn/relax/trunk relax_trunk
If this svn command does not work, try:
svn co http://svn.gna.org/svn/relax/trunk relax_trunk
Compilation of the C modules
For the R1 and R2 and relaxation dispersion analyses, the relax C modules must be compiled. This is done using the scons program, by simply typing:
cd relax_trunk
scons
Install brew as 'linux' package manager
You can read about brew here.
In short, it is like a package manager for mac, where you will be able to get linux programs to mac.
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
Install xmgrace
xmgrace is used for plotting.
brew install grace
Restart the terminal, and try to find xmgrace.
which xmgrace
/usr/local/bin/xmgrace
If you cannot run xmgrace, you may need to install xquartz.