1 | $Id: INSTALL 156 2006-08-10 21:49:27Z jari $ |
---|
2 | |
---|
3 | ====================================================================== |
---|
4 | Copyright (C) 2006 Jari Häkkinen |
---|
5 | |
---|
6 | This file is part of RMAExpress plug-in for BASE, |
---|
7 | http://baseplugins.thep.lu.se/wiki/thep.lu.se.RMAExpress |
---|
8 | |
---|
9 | RMAExpress plug-in for BASE is free software; you can redistribute it |
---|
10 | and/or modify it under the terms of the GNU General Public License as |
---|
11 | published by the Free Software Foundation; either version 2 of the |
---|
12 | License, or (at your option) any later version. |
---|
13 | |
---|
14 | RMAExpress plug-in for BASE is distributed in the hope that it will be |
---|
15 | useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | General Public License for more details. |
---|
18 | |
---|
19 | You should have received a copy of the GNU General Public License |
---|
20 | along with this program; if not, write to the Free Software |
---|
21 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
---|
22 | USA. |
---|
23 | ====================================================================== |
---|
24 | |
---|
25 | |
---|
26 | If you think these instructions are worthless or stupid or maybe both, |
---|
27 | please tell me and I'll try to improve them. Even better, tell me how |
---|
28 | to improve them. My email address is jari@thep.lu.se |
---|
29 | |
---|
30 | |
---|
31 | 0. Introduction |
---|
32 | |
---|
33 | There is two supported ways to install the RMAExpress plug-in, you |
---|
34 | either download a pre-compiled plug-in package (RMAExpress itself is |
---|
35 | not a part of this package), or you checkout the latest source from |
---|
36 | the subversion repository. The below instructions covers both |
---|
37 | installation options since major parts of the installation is the same |
---|
38 | for the two cases. |
---|
39 | |
---|
40 | Irrespective which option you choose, there may be a need to compile |
---|
41 | RMAExpress. This plug-in utilize an external program for the |
---|
42 | underlying RMA algorithm. RMAExpress must be installed for this |
---|
43 | plug-in to work, see more in item 1.ii) below. |
---|
44 | |
---|
45 | Users who prefer the install from pre-compiled packages must go |
---|
46 | through all items below except 1.iii) and 2.iv). |
---|
47 | |
---|
48 | Users who prefer the live on bleeding edge software and compiles the |
---|
49 | source from the subversion repository must go through all items below. |
---|
50 | |
---|
51 | If you are upgrading a previously installed RMAExpress plug-in for |
---|
52 | BASE you can safely skip to item 7) below. |
---|
53 | |
---|
54 | |
---|
55 | 1. Pre-requisites |
---|
56 | |
---|
57 | i) Pre-requisite for both binary package and subversion tree installs: |
---|
58 | This plug-in will only work with BASE 2.0 (revision 2512) or later, |
---|
59 | i.e. BASE 1.2.x is not (and will never be) supported. |
---|
60 | |
---|
61 | ii) Pre-requisite for both binary package and subversion tree |
---|
62 | installs: Installation of RMAExpressConsole. |
---|
63 | |
---|
64 | RMAExpressConsole available in the RMAExpress package written by Ben |
---|
65 | Bolstad, and the official RMAExpress web site is |
---|
66 | http://rmaexpress.bmbolstad.com/ |
---|
67 | |
---|
68 | You must download and compile RMAExpressConsole. This requires that |
---|
69 | wxWidgets (a.k.a. wxWindows) is installed on your system. wxWidgets is |
---|
70 | found at http://www.wxwidgets.org. The compilation of |
---|
71 | RMAExpressConsole is not completely trivial, but after some tweaking |
---|
72 | it has been successfully compiled on Mac OS X (v10.4.7) running on a |
---|
73 | G4, and SuSE Linux (v10). |
---|
74 | |
---|
75 | You should install the RMAExpressConsole binary such that it is |
---|
76 | readable for the user running your BASE application server. The name |
---|
77 | of the binary MUST be 'RMAExpressConsole' and copied into the same |
---|
78 | directory as the plug-in (see item 3.v below). These two conditions |
---|
79 | are hard coded in the plug-in. |
---|
80 | |
---|
81 | Install of the plug-in will succeed even if this requisite is not |
---|
82 | fulfilled, but execution of the plug-in will fail. |
---|
83 | |
---|
84 | iii) Pre-requisite for subversion tree compilation: Compile time |
---|
85 | access to BASE core jar file. |
---|
86 | |
---|
87 | The BASE2Core.jar (must be later than subversion revision 2512) file |
---|
88 | in use by the server running the BASE web application. |
---|
89 | |
---|
90 | |
---|
91 | 2. Compilation of source from the subversion repository |
---|
92 | |
---|
93 | iv) If you install from a subversion working copy you must compile the |
---|
94 | plug-in, do |
---|
95 | |
---|
96 | make |
---|
97 | |
---|
98 | This assumes that BASE is installed in /usr/local/base. If this is not |
---|
99 | the case do |
---|
100 | |
---|
101 | make BASEROOT=<base-dir> |
---|
102 | |
---|
103 | where <base-dir> is to be replaced with the path to BASE. |
---|
104 | |
---|
105 | |
---|
106 | 3. Installation |
---|
107 | |
---|
108 | v) Install the plug-in in the BASE application server file system. If |
---|
109 | BASE is installed in /usr/local/base simply do |
---|
110 | |
---|
111 | make install |
---|
112 | |
---|
113 | If BASE is installed elsewhere, do |
---|
114 | |
---|
115 | make BASEROOT=<base-dir> install |
---|
116 | |
---|
117 | where <base-dir> is to be replaced by the path to BASE. The plug-in |
---|
118 | will install in the recommended directory |
---|
119 | <base-dir>/plugins/se/lu/thep/affymetrix, i.e. if you prefer another |
---|
120 | location please refer to the Makefile (which supports further options). |
---|
121 | |
---|
122 | For advanced users only: <base-dir> can really be any directory |
---|
123 | readable for the user running your tomcat server. This may be handy if |
---|
124 | you run several servers on one machine but only want one common |
---|
125 | directory hierarchy for the plug-ins. Or, if you update the BASE |
---|
126 | application frequently and in the process create new directories for |
---|
127 | the newer application. More information about this is available in the |
---|
128 | Makefile. |
---|
129 | |
---|
130 | Remember the plug-in location for configuration of BASE below. |
---|
131 | |
---|
132 | |
---|
133 | 4. BASE configuration |
---|
134 | |
---|
135 | vi) Make BASE aware of the new plug-in: |
---|
136 | |
---|
137 | - Login to BASE with plug-in administrative privileges. |
---|
138 | |
---|
139 | - Choose 'Administrate' -> 'Plugins' -> 'Definitions'. |
---|
140 | |
---|
141 | - Click on 'New...'. This will open up the 'Create plugin' pop-up |
---|
142 | window. Type "se.lu.thep.affymetrix.RMAExpress" in the 'Class' |
---|
143 | field and "<base-dir>/plugins/se/lu/thep/affymetrix/RMAExpress.jar" |
---|
144 | in the 'Path' field. Replace <base-dir> with whatever you used in |
---|
145 | item 3.v) above. Click on the 'Save' button. |
---|
146 | |
---|
147 | - Share the plug-in to all users/roles/groups that should have |
---|
148 | access to it (sharing it to group Everyone should be sufficient in |
---|
149 | most cases). |
---|
150 | |
---|
151 | |
---|
152 | 5. Remember to install RMAExpressConsole according to the conditions |
---|
153 | stated in item 1.ii) above. |
---|
154 | |
---|
155 | |
---|
156 | 6. That's it, now you need to BASE skills to actually make use of the |
---|
157 | RMAExpress plug-in. Read the README file for some pointers on what |
---|
158 | to do now. |
---|
159 | |
---|
160 | |
---|
161 | 7. Updating RMAExpressConsole or RMAExpress plug-in for BASE. |
---|
162 | |
---|
163 | a) RMAExpressConsole |
---|
164 | |
---|
165 | Installing a new RMAExpressConsole binary is trivial, just replace |
---|
166 | the old binary with the new binary. |
---|
167 | |
---|
168 | b) RMAExpress plug-in for BASE. |
---|
169 | |
---|
170 | This is straighforward: |
---|
171 | |
---|
172 | - Replace the old jar-file and |
---|
173 | |
---|
174 | - Login to BASE with plug-in administrative privileges. |
---|
175 | |
---|
176 | - Choose 'Administrate' -> 'Plugins' -> 'Definitions'. |
---|
177 | |
---|
178 | - Locate the RMAExpress plug-in in the list and click on it. |
---|
179 | |
---|
180 | - Click on the 'Unload' button if it is available. This will remove |
---|
181 | the old plug-in from the application. |
---|
182 | |
---|
183 | - Click on 'Edit...'. This will open up the 'Edit plugin' pop-up |
---|
184 | window. No parameter changes are need, just click on the 'Save' |
---|
185 | button. |
---|
186 | |
---|
187 | - Done. |
---|