Project

General

Profile

Install supporting packages Shared » History » Version 8

Anchi Cheng, 10/09/2015 10:50 AM

1 1 Anchi Cheng
h1. Install supporting packages
2
3
Using the Required Supporting Packages table below, install any missing prerequisite packages by following the instructions for your specific Linux distribution.
4
5
For example, SUSE users can use YaST to install them; RedHat and CentOS users can use @yum@, Debian and Ubuntu uses @apt-get@. 
6
7
We highly recommend using pre-built binary packages to install the programs. Installing from source can quickly become a nightmare! See also the previous page, [[appion:Instructions_for_installing_CentOS_on_your_computer]] for Red Hat based systems.
8
9
h3.  Required supporting packages:
10
11 6 Neil Voss
|_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name|_.Debian 8 package name|
12
|Python 2.6 or newer| "http://www.python.org":http://www.python.org|python|python-devel|python|
13
|wxPython 2.5.2.8 or newer| "http://www.wxpython.org":http://www.wxpython.org|wxPython|python-wxGTK|python-wxgtk3.0|
14
|MySQL Python client 1.2 or newer| "http://sourceforge.net/projects/mysql-python":http://sourceforge.net/projects/mysql-python|MySQL-python|python-mysql|python-mysqldb|
15
|Python Imaging Library (PIL) 1.1.4 or newer| "http://www.pythonware.com/products/pil/":http://www.pythonware.com/products/pil/|python-imaging|python-imaging|python-pil|
16
|NumPy 1.0.1 or newer| "http://numpy.scipy.org/":http://numpy.scipy.org/|numpy|numpy|python-numpy|
17
|SciPy 0.5.1 (tested, others may work)*| "http://www.scipy.org":http://www.scipy.org|scipy|python-scipy|python-scipy|
18 8 Anchi Cheng
19
[[extra_supporting_package_table]]
20
{include(extra_supporting_package_table)}
21
Appion Only
22
|_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name|_.Debian 8 package name|
23 7 Anchi Cheng
|joblib 0.8.3-r1 or newer| "https://pypi.python.org/pypi/joblib":https://pypi.python.org/pypi/joblib|(use easy_install)|python-joblib|python-joblib|
24 8 Anchi Cheng
25
Leginon Only
26
|_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name|_.Debian 8 package name|
27
|opencv 2 (tested 2.4.10)| "http://opencv.org|opencv|?|?|
28 1 Anchi Cheng
29 5 Anchi Cheng
joblib can be installed with the command
30
31
<pre>
32
easy_install joblib
33
</pre>
34
35 1 Anchi Cheng
If you use Python 2.4 or earlier, you also need to install the "PyXML module":http://pyxml.sourceforge.net/topics/ .  For more recent versions of Python, it is already included in the main Python package.
36
37
For CentOS, see [[appion:Download additional Software]] page, if you have trouble finding these packages.
38
39
h3.  Scipy/Numpy
40
41 2 Anchi Cheng
h4. SUSE specific issues
42
43 1 Anchi Cheng
* SciPy may not build from source properly on some versions of SuSE due to an incompatible LAPACK package that comes with SuSE. You can get scipy as well as a compatible LAPACK etc. from http://repos.opensuse.org/science (need to specify your SuSE version and machine etc.)
44 2 Anchi Cheng
* See also https://bugzilla.redhat.com/show_bug.cgi?id=489887 regarding LD_LIBRARY_PATH restriction to LAPACK installation.
45 1 Anchi Cheng
46
You can test your numpy and scipy install with their build in test functions:
47
<pre>
48
python -c 'import numpy; numpy.test(level=1)'
49
python -c 'import scipy; scipy.test(level=1)'
50
</pre>
51
52
Numpy is more stable should be successful. Expect to see lots of errors with scipy.
53
54
h3.  Mac OS X 10.5+:
55
56
You can successfully install most of these packages on a Mac by downloading DMG files and clicking on the install programs. This is not for novice Mac user.  Be warned, wxpython problems on Mac will make your life difficult in using Leginon gui.  Don't make your mac the only processing server if it is Leginon that you will use mainly.
57
58
# First, start by downloading the @Mac OS X Installer Disk Image@ (v2.6 recommended) from http://python.org/download/ and install the newer version of python
59
# Download and install numpy and scipy DMG files from http://sourceforge.net/projects/numpy/files/ and http://sourceforge.net/projects/scipy/files/
60
# Download and install wxPython DMG file from http://www.wxpython.org/download.php
61
62
Other program need more work:
63
# The Python Imaging Library (PIL) has be compiled from source, which also requires the "Mac OS X Developer tools":http://developer.apple.com/technologies/tools/ to be installed.