Upgrade to Leginon System trunk version from version 22 » History » Version 1
Anchi Cheng, 07/01/2013 07:18 AM
1 | 1 | Anchi Cheng | h1. Upgrade to Leginon System trunk version from version 22 |
---|---|---|---|
2 | |||
3 | Next Leginon/Appion release web image viewer will not be compatible with CentOS 5 due to prerequisites of REDUX, the new image server that is compatible with php 5.3 used in modern os. The Leginon processing server code is still compatible with python 2.4 which came with CentOS 5 but the development from now on will assume python version 2.6 along with other default yum installed packages of CentOS 6. |
||
4 | |||
5 | h1. How to Update from v2.2 (Linux) |
||
6 | |||
7 | h2. Upgrade OS of the web server to CentOS 6 if you are upgrading from the non-redux version of myami 2.2 |
||
8 | |||
9 | Other OS with php 5.3 and above should also work but we can't provide instruction for all individual cases. |
||
10 | # Preliminary document for Ubuntu [[Myami_on_Ubuntu]] |
||
11 | |||
12 | h2. Download myami trunk source code |
||
13 | |||
14 | * unstable with latest features |
||
15 | |||
16 | |
||
17 | This contains features that may still be under development. It is not supported and may not be stable. Use at your own risk. |
||
18 | <pre> |
||
19 | svn co http://emg.nysbc.org/svn/myami/trunk myami/ |
||
20 | </pre> |
||
21 | *Note:* If you are installing this file on a microscope Windows PC, you may use "Tortoise SVN":http://tortoisesvn.tigris.org/ to checkout the files. |
||
22 | |||
23 | h2. Install Appion/Leginon Packages |
||
24 | |||
25 | h3. Install all the myami python packages _except appion_ using the following script: |
||
26 | |||
27 | <pre> |
||
28 | cd /your_download_area |
||
29 | cd myami |
||
30 | sudo ./pysetup.sh install |
||
31 | </pre> |
||
32 | |||
33 | That will install each package, and report any failures. To determine the cause of failure, see the generated log file "pysetup.log". If necessary, you can enter a specific package directory and run the python setup command manually. For example, if sinedon failed to install, you can try again like this: |
||
34 | |||
35 | <pre> |
||
36 | cd sinedon |
||
37 | sudo python setup.py install |
||
38 | </pre> |
||
39 | |||
40 | h3. Move leginon.cfg if it was saved with the installation. |
||
41 | |||
42 | Run this script to find out where it was: |
||
43 | <pre> |
||
44 | cd /your_download_area/myami/leginion/ |
||
45 | ./configcheck.py |
||
46 | </pre> |
||
47 | If the script can not find leginon.cfg, and you found a copy of leginon.cfg in $PYTHONSITEPKG/leginon/config from the last installation, move that leginon.cfg to $PYTHONSITEPKG/leginon. |
||
48 | |||
49 | h2. Rename your current myamiweb at the document root of the web server to something else as a backup. |
||
50 | |||
51 | h2. Install updated Web viewers and tools |
||
52 | |||
53 | *You will not need to upgrade php mrc tools*. |
||
54 | |||
55 | See [[Install the Web Interface]] section in Complete Installation Chapter to put the new myamiweb tools to document root for the web server. |
||
56 | |||
57 | h2. Copy config.php from your older myamiweb backup to the new myamiweb folder. |
||
58 | |||
59 | {{include(Appion:Run Database Update Script)}} |
||
60 | |||
61 | |||
62 | |||
63 | ______ |
||
64 | |||
65 | [[How_to_Update_from_v21_(Microscope_Windows_Computer)| How to Update from v2.1 (Microscope Windows Computer) >]] |
||
66 | |||
67 | |||
68 | ______ |