Open main menu

Changes

Installation mac mavericks os x

1,140 bytes removed, 11:52, 27 October 2017
= Installation =__TOC__
== 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.<br>
This is reported [https://gna.org/bugs/?21324 here] and [http://thread.gmane.org/gmane.science.nmr.relax.devel/4787 here.]
The problem is based on the wxPython version and 32/64 bit issues. <br>
It is therefore strongly recommended to install the 32 bit a python package distribution, which solves this.
If one installs the "epd" enthought python distribution, Please procede with this will include a working wxPython.<br>SIgn-up with preferably a university email to get the guide [[https://www.enthought.com/products/canopy/academic/ Academic LicenseEpd_canopy | Epd Canopy]], and you can then download for freehttps://www.enthought.com/repo/epd/installers/
Specifically download and installThe benefits on installing this system is following:<br>epd# Total stand-7alone installation.x-x-macosx-'''i386'''No messing with system files.# wxPython issues and compilations are taken care of# Canopy includes a code editor. Not perfect, but a good start.dmg
Special note about 64-bit Mac OSX  <blockquote>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. </blockquote> === Testing the Python installation ===
After installation, restart your terminal, and check path to python.
<source lang="bash">
$ which python
/Users/XXX/Library/Frameworks/Python.frameworkEnthought/VersionsCanopy_64bit/CurrentUser/bin/python
</source>
<source lang="python">
$ python
Enthought Python Distribution -- www.enthought.comVersion: 7.3-2 (32-bit) Canopy Python 2.7.3 6 |EPD 7.3-2 (3264-bit)| (default, Apr 12 201211 2014, 11:2855:3430) [GCC 4.02.1 (Apple Inc. build 54935666) (dot 3)] on darwinType "creditshelp", "copyright", "democredits" or "enthoughtlicense" for more information.
>>> import wx; wx.__version__; wx.__file__
'2.89.102.14''/Users/tlinnet/Library/Frameworks/Python.frameworkEnthought/VersionsCanopy_64bit/7.3User/lib/python2.7/site-packages/wx/__init__.pypyc'
</source>
Then install pip<source lang="bash">$ sudo easy_install pip</source>=== Minfx and Bmrblib ====
=== # [[Minfx#Install | Minfx and Bmrblib ===Remember to check, if there are newer versions of [http://download.gna.org/minfx minfx] and [http://download.gna.org/bmrblib bmrblib]. <br>The # [[https://gna.org/projects/minfx/ minfxBmrblib#Install | Bmrblib] and [https://gna.org/projects/bmrblib/ bmrblib] libraries can be installed on all Linux systems by typing:<source lang="bash">cd $HOME/Downloadscurl http://download.gna.org/minfx/minfx-1.0.5.tar.gz -o minfx-1.0.5.tar.gztar -xzf minfx-1.0.5.tar.gzcd minfx-1.0.5sudo 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
</source>
Then check
<{{#tag: source lang="python">|
$ 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{{current version bmrblib}}'
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/bmrblib/__init__.pyc'
import minfx; minfx.__version__; minfx.__file__
'1.0.5{{current version minfx}}'
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/minfx/__init__.pyc'
</source>| lang="python"}} 
Check if the have been installed
</source>
== Checking out a relax branch and build with scons =={{historical svn}}
If you would like to play with relax branch rather than the main [http://www.nmr-relax.com/download.html relax downloads], the [http://subversion.tigris.org/ Subversion] program should first be installed. <br>
You can see the different branches [http://svn.gna.org/viewcvs/relax/ here.] <br>
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:
<source lang="bash">
</source>
==== 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:
<source lang="bash">
cd relax_trunk
 
SEARCH="'i386', 'ppc', 'x86_64'"
REPLACE="'i386', 'x86_64'"
 
mv sconstruct sconstruct_bck
cat sconstruct_bck | sed -e "s/$SEARCH/$REPLACE/" > sconstruct
scons
</source>
== Install brew as 'linux' package manager ==
You can [http://brew.sh/ read about brew here.]<br>
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)"
</source>
 
Especially '''xmgrace''' for the plotting facility in mac.
== Install xmgrace ==
brew install grace
</source>
Restart the terminal, and try to find xmgrace.
<source lang="bash">
which xmgrace
/usr/local/bin/xmgrace
</source>
 
If you cannot run xmgrace, you may need to install [http://xquartz.macosforge.org/ xquartz].
== See also ==
[[Category:Installation]]
Trusted, Bureaucrats
4,228

edits