How to Update from v31 (Linux) » History » Version 4
Anchi Cheng, 02/08/2016 06:18 PM
| 1 | 2 | Anchi Cheng | h1. How to Update from v3.1 (Linux) |
|---|---|---|---|
| 2 | 1 | Anchi Cheng | |
| 3 | h1. Upgrade processing server |
||
| 4 | |||
| 5 | h2. Download myami 3.2 source code |
||
| 6 | |||
| 7 | <pre> |
||
| 8 | svn co http://emg.nysbc.org/svn/myami/branches/myami-3.2/ |
||
| 9 | </pre> |
||
| 10 | |||
| 11 | h2. Install Appion/Leginon Packages |
||
| 12 | |||
| 13 | h3. Install all the myami python packages _except appion_ using the following script: |
||
| 14 | |||
| 15 | <pre> |
||
| 16 | cd /your_download_area |
||
| 17 | cd myami |
||
| 18 | sudo ./pysetup.sh install |
||
| 19 | </pre> |
||
| 20 | |||
| 21 | 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: |
||
| 22 | |||
| 23 | <pre> |
||
| 24 | cd sinedon |
||
| 25 | sudo python setup.py install |
||
| 26 | </pre> |
||
| 27 | |||
| 28 | h3. Move leginon.cfg/instruments.cfg/sinedon.cfg if it was saved with the old installation. |
||
| 29 | |||
| 30 | Run this script to find out where it was: |
||
| 31 | <pre> |
||
| 32 | cd /your_download_area/myami/leginion/ |
||
| 33 | ./configcheck.py |
||
| 34 | </pre> |
||
| 35 | 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. |
||
| 36 | |||
| 37 | {{include(Appion:Run Database Update Script)}} |
||
| 38 | |||
| 39 | h1. Upgrade web server |
||
| 40 | |||
| 41 | Rename your current myamiweb at the document root of the web server to something else as a backup. |
||
| 42 | |||
| 43 | h2. install the 3.2 version of pyami as it is done on processing server. |
||
| 44 | |||
| 45 | h3. restart redux server |
||
| 46 | |||
| 47 | h2. Install updated Web viewers and tools |
||
| 48 | |||
| 49 | See [[Install the Web Interface]] section in Complete Installation Chapter to put the new myamiweb tools to document root for the web server. There is no need to run WebToolSetupWizard, however. See below. |
||
| 50 | |||
| 51 | h2. Copy config.php from your older myamiweb backup to the new myamiweb. |
||
| 52 | |||
| 53 | h2. Import new versions of Leginon Applications |
||
| 54 | |||
| 55 | Old version of MSI Leginon applications will still run but without new feature. Use the Web administrator tool to import new version as shown in [[Steps_involved_in_the_installation]] Step for "Import Applications". |
||
| 56 | |||
| 57 | 3 | Anchi Cheng | h2. Install opencv for RCT acquisition. |
| 58 | |||
| 59 | As root |
||
| 60 | <pre> |
||
| 61 | yum install opencv-python |
||
| 62 | </pre> |
||
| 63 | 4 | Anchi Cheng | |
| 64 | If it does not work, try the installation from source option at http://techieroop.com/install-opencv-in-centos/#.VrkS6cfQZg1 |
||
| 65 | |||
| 66 | Down where there is a cmake command, use ccmake and disabled ffmpeg (here is another complaint http://answers.opencv.org/question/32801/unresoved-avformat_free_context-was-not-declared-in-this-scope/ ). |
||
| 67 | |||
| 68 | 1 | Anchi Cheng | ______ |
| 69 | |||
| 70 | [[How_to_Update_from_v31_(Instrument_Windows_Computer)| How to Update from v3.1 (Instrument Computer) >]] |