Difference between revisions of "Installation mac mavericks os x"

From relax wiki
Jump to navigation Jump to search
(→‎Minfx and Bmrblib: Use of the {{current version minfx}} and {{current version bmrblib}} templates to keep the version numbers current.)
Line 40: Line 40:
  
 
Then check
 
Then check
<source lang="python">
+
{{#tag: source|
 
$ python
 
$ python
 
import bmrblib; bmrblib.__version__; bmrblib.__file__
 
import bmrblib; bmrblib.__version__; bmrblib.__file__
'1.0.3'
+
'{{current version bmrblib}}'
 
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/bmrblib/__init__.pyc'
 
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/bmrblib/__init__.pyc'
  
 
import minfx; minfx.__version__; minfx.__file__
 
import minfx; minfx.__version__; minfx.__file__
'1.0.9'
+
'{{current version minfx}}'
 
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/minfx/__init__.pyc'
 
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/minfx/__init__.pyc'
</source>
+
| lang="python"}}
 +
 
  
 
Check if the have been installed
 
Check if the have been installed

Revision as of 16:49, 19 October 2015

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 a python package distribution, which solves this.

Please procede with this guide Epd Canopy.

The benefits on installing this system is following:

  1. Total stand-alone installation. No messing with system files.
  2. wxPython issues and compilations are taken care of
  3. Canopy includes a code editor. Not perfect, but a good start.

Testing the Python installation

After installation, restart your terminal, and check path to python.

$ which python
/Users/XXX/Library/Enthought/Canopy_64bit/User/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 Canopy Python 2.7.6 | 64-bit | (default, Apr 11 2014, 11:55:30) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import wx; wx.__version__; wx.__file__
'2.9.2.4'
'/Users/tlinnet/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/wx/__init__.pyc'

Minfx and Bmrblib

  1. Minfx
  2. Bmrblib

Then check

$ python
import bmrblib; bmrblib.__version__; bmrblib.__file__
'1.0.4'
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/bmrblib/__init__.pyc'

import minfx; minfx.__version__; minfx.__file__
'1.0.12'
'/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)"

Especially xmgrace for the plotting facility in mac.

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.

See also