Changes

Jump to navigation Jump to search

Installation mac mavericks os x

2,596 bytes added, 11:52, 27 October 2017
__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 a python package distribution, which solves this.
 
Please procede with this guide [[Epd_canopy | Epd Canopy]].
 
The benefits on installing this system is following:
# Total stand-alone installation. No messing with system files.
# wxPython issues and compilations are taken care of
# 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.
<source lang="bash">
$ which python
/Users/XXX/Library/Enthought/Canopy_64bit/User/bin/python
</source>
 
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">
$ 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'
</source>
 
==== Minfx and Bmrblib ====
 
# [[Minfx#Install | Minfx]]
# [[Bmrblib#Install | Bmrblib]]
 
Then check
{{#tag: source|
$ 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.framework/Versions/7.3/lib/python2.7/site-packages/minfx/__init__.pyc'
| 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://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">
svn co svn://svn.gna.org/svn/relax/trunk relax_trunk
</source>
 
If this svn command does not work, try:
<source lang="bash">
svn co http://svn.gna.org/svn/relax/trunk relax_trunk
</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
scons
</source>
== Install brew as 'linux' package manager ==
</source>
== Download a python distribution which include wxPython ==At the time Especially '''xmgrace''' 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 hereplotting facility in mac.]
The problem == Install xmgrace =='''xmgrace''' is based on the wxPython version and 32/64 bit issuesused for plotting. <brsource lang="bash">It is therefore strongly recommended to brew install grace</source>Restart the 32 bit python package distributionterminal, and try to find xmgraceIf one installs the <source lang="epdbash" enthought python distribution, this will include a working wxPython. >which xmgracehttps:/usr/www.enthought.comlocal/repobin/epd/installersxmgrace</ <brsourceSpecifically download and install: epd-7.3-2-macosx-i386.dmg
Special note about 64-bit Mac OSX If you cannot run xmgrace, you may need to install [http://xquartz.macosforge.org/ xquartz].
<blockquote>== See also ==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>[[Category:Installation]]
Trusted, Bureaucrats
4,228

edits

Navigation menu