Changes

Jump to navigation Jump to search

Installation mac mavericks os x

742 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 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>
==== Minfx and Bmrblib ==== # [[Minfx#Install | Minfx]]# [[Bmrblib#Install | Bmrblib]] Then install pipcheck{{#tag: source|$ pythonimport 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">
$ sudo easy_install pipfreeze | grep "minfx\|bmrblib"
</source>
=== Minfx Checking out a relax branch and Bmrblib =build with scons ==Remember {{historical svn}}If you would like to check, if there are newer versions of play with relax branch rather than the main [http://downloadwww.gnanmr-relax.orgcom/minfx minfxdownload.html relax downloads] and , the [http://downloadsubversion.gnatigris.org/bmrblib bmrblibSubversion]program should first be installed. <br>The You can see the different branches [httpshttp://svn.gna.org/projects/minfx/ minfx] and [https:viewcvs/relax/gnahere.org/projects/bmrblib/ bmrblib] libraries <br>First the relax sources can be installed on all Linux systems by typingchecked 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">
cd $HOME/Downloadscurl httpsvn co svn://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 pip install -e .cd ..</source>
curl If this svn command does not work, try:<source lang="bash">svn co http://downloadsvn.gna.org/bmrblibsvn/relax/bmrblib-1.0.3.tar.gz -o bmrblib-1.0.3.tar.gztar -xzf bmrblib-1.0.3.tar.gzcd bmrblib-1.0.3sudo pip install -e .cdtrunk relax_trunk
</source>
Check if ==== Compilation of the have been installedC 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">
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

Navigation menu