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