Difference between revisions of "Installation linux"

From relax wiki
Jump to navigation Jump to search
(→‎build relax: Updated the building relax section.)
(→‎Installing the relax dependencies: expansion of this section.)
Line 1: Line 1:
 
== Installing the relax dependencies ==
 
== Installing the relax dependencies ==
 +
 +
=== RHEL 5 and compatible distributions ===
  
 
For RPM-based Linux distributions with access to the YUM installer, first install the relax dependencies with:
 
For RPM-based Linux distributions with access to the YUM installer, first install the relax dependencies with:
 
<source lang="bash">
 
<source lang="bash">
 
yum install python
 
yum install python
 +
yum install python-devel
 +
yum install numpy
 +
yum install scipy
 +
yum install python-matplotlib
 
yum install scons
 
yum install scons
 
yum install wxPython
 
yum install wxPython
Line 12: Line 18:
 
<source lang="bash">
 
<source lang="bash">
 
sudo yum install python
 
sudo yum install python
 +
sudo yum install python-devel
 +
sudo yum install numpy
 +
sudo yum install scipy
 +
sudo yum install python-matplotlib
 
sudo yum install scons
 
sudo yum install scons
 
sudo yum install wxPython
 
sudo yum install wxPython
 
sudo yum install grace
 
sudo yum install grace
 
</source>
 
</source>
 +
 +
=== Minfx and Bmrblib ===
  
 
The [[http://plasma-gate.weizmann.ac.il/Grace/ Grace]] software is used for visualisation of 2D data sets.  Next the [[https://gna.org/projects/minfx/ minfx]] and [[http://gna.org/projects/bmrblib/ bmrblib]] libraries can be installed on all Linux systems by typing:
 
The [[http://plasma-gate.weizmann.ac.il/Grace/ Grace]] software is used for visualisation of 2D data sets.  Next the [[https://gna.org/projects/minfx/ minfx]] and [[http://gna.org/projects/bmrblib/ bmrblib]] libraries can be installed on all Linux systems by typing:

Revision as of 16:06, 19 July 2013

Installing the relax dependencies

RHEL 5 and compatible distributions

For RPM-based Linux distributions with access to the YUM installer, first install the relax dependencies with:

yum install python
yum install python-devel
yum install numpy
yum install scipy
yum install python-matplotlib
yum install scons
yum install wxPython
yum install grace

If you do not have root access but are in the sudo group, you can type:

sudo yum install python
sudo yum install python-devel
sudo yum install numpy
sudo yum install scipy
sudo yum install python-matplotlib
sudo yum install scons
sudo yum install wxPython
sudo yum install grace

Minfx and Bmrblib

The [Grace] software is used for visualisation of 2D data sets. Next the [minfx] and [bmrblib] libraries can be installed on all Linux systems by typing:

wget http://download.gna.org/minfx/minfx-1.0.5.tar.gz
tar -xzf minfx-1.0.5.tar.gz
cd minfx-1.0.5
python setup.py install
cd ..

wget http://download.gna.org/bmrblib/bmrblib-1.0.3.tar.gz
tar -xzf bmrblib-1.0.3.tar.gz
cd bmrblib-1.0.3
python setup.py install
cd ..

Testing the Python installation

Before installing relax, it is best to be sure that the Python modules are functional by importing them:

$ python
Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2

>>> import wx
>>> wx.__file__
'...'

>>> import bmrblib
>>> bmrblib.__file__
'...'

>>> import minfx
>>> minfx.__file__
'...'

Checking out a relax branch

If you would like to play with relax branch rather than the main [relax downloads], the [Subversion] program should first be installed. First the relax sources can be checked out of the source code repository and the C modules compiled:

svn co svn://svn.gna.org/svn/relax/branches/relax_disp relax_disp
cd relax_disp
scons

# Optional building of the user manual, if a LaTeX installation is available.
scons user_manual_pdf

If the svn command does not work, try:

svn co http://svn.gna.org/svn/relax/branches/relax_disp relax_disp

Add to path - C_shell / Tcsh

cd relax_disp
echo "setenv PATH $PWD"':$PATH' >> $HOME/.cshrc