Project

General

Profile

How to install the new mxCuBE v2 branch using git

The following instructions describes how to install mxCuBE and all the required
dependencies.

The dependencies are:

Its recommended to use the packages that comes with the distribution you are using. Some
distributions might not have all of the packages, in that case you need to install from source.
See Installing dependencies from source for further instructions.

There is also specific instructions for the following distributions:
  • Centos 6 - See Installing dependencies for Centos 6

Installing dependencies for Centos 6

Gevent

Gevent is a coroutine library for python, more details and documentation can be found on
their website http://www.gevent.org/.

Download it from here (Watch out: the version we need is 1.0, not the old 0.13* !):
http://code.google.com/p/gevent/downloads/detail?name=gevent-1.0b2.tar.gz&can=2&q=]

wget http://gevent.googlecode.com/files/gevent-1.0b2.tar.gz
tar -xvzf gevent-1.0b2.tar.gz
cd gevent-1.0b2
sudo python setup.py install

SIP

SIP is a tool used to generate python bindings automatically for C and C++ code. Its really a dependency of PyQT and PyQwt. Go to
http://www.riverbankcomputing.co.uk/static/Docs/sip4/introduction.html for more information.

yum install sip-devel.i686 
yum install sip.i686

GSL

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. Visit http://www.gnu.org/software/gsl/ for more information.

yum install gsl.i686
yum install gsl-devel.i686

PyQT

Qt bindings for python. You can find more information on http://www.riverbankcomputing.co.uk/software/pyqt/intro.

wget http://www.riverbankcomputing.co.uk/static/Downloads/PyQt3/PyQt-x11-gpl-3.18.1.tar.gz
tar -xvzf PyQt-x11-gpl-3.18.1.tar.gz
cd PyQt-x11-gpl-3.18.1
sudo python configure.py
sudo make
sudo make install

NumPy

NumPy is a library for scientific computing, read more on http://numpy.scipy.org/.

yum install numpy.i686

PyQwt

PyQwt is a set of Python bindings for the Qwt C++ class library which extends the Qt framework with widgets for scientific and engineering applications.
Read more on http://pyqwt.sourceforge.net/.

There is a bug in the sip bindings for PyQwt-5.2.0 and Qt3. The installation procedure will work flawlessly but applications using PyQwt will crash.
The following "patch procedure" will solve the problem.

Download the CVS version of the faulty .sip.
wget http://pyqwt.cvs.sourceforge.net/viewvc/pyqwt/pyqwt5/sip/qwt5qt3/common/QwtValueList.sip?revision=1.7

Downlod PyQwt-5.2.0
wget http://downloads.sourceforge.net/project/pyqwt/pyqwt5/PyQwt-5.2.0/PyQwt-5.2.0.tar.gz?r=http%3A%2F%2Fpyqwt.sourceforge.net%2Fdownload.html&ts=1342681955&use_mirror=garr

tar -xvzf PyQwt-5.2.0.tar.gz

Replace the file
cp QwtValueList.sip PyQwt-5.2.0/sip/qwt5qt3/common/

Build PyQwt
cd PyQwt-5.2.1/configure
python configure.py -3 -Q ../qwt-5.2
make
make install

Installing dependencies from source.

To be done.

Install mxCuBE (All distributions)

The easiest way to check out the new mxCuBE version is
to clone the mxCuBE repository directly from the v2
branch :

git clone git://git.epn-campus.eu/repositories/mxCuBE -b v2

Then, submodules need to be updated:

cd mxCuBE
git submodule update --init --recursive

Install the the additional libraries that you need; PyChooch, PyMca, Qub, SpecClient.
The libraries can be found in mxCuBE/libs.

PyChooch

cd PyChooch
sudo python setup.py install

PyMca

cd PyMca
sudo python setup.py. install

Qub

cd Qub
sudo python setup.py install

SpecClient

cd SpecClient
sudo python setup.py install