Open main menu

Changes

Installation mac mavericks os x

722 bytes added, 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. If one installs the "epd" enthought python distribution, which solves this will include a working wxPython.<br>SIgn-up with preferably a university email to get the [https://www.enthought.com/products/canopy/academic/ Academic License], and you can then download for freehttps://www.enthought.com/repo/epd/installers/ Specifically download and install:<br>epd-7.x-x-macosx-'''i386'''.dmg
Special note about 64-bit Mac OSX Please procede with this guide [[Epd_canopy | Epd Canopy]].
<blockquote>The benefits on installing this system is following:The macosx# Total stand-x86_64 installer does not include alone installation. No messing with system files.# wxPython, which a lot issues and compilations are taken care of ETS relies on. Even though ETS supports the use of PySide as # Canopy includes a backend, things are much less stable under Qtcode editor. ThereforeNot perfect, if you want to use ETS, we recommned using the 32-bit EPD on Mac OSXbut a good start. </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 Canopy Python Distribution -- www2.enthought7.com6 | 64-bit | (default, Apr 11 2014, 11:55:30) Version: 7[GCC 4.3-2 .1 (32-bitApple Inc. build 5666) (dot 3)] on darwinType "help", "copyright", "credits" or "license" for more information.
Python >>> import wx; wx.__version__; wx.__file__'2.79.3 |EPD 72.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34) 4'[GCC 4'/Users/tlinnet/Library/Enthought/Canopy_64bit/User/lib/python2.07/site-packages/wx/__init__.1 (Apple Inc. build 5493)] on darwinpyc'Type "credits", "demo" or "enthought" for more information.</source>
>>> ==== Minfx and Bmrblib ==== # [[Minfx#Install | Minfx]]# [[Bmrblib#Install | Bmrblib]] Then check{{#tag: source|$ pythonimport wx>>> wxbmrblib; bmrblib.__version__; wxbmrblib.__file__'2{{current version bmrblib}}''/Library/Frameworks/Python.8framework/Versions/7.103/lib/python2.7/site-packages/bmrblib/__init__.1pyc' import minfx; minfx.__version__; minfx.__file__'{{current version minfx}}''/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/wxminfx/__init__.pypyc'| lang="python"}}  Check if the have been installed<source lang="bash">pip freeze | grep "minfx\|bmrblib"
</source>
Then install pip== 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">
$ sudo easy_install pipsvn co svn://svn.gna.org/svn/relax/trunk relax_trunk
</source>
=== Minfx and Bmrblib ===Remember to checkIf this svn command does not work, 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/ minfx] and [https://gna.org/projects/bmrblib/ bmrblib] libraries can be installed on all Linux systems by typingtry:
<source lang="bash">
cd $HOME/Downloadscurl svn co http://downloadsvn.gna.org/minfxsvn/relax/minfx-1.0.5.tar.gz -o minfx-1.0.5.tar.gztrunk relax_trunktar -xzf minfx-1.0.5.tar.gzcd minfx-1.0.5sudo python setup.py installcd ..</source>
curl http://download.gna.org/bmrblib/bmrblib-1.0.3.tar.gz -o bmrblib-1.0.3.tar.gztar -xzf bmrblib-1.0.3.tar.gzcd bmrblib-1.0.3sudo python setup.py installcd ..</source>==== Compilation of the C modules ====
Check if For the have been installed{{: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">
pip freeze | grep "minfx\|bmrblib"cd relax_trunkscons
</source>
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
</source>
 
Especially '''xmgrace''' for the plotting facility in mac.
 
== Install xmgrace ==
'''xmgrace''' is used for plotting.
<source lang="bash">
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