Changes

Jump to navigation Jump to search

Installation mac mavericks os x

1,884 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, which solves this. Please procede with this guide [[Epd_canopy | Epd Canopy]].
If one installs the "epd" enthought python distribution, The benefits on installing this will include a working wxPython.<br>system is following:SIgn# Total stand-up alone installation. No messing with preferably a university email to get the [https://wwwsystem files.enthought.com/products/canopy/academic/ Academic License], # wxPython issues and you can then download for freecompilations are taken care ofhttps://www# Canopy includes a code editor.enthoughtNot perfect, but a good start.com/repo/epd/installers/
Specifically download === Testing the Python installation ===After installation, restart your terminal, and install:check path to python.<brsource lang="bash">'''epd-7.3-2-macosx-i386.dmg'''$ which python/Users/XXX/Library/Enthought/Canopy_64bit/User/bin/python</source>
Special note about 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:<source lang="python">$ pythonEnthought Canopy Python 2.7.6 | 64-bit Mac OSX | (default, Apr 11 2014, 11:55:30) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwinType "help", "copyright", "credits" or "license" for more information.
<blockquote>>> import wx; wx.__version__; wx.__file__The macosx-x86_64 installer does not include wxPython, which a lot of ETS relies on'2.9.2. Even though ETS supports the use of PySide as a backend, things are much less stable under Qt4''/Users/tlinnet/Library/Enthought/Canopy_64bit/User/lib/python2. Therefore, if you want to use ETS, we recommned using the 327/site-bit EPD on Mac OSXpackages/wx/__init__. pyc'</blockquotesource>
== Testing the Python installation == Minfx and Bmrblib ====
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# [[Minfx#Install | Minfx]]# [[Bmrblib#Install | Bmrblib]] Then check{{#tag:<source lang="python">|
$ python
import bmrblib; bmrblib.__version__; bmrblib.__file__'{{current version bmrblib}}''/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/bmrblib/__init__.pyc' import minfx; minfx.__version__; minfx.__file__'{{current version minfx}}''/Library/Frameworks/Python 2.6framework/Versions/7.3/lib/python2.7/site-packages/minfx/__init__.6 (r266pyc'| lang="python"}}  Check if the have been installed<source lang="bash">pip freeze | grep "minfx\|bmrblib"</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:84292//www.nmr-relax.com/download.html relax downloads], Oct 12 2012, 14the [http:23:48)//subversion.tigris.org/ Subversion] program should first be installed. <br>You can see the different branches [GCC 4http://svn.4gna.6 20120305 (Red Hat 4org/viewcvs/relax/ here.4] <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">svn co svn://svn.6-4)] on linux2gna.org/svn/relax/trunk relax_trunk</source>
If this svn command does not work, try:<source lang="bash">>> import wx>>> wxsvn co http://svn.__version__; wxgna.__file__org/svn/relax/trunk relax_trunk'...'</source>
>>> import bmrblib>>> bmrblib.__version__; bmrblib.__file__'...'==== 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">>> import minfx>>> minfx.__version__; minfx.__file__cd relax_trunk'...'scons
</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

Navigation menu