1 | $Id: INSTALL 228 2007-01-18 16:08:28Z 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 | Short intro: |
---|
34 | |
---|
35 | The route for successful first time installation of this plug-in is |
---|
36 | a) Install the plug-in. |
---|
37 | b) Install wxWidgets. |
---|
38 | c) Install RMAExpressConsole. |
---|
39 | d) Make BASE aware of the new plug-in. |
---|
40 | |
---|
41 | Upgrading the plug-in is even easier, see item 7) below. |
---|
42 | |
---|
43 | Longer intro: |
---|
44 | |
---|
45 | There are two supported ways to install the RMAExpress plug-in, you |
---|
46 | either download a pre-compiled package or you checkout the latest |
---|
47 | source from the subversion repository. The below instructions covers |
---|
48 | both installation options since major parts of the installation is the |
---|
49 | same for the different cases. There is also a source package available |
---|
50 | for download but installation from that package is currently not |
---|
51 | supported, it is supplied for reference only. |
---|
52 | |
---|
53 | Note, the underlying RMAExpress algorithm itself is not a part of this |
---|
54 | package. This packages contains the plug-in code needed for hooking up |
---|
55 | RMAExpress to BASE as a plug-in. RMAExpress must be installed for this |
---|
56 | plug-in to work, see more in item 1.ii) below. |
---|
57 | |
---|
58 | Users who prefer the install from pre-compiled packages must go |
---|
59 | through all items below except 1.iii) and 2.iv). |
---|
60 | |
---|
61 | Users who prefer the live on bleeding edge software and compiles the |
---|
62 | source from the subversion repository must go through all items except |
---|
63 | 3.v). |
---|
64 | |
---|
65 | If you are upgrading a previously installed RMAExpress plug-in for |
---|
66 | BASE you can safely skip to item 7) below. |
---|
67 | |
---|
68 | |
---|
69 | 1. Pre-requisites |
---|
70 | |
---|
71 | i) Pre-requisite for both all install options: |
---|
72 | This plug-in will only work with BASE 2.0 or later, i.e. BASE 1.2.x is |
---|
73 | not (and will never be) supported. |
---|
74 | |
---|
75 | ii) Pre-requisite for both binary package and subversion tree |
---|
76 | installs: Installation of RMAExpressConsole. |
---|
77 | |
---|
78 | RMAExpressConsole available in the RMAExpress package written by Ben |
---|
79 | Bolstad, and the official RMAExpress web site is |
---|
80 | http://rmaexpress.bmbolstad.com/ |
---|
81 | |
---|
82 | You must download and compile RMAExpressConsole. This requires that |
---|
83 | wxWidgets (a.k.a. wxWindows) is installed on your system. wxWidgets is |
---|
84 | found at http://www.wxwidgets.org. The compilation of |
---|
85 | RMAExpressConsole is straightforward (at least on OpenSuSE 10.2 and |
---|
86 | MacOSX 10.4.8). Download v0.5alpha7, unpack and issue 'make'. This |
---|
87 | will compile RMAExpressConsole and som other binaries which are of no |
---|
88 | interest here. |
---|
89 | |
---|
90 | You should install the RMAExpressConsole binary such that it is |
---|
91 | readable for the user running your BASE application server. The name |
---|
92 | of the binary MUST be 'RMAExpressConsole' and copied into the same |
---|
93 | directory as the plug-in (see item 3.v below). These two conditions |
---|
94 | are hard coded in the plug-in. |
---|
95 | |
---|
96 | Install of the BASE plug-in will succeed even if this requisite is not |
---|
97 | fulfilled, but execution of the plug-in within BASE will fail. |
---|
98 | |
---|
99 | iii) Pre-requisite for subversion tree compilation: |
---|
100 | Compile time access to BASE core jar file. |
---|
101 | |
---|
102 | The BASE2Core.jar (from BASE 2.0 and later) file in use by the server |
---|
103 | running the BASE web application. |
---|
104 | |
---|
105 | |
---|
106 | 2. Compilation and installation from a subversion tree |
---|
107 | |
---|
108 | You should skip this section if you downloaded a pre-compiled package. |
---|
109 | |
---|
110 | iv) When installing from a subversion working copy you must compile |
---|
111 | the plug-in, do |
---|
112 | |
---|
113 | make |
---|
114 | |
---|
115 | This assumes that BASE is installed in /usr/local/base. If this is not |
---|
116 | the case do |
---|
117 | |
---|
118 | make BASEROOT=<base-dir> |
---|
119 | |
---|
120 | where <base-dir> is to be replaced with the path to BASE. When the |
---|
121 | compilation finishes you install the plug-in into the BASE application |
---|
122 | server file system with |
---|
123 | |
---|
124 | make install or make BASEROOT=<base-dir> install |
---|
125 | |
---|
126 | The plug-in will install in the recommended directory |
---|
127 | <base-dir>/www/plugins/se/lu/thep/affymetrix, i.e. if you prefer |
---|
128 | another location please refer to the Makefile (which supports further |
---|
129 | options). |
---|
130 | |
---|
131 | For advanced users only: <base-dir> can really be any directory |
---|
132 | readable for the user running your tomcat server. This may be handy if |
---|
133 | you run several servers on one machine but only want one common |
---|
134 | directory hierarchy for the plug-ins. Or, if you update the BASE |
---|
135 | application frequently and in the process create new directories for |
---|
136 | the newer application. More information about this is available in the |
---|
137 | Makefile. |
---|
138 | |
---|
139 | Remember the plug-in location for configuration of BASE below. |
---|
140 | |
---|
141 | |
---|
142 | 3. Installation from a pre-compiled package |
---|
143 | |
---|
144 | You should skip this section if you use the subversion repository. |
---|
145 | |
---|
146 | v) Install the plug-in in the BASE application server file system. If |
---|
147 | BASE is installed in /usr/local/base simply do |
---|
148 | |
---|
149 | make install-precompiled |
---|
150 | |
---|
151 | If BASE is installed elsewhere, do |
---|
152 | |
---|
153 | make BASEROOT=<base-dir> install-precompiled |
---|
154 | |
---|
155 | where <base-dir> is to be replaced by the path to BASE. The plug-in |
---|
156 | will install in the recommended directory |
---|
157 | <base-dir>/www/plugins/se/lu/thep/affymetrix, i.e. if you prefer |
---|
158 | another location please refer to the Makefile (which supports further |
---|
159 | options). |
---|
160 | |
---|
161 | For advanced users only: <base-dir> can really be any directory |
---|
162 | readable for the user running your tomcat server. This may be handy if |
---|
163 | you run several servers on one machine but only want one common |
---|
164 | directory hierarchy for the plug-ins. Or, if you update the BASE |
---|
165 | application frequently and in the process create new directories for |
---|
166 | the newer application. More information about this is available in the |
---|
167 | Makefile. |
---|
168 | |
---|
169 | Remember the plug-in location for configuration of BASE below. |
---|
170 | |
---|
171 | |
---|
172 | 4. BASE configuration |
---|
173 | |
---|
174 | vi) Make BASE aware of the new plug-in: |
---|
175 | |
---|
176 | - Login to BASE with plug-in administrative privileges. |
---|
177 | |
---|
178 | - Choose 'Administrate' -> 'Plugins' -> 'Definitions'. |
---|
179 | |
---|
180 | - Click on 'New...'. This will open up the 'Create plugin' pop-up |
---|
181 | window. Type "se.lu.thep.affymetrix.RMAExpress" in the 'Class' |
---|
182 | field and |
---|
183 | "<base-dir>/www/plugins/se/lu/thep/affymetrix/RMAExpress.jar" in |
---|
184 | the 'Path' field. Replace <base-dir> with whatever you used in item |
---|
185 | 3.v) above. Click on the 'Save' button. |
---|
186 | |
---|
187 | - Share the plug-in to all users/roles/groups that should have |
---|
188 | access to it (sharing it to group Everyone should be sufficient in |
---|
189 | most cases). |
---|
190 | |
---|
191 | |
---|
192 | 5. Remember to install RMAExpressConsole according to the conditions |
---|
193 | stated in item 1.ii) above. |
---|
194 | |
---|
195 | |
---|
196 | 6. That's it, now you need to BASE skills to actually make use of the |
---|
197 | RMAExpress plug-in. Read the README file for some pointers on what |
---|
198 | to do now. |
---|
199 | |
---|
200 | |
---|
201 | 7. Updating RMAExpressConsole or RMAExpress plug-in for BASE. |
---|
202 | |
---|
203 | a) RMAExpressConsole |
---|
204 | |
---|
205 | Installing a new RMAExpressConsole binary is trivial, just replace |
---|
206 | the old binary with the new binary. |
---|
207 | |
---|
208 | b) RMAExpress plug-in for BASE. |
---|
209 | |
---|
210 | This is straighforward: |
---|
211 | |
---|
212 | - Replace the old jar-file and |
---|
213 | |
---|
214 | - Login to BASE with plug-in administrative privileges. |
---|
215 | |
---|
216 | - Choose 'Administrate' -> 'Plugins' -> 'Definitions'. |
---|
217 | |
---|
218 | - Locate the RMAExpress plug-in in the list and click on it. |
---|
219 | |
---|
220 | - Click on the 'Unload' button if it is available. This will |
---|
221 | remove the old plug-in from the application. |
---|
222 | |
---|
223 | - Click on 'Edit...'. This will open up the 'Edit plugin' |
---|
224 | pop-up window. No parameter changes are need, just click on |
---|
225 | the 'Save' button. |
---|
226 | |
---|
227 | - Done. |
---|