Installation mac

From relax wiki
Jump to navigation Jump to search

Installing the relax dependencies

The python-devel and scons packages are only required if the C modules need to be compiled for your system.
The Grace software is used for visualisation of 2D data sets.

macports

Not explained yet. Please provide your solution, if you know it.

fink

Not explained yet. Please provide your solution, if you know it

homebrew

See this email thread.

  • download and install Apple's Xcode
  • install the "Command Line Tools" from inside Xcode
  • install Homebrew by typing into your Terminal:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
  • install python 2.7 with pip, etc on board, scons for relaxation compiling and wxPython for a native Mac GUI:
brew install python scons wxmac
  • install numpy via pip (don't install scipy, as it causes problems with scons!)
pip install numpy
  • download the relax source release
 (e.g. http://download.gna.org/relax/relax-2.1.2.src.tar.bz2)
  • unpack it into a seperate directory inside /usr/local/
  • cd into the directory, type scons to make the relaxation fitting modules
  • link the relax main program into /usr/local/bin

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:

wget http://download.gna.org/minfx/minfx-1.0.5.tar.gz
tar -xzf minfx-1.0.5.tar.gz
cd minfx-1.0.5
python setup.py install
cd ..

wget http://download.gna.org/bmrblib/bmrblib-1.0.3.tar.gz
tar -xzf bmrblib-1.0.3.tar.gz
cd bmrblib-1.0.3
python setup.py install
cd ..

Testing the Python installation

Before installing relax, it is best to be sure that the Python modules are functional by importing them:

$ python
Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2

>>> import wx
>>> wx.__file__
'...'

>>> import bmrblib
>>> bmrblib.__file__
'...'

>>> import minfx
>>> minfx.__file__
'...'

See also