Start with existing CentOS installation » History » Version 29
Amber Herold, 03/08/2010 04:56 PM
1 | 25 | Amber Herold | h1. Start with existing CentOS 5.3 64-bit installation |
---|---|---|---|
2 | 5 | Amber Herold | |
3 | {{>toc}} |
||
4 | 1 | Amber Herold | |
5 | 13 | Amber Herold | h2. 3 Download additional software |
6 | 2 | Amber Herold | |
7 | 13 | Amber Herold | h3. 3.1 Install the additional package repositories |
8 | 2 | Amber Herold | |
9 | *NOTE* |
||
10 | |||
11 | There are several additional CentOS repositories that you can install. |
||
12 | These repositories provide additional packages, such as patented software (MP3 players), |
||
13 | closed source applications (Flash plugin, Adobe Acrobat Reader) |
||
14 | and lesser used packages (python numpy, Gnu Scientific Library). |
||
15 | But some repositories install packages over other packages, |
||
16 | which can cause problems and conflicts (ATrpms is bad at this). So I recommend only installing |
||
17 | EPEL and RPM Fusion. Read more here: |
||
18 | "CentOS Additional Repositories":http://wiki.centos.org/AdditionalResources/Repositories |
||
19 | |||
20 | 13 | Amber Herold | h4. 3.1.1 Extra Packages for Enterprise Linux (EPEL) |
21 | 2 | Amber Herold | |
22 | 12 | Amber Herold | * http://fedoraproject.org/wiki/EPEL |
23 | * contains a wealth of packages required for appion |
||
24 | 2 | Amber Herold | |
25 | .Download repository rpm and install |
||
26 | |||
27 | <pre> |
||
28 | $ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/`uname -i`/epel-release-5-3.noarch.rpm |
||
29 | </pre> |
||
30 | 1 | Amber Herold | |
31 | 13 | Amber Herold | h4. 3.1.2 RPM Fusion |
32 | 2 | Amber Herold | |
33 | 12 | Amber Herold | * http://rpmfusion.org/ |
34 | * good for mp3 and other patent limited software |
||
35 | 2 | Amber Herold | |
36 | .Download repository rpms and install |
||
37 | |||
38 | <pre> |
||
39 | $ sudo rpm -Uhv http://download1.rpmfusion.org/free/el/updates/testing/5/`uname -i`/rpmfusion-free-release-5-0.1.noarch.rpm |
||
40 | $ sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/`uname -i`/rpmfusion-nonfree-release-5-0.1.noarch.rpm |
||
41 | </pre> |
||
42 | |||
43 | 13 | Amber Herold | h3. 3.2 Update current packages |
44 | 2 | Amber Herold | |
45 | .Update the updater to make life easier |
||
46 | |||
47 | <pre> |
||
48 | $ sudo yum -y update yum |
||
49 | </pre> |
||
50 | |||
51 | .Update all packages |
||
52 | |||
53 | 1 | Amber Herold | <pre> |
54 | $ sudo yum -y update |
||
55 | </pre> |
||
56 | |||
57 | *NOTE* |
||
58 | 2 | Amber Herold | Download was over 129 MB (in July 2009). If you have a slow internet connection you can setup presto/deltarpms, "see this email]":http://www.linux-archive.org/centos-development/222706-presto-deltarpm.html |
59 | 18 | Amber Herold | You may want to restart your computer when this completes. |
60 | 2 | Amber Herold | |
61 | 19 | Amber Herold | h4. .Install Complete list of additional packages: |
62 | 2 | Amber Herold | |
63 | 12 | Amber Herold | * *python tools*: python-tools python-devel |
64 | * *general applications*: subversion ImageMagick grace gnuplot python-matplotlib |
||
65 | * *Tilt Picker*: wxPython numpy scipy python-imaging |
||
66 | * *FindEM*: gcc-gfortran compat-gcc-34-g77 |
||
67 | * *Ace 2*: gcc-objc fftw3-devel gsl-devel |
||
68 | * *Sinedon*: mysql mysql-server MySQL-python |
||
69 | * *DBEM*: httpd php php-mysql phpMyAdmin |
||
70 | * *Xmipp MPI*: gcc-c++ openmpi-devel libtiff-devel |
||
71 | * *MRC tools*: php-devel gd-devel re2c fftw2-devel php-gd |
||
72 | * *UCSF Chimera imaging*: xorg-x11-server-Xvfb |
||
73 | 2 | Amber Herold | |
74 | <pre> |
||
75 | $ sudo yum -y install \ |
||
76 | python-tools python-devel python-matplotlib \ |
||
77 | subversion ImageMagick grace gnuplot \ |
||
78 | wxPython numpy scipy python-imaging \ |
||
79 | gcc-gfortran compat-gcc-34-g77 \ |
||
80 | gcc-objc fftw3-devel gsl-devel \ |
||
81 | mysql mysql-server MySQL-python \ |
||
82 | httpd php php-mysql phpMyAdmin \ |
||
83 | gcc-c++ openmpi-devel libtiff-devel \ |
||
84 | php-devel gd-devel re2c fftw2-devel php-gd \ |
||
85 | xorg-x11-server-Xvfb |
||
86 | </pre> |
||
87 | |||
88 | If you have an nVidia video card and setup RPM fusion, install the nVidia binary, will speed things up especially for UCSF Chimera |
||
89 | |||
90 | <pre> |
||
91 | $ sudo yum -y install nvidia-x11-drv |
||
92 | </pre> |
||
93 | |||
94 | .Clean up packages to save drive space |
||
95 | |||
96 | <pre> |
||
97 | $ sudo yum clean all |
||
98 | </pre> |
||
99 | |||
100 | .Re-index the hard drive, this will come in handy later |
||
101 | |||
102 | 1 | Amber Herold | <pre> |
103 | 2 | Amber Herold | $ sudo updatedb |
104 | </pre> |
||
105 | |||
106 | .Enable servers on reboot |
||
107 | |||
108 | <pre> |
||
109 | $ sudo /sbin/chkconfig httpd on |
||
110 | </pre> |
||
111 | |||
112 | <pre> |
||
113 | $ sudo /sbin/chkconfig mysqld on |
||
114 | </pre> |
||
115 | |||
116 | You can further configure this with the GUI and turn off unnecessary items |
||
117 | |||
118 | <pre> |
||
119 | $ system-config-services |
||
120 | </pre> |
||
121 | |||
122 | .Reboot the computer |
||
123 | 1 | Amber Herold | |
124 | 2 | Amber Herold | <pre> |
125 | $ sudo reboot |
||
126 | </pre> |
||
127 | 1 | Amber Herold | |
128 | 24 | Amber Herold | ---- |
129 | |||
130 | 28 | Amber Herold | h2. 4 MRC PHP Extension Installation and Testing |
131 | 13 | Amber Herold | |
132 | 28 | Amber Herold | h3. 4.1 Build the MRC module |
133 | 20 | Amber Herold | |
134 | 1 | Amber Herold | Download "php_mrc_src_1_5_1.tgz":http://emg.nysbc.org/software/dwd.php?id=N1HDb4ac22efb5b38b05fd3575d42d3e4adc2 |
135 | 27 | Amber Herold | |
136 | h4. cd to your php devel directory |
||
137 | 23 | Amber Herold | |
138 | > cd /usr/include/php/ext/ |
||
139 | 28 | Amber Herold | > mv [downloads]/php_mrc_src_1_5_1.tgz . |
140 | 23 | Amber Herold | |
141 | 28 | Amber Herold | h4. Untar the archive |
142 | 23 | Amber Herold | |
143 | 28 | Amber Herold | > tar zxvf php_mrc_src_1_5_1.tgz |
144 | 23 | Amber Herold | > cd mrc/ |
145 | |||
146 | h4. Make sure that GD and FFTW 3 devel libraries are installed |
||
147 | |||
148 | > phpize |
||
149 | > ./configure |
||
150 | > make |
||
151 | > make install |
||
152 | 1 | Amber Herold | |
153 | 28 | Amber Herold | h3. 4.2 Install MRC module |
154 | 23 | Amber Herold | |
155 | h4. mrc.so should be in your php extension directory |
||
156 | |||
157 | 1 | Amber Herold | > ls /usr/lib/php/extensions |
158 | mrc.so |
||
159 | 23 | Amber Herold | |
160 | h4. Make sure that GD and FFTW 3 libraries are installed |
||
161 | 1 | Amber Herold | |
162 | * edit your php configuration file php.ini to add "mrc.so" extension. |
||
163 | * You might also increase the memory_limit field. It is set to 8M by default. The more the merrier! |
||
164 | 24 | Amber Herold | * 4kx4k float MRC image is about 64MB |
165 | > vi /etc/php.ini |
||
166 | |||
167 | 23 | Amber Herold | * increase memory |
168 | <pre> |
||
169 | 1 | Amber Herold | memory_limit = 256M; Maximum amount of memory |
170 | 25 | Amber Herold | </pre> |
171 | 28 | Amber Herold | |
172 | 29 | Amber Herold | * Create the mrc.ini file |
173 | |||
174 | > cd /etc/php.d |
||
175 | > vi mrc.ini |
||
176 | |||
177 | add the following lines |
||
178 | |||
179 | <pre> |
||
180 | ; Enable mrc extension module |
||
181 | extension=mrc.so |
||
182 | </pre> |
||
183 | |||
184 | 1 | Amber Herold | *NOTE:* If the : |
185 | 23 | Amber Herold | * check extension_dir value |
186 | 1 | Amber Herold | <pre> |
187 | 23 | Amber Herold | extension_dir = /usr/lib64/php/extensions |
188 | 1 | Amber Herold | </pre> |
189 | 25 | Amber Herold | |
190 | 23 | Amber Herold | [extension section] |
191 | 1 | Amber Herold | |
192 | 29 | Amber Herold | * add the following at the end of the extension section |
193 | 1 | Amber Herold | |
194 | extension=mrc.so |
||
195 | 23 | Amber Herold | |
196 | OR if your linux distro has a /etc/php.d directory: |
||
197 | 25 | Amber Herold | |
198 | 23 | Amber Herold | h4. restart your webserver |
199 | |||
200 | > /etc/init.d/apache2 restart |
||
201 | |||
202 | OR |
||
203 | |||
204 | > /etc/init.d/httpd restart |
||
205 | 29 | Amber Herold | |
206 | h3. 4.3 Test the MRC module installation |
||
207 | 2 | Amber Herold | |
208 | |||
209 | 17 | Amber Herold | ---- |
210 | 2 | Amber Herold | |
211 | 13 | Amber Herold | h2. 5 Compile and setup Appion python programs |
212 | 2 | Amber Herold | |
213 | 12 | Amber Herold | h3. 5.1 Compile FindEM |
214 | 2 | Amber Herold | |
215 | 12 | Amber Herold | * Goto pyappion/findem folder to make findem.exe |
216 | 2 | Amber Herold | |
217 | * Compile the libraries and binary |
||
218 | |||
219 | <pre> |
||
220 | $ make |
||
221 | 12 | Amber Herold | </pre> |
222 | 2 | Amber Herold | |
223 | * Test findem.exe to see if it runs |
||
224 | |||
225 | <pre> |
||
226 | $ make test |
||
227 | </pre> |
||
228 | |||
229 | *WARNING* |
||
230 | Only if the first part fails, you must add the path to libg2c.so library file. |
||
231 | 11 | Amber Herold | Otherwise skip to next section. |
232 | 2 | Amber Herold | |
233 | * locate libg2c.so library file |
||
234 | |||
235 | <pre> |
||
236 | $ ls /usr/lib/gcc/`uname -i`-redhat-linux/3.4.6/libg2c.so |
||
237 | 1 | Amber Herold | </pre> |
238 | 2 | Amber Herold | |
239 | <pre> |
||
240 | $ locate libg2c.so |
||
241 | 1 | Amber Herold | </pre> |
242 | 2 | Amber Herold | |
243 | * Edit Makefile with location of libg2c.so |
||
244 | |||
245 | <pre> |
||
246 | 1 | Amber Herold | $ nano Makefile |
247 | 11 | Amber Herold | </pre> |
248 | |||
249 | 2 | Amber Herold | * Example: EXLIBS=-L/usr/lib/gcc/i386-redhat-linux/3.4.6/ -lg2c |
250 | 13 | Amber Herold | * Re-compile |
251 | 2 | Amber Herold | |
252 | h3. 5.2 Compile Ace2 |
||
253 | |||
254 | *WARNING* |
||
255 | 1 | Amber Herold | ace2 typically requires fftw 3.2 or greater, but you can remove the FFTW_WISDOM_ONLY flag in Image.m |
256 | 2 | Amber Herold | |
257 | 1 | Amber Herold | *NOTE* |
258 | 11 | Amber Herold | 64 bit binaries are included with pyappion |
259 | 1 | Amber Herold | |
260 | 11 | Amber Herold | * Goto pyappion/ace2 |
261 | 2 | Amber Herold | * compile the libraries and binary |
262 | * test to see if program runs |
||
263 | |||
264 | <pre> |
||
265 | 1 | Amber Herold | $ make |
266 | 2 | Amber Herold | $ ./ace2.exe -h |
267 | $ ./ace2correct.exe -h |
||
268 | $ mv -v ./ace2*.exe ../bin |
||
269 | 13 | Amber Herold | </pre> |
270 | 2 | Amber Herold | |
271 | 11 | Amber Herold | h3. 5.3 Compile Radermacher module |
272 | 2 | Amber Herold | |
273 | 11 | Amber Herold | * Goto pyappion/radermacher |
274 | 1 | Amber Herold | |
275 | 2 | Amber Herold | * compile the libraries and binary |
276 | 1 | Amber Herold | |
277 | 2 | Amber Herold | <pre> |
278 | $ python ./setup.py build |
||
279 | 11 | Amber Herold | </pre> |
280 | 2 | Amber Herold | |
281 | * install module globally |
||
282 | |||
283 | <pre> |
||
284 | $ sudo python ./setup.py install |
||
285 | 1 | Amber Herold | </pre> |
286 | 2 | Amber Herold | |
287 | * test installed module |
||
288 | |||
289 | <pre> |
||
290 | $ python |
||
291 | </pre> |
||
292 | |||
293 | <pre> |
||
294 | >>> import radermacher |
||
295 | >>> <Ctrl-D> |
||
296 | 13 | Amber Herold | </pre> |
297 | 2 | Amber Herold | |
298 | 11 | Amber Herold | h3. 5.4 Test PyAppion |
299 | |||
300 | 2 | Amber Herold | * Go into pyappion directory |
301 | * Add leginon to PYTHONPATH if Leginon is built locally |
||
302 | |||
303 | <pre> |
||
304 | $ export PYTHONPATH="$LEGINONPATH:$PYTHONPATH" |
||
305 | 11 | Amber Herold | </pre> |
306 | 2 | Amber Herold | |
307 | * Add pyappion lib to PYTHONPATH |
||
308 | |||
309 | <pre> |
||
310 | 1 | Amber Herold | $ export PYTHONPATH="/your-complete-path-to-pyappion/lib:$PYTHONPATH" |
311 | </pre> |
||
312 | 2 | Amber Herold | |
313 | * Run the test script |
||
314 | |||
315 | <pre> |
||
316 | $ ./check.sh |
||
317 | </pre> |
||
318 | |||
319 | *NOTE* |
||
320 | You can ignore EMAN, MATLAB, and UCSF Chimera errors at this point |
||
321 | |||
322 | 13 | Amber Herold | ---- |
323 | 2 | Amber Herold | |
324 | 13 | Amber Herold | h2. 6 Setup MySQL (appiondata) databases |
325 | 2 | Amber Herold | |
326 | Refer to [[Start_with_existing_ANY_Linux_flavor_OS#2-Setup-MySQL-databases|Setup MySQL databases]] |
||
327 | |||
328 | h3. Configure MySQL |
||
329 | |||
330 | Edit the configuration file: |
||
331 | |||
332 | <pre> |
||
333 | $ sudo nano /etc/my.cnf |
||
334 | </pre> |
||
335 | |||
336 | Add or edit the following lines: |
||
337 | |||
338 | <pre> |
||
339 | query_cache_type = 1 |
||
340 | query_cache_size = 100M |
||
341 | query_cache_limit= 100M |
||
342 | </pre> |
||
343 | |||
344 | Restart MySQL |
||
345 | |||
346 | <pre> |
||
347 | $ sudo /sbin/service mysqld restart |
||
348 | </pre> |
||
349 | |||
350 | h3. Configure phpMyAdmin |
||
351 | |||
352 | Edit the phpMyAdmin config file: |
||
353 | |||
354 | <pre> |
||
355 | $ sudo nano /etc/phpMyAdmin/config.inc.php |
||
356 | </pre> |
||
357 | |||
358 | and change the following lines: |
||
359 | |||
360 | <pre> |
||
361 | $cfg['Servers'][$i]['AllowRoot'] = FALSE; |
||
362 | </pre> |
||
363 | 1 | Amber Herold | |
364 | Edit the phpMyAdmin apache config file: |
||
365 | 2 | Amber Herold | |
366 | <pre> |
||
367 | $ sudo nano /etc/httpd/conf.d/phpMyAdmin.conf |
||
368 | </pre> |
||
369 | |||
370 | 1 | Amber Herold | and change the following lines: |
371 | 2 | Amber Herold | |
372 | <pre> |
||
373 | <Directory /usr/share/phpMyAdmin/> |
||
374 | order deny,allow |
||
375 | deny from all |
||
376 | allow from 127.0.0.1 |
||
377 | allow from YOUR_IP_ADDRESS |
||
378 | </Directory> |
||
379 | </pre> |
||
380 | |||
381 | 13 | Amber Herold | ---- |
382 | 2 | Amber Herold | |
383 | 14 | Amber Herold | h2. 7 Install webpages (appionweb) |
384 | 2 | Amber Herold | |
385 | Refer to [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Web server side installation]] |
||
386 | |||
387 | 1 | Amber Herold | h3. Install MRC Tools |
388 | 2 | Amber Herold | |
389 | 13 | Amber Herold | h4. Compile MRC tools |
390 | |||
391 | 2 | Amber Herold | * Go to your php devel directory and untar the archive |
392 | * If unsure where it is, use info.php to find it under *extension_dir* |
||
393 | |||
394 | <pre> |
||
395 | 1 | Amber Herold | $ cd /usr/include/php/ext/ |
396 | 2 | Amber Herold | $ sudo mkdir mrc |
397 | $ sudo chmod 777 mrc |
||
398 | 1 | Amber Herold | $ sudo chown $USER mrc |
399 | 13 | Amber Herold | </pre> |
400 | 2 | Amber Herold | |
401 | * Unpackage MRC Tools from http://emg.nysbc.org/software/mrctools/ |
||
402 | |||
403 | <pre> |
||
404 | $ tar zxvf ~/php_mrc.tgz |
||
405 | $ cd mrc/ |
||
406 | 13 | Amber Herold | </pre> |
407 | 2 | Amber Herold | |
408 | * Compile and install the MRC module |
||
409 | |||
410 | <pre> |
||
411 | $ phpize |
||
412 | $ ./configure |
||
413 | 1 | Amber Herold | $ make |
414 | 2 | Amber Herold | $ sudo make install |
415 | </pre> |
||
416 | |||
417 | 13 | Amber Herold | h4. Configure PHP for MRC Tools |
418 | 1 | Amber Herold | |
419 | 2 | Amber Herold | * Edit your php configuration file php.ini to add "mrc.so" extension. |
420 | |||
421 | 1 | Amber Herold | <pre> |
422 | 2 | Amber Herold | $ sudo nano /etc/php.d/mrc.ini |
423 | 13 | Amber Herold | </pre> |
424 | 2 | Amber Herold | |
425 | * add mrc.so to extensions |
||
426 | 1 | Amber Herold | |
427 | 2 | Amber Herold | <pre> |
428 | ; Enable mrc extension module |
||
429 | extension=mrc.so |
||
430 | 13 | Amber Herold | </pre> |
431 | 2 | Amber Herold | |
432 | * To test MRC tools, go to this website: |
||
433 | http://emg.nysbc.org/software/mrctools/mrc_so.php |
||
434 | |||
435 | 13 | Amber Herold | h3. Configure PHP |
436 | 2 | Amber Herold | |
437 | * increase the memory limit, EM images are big 64MB: |
||
438 | |||
439 | <pre> |
||
440 | memory_limit = 256M; Maximum amount of memory |
||
441 | 13 | Amber Herold | </pre> |
442 | 2 | Amber Herold | |
443 | * Turn error display on: |
||
444 | |||
445 | <pre> |
||
446 | display_errors = On |
||
447 | 1 | Amber Herold | </pre> |
448 | |||
449 | <pre> |
||
450 | 2 | Amber Herold | error_reporting = E_ALL & ~E_NOTICE |
451 | 13 | Amber Herold | </pre> |
452 | 2 | Amber Herold | |
453 | * restart the webserver |
||
454 | |||
455 | <pre> |
||
456 | $ sudo /sbin/service httpd restart |
||
457 | </pre> |
||
458 | |||
459 | 15 | Amber Herold | h3. Install DBEM and project php source |
460 | 2 | Amber Herold | |
461 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
462 | |||
463 | h3. Configuration |
||
464 | |||
465 | 13 | Amber Herold | h4. configure apache |
466 | 2 | Amber Herold | |
467 | * allow REMOTE_HOST lookups in apache |
||
468 | |||
469 | <pre> |
||
470 | $ sudo nano /etc/httpd/conf/httpd.conf |
||
471 | 13 | Amber Herold | </pre> |
472 | 2 | Amber Herold | |
473 | * turn _HostnameLookups_ to On |
||
474 | |||
475 | <pre> |
||
476 | HostnameLookups On |
||
477 | 13 | Amber Herold | </pre> |
478 | 2 | Amber Herold | |
479 | * restart the webserver |
||
480 | |||
481 | <pre> |
||
482 | $ sudo /sbin/service httpd restart |
||
483 | </pre> |
||
484 | 1 | Amber Herold | |
485 | 15 | Amber Herold | h4. configure project_1_2, dbem_1_5_1, and dbem_1_5_1/processing |
486 | 2 | Amber Herold | |
487 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
488 | |||
489 | 16 | Amber Herold | h3. Initialize database tables from the web tools |
490 | 2 | Amber Herold | |
491 | Please consult [[Start_with_existing_ANY_Linux_flavor_OS#4-Create-a-test-project-and-processing-database|Create a test project and processing database]] |
||
492 | |||
493 | h3. Potential problems |
||
494 | |||
495 | h4. Firewall settings |
||
496 | |||
497 | You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic: |
||
498 | |||
499 | <pre> |
||
500 | $ system-config-securitylevel |
||
501 | </pre> |
||
502 | |||
503 | h4. Security-enhanced linux |
||
504 | |||
505 | "Security-enhanced linux (SELinux)":http://en.wikipedia.org/wiki/Security-Enhanced_Linux may be preventing your files from loading. To fix this run the following command: |
||
506 | |||
507 | <pre> |
||
508 | $ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/ |
||
509 | </pre> |
||
510 | |||
511 | see "this website":http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html for more details on SELinux |
||
512 | |||
513 | 13 | Amber Herold | ---- |
514 | |||
515 | 2 | Amber Herold | h2. 8 Install external packages |
516 | |||
517 | *Please follow individual package installation instruction provided with them* |
||
518 | |||
519 | 13 | Amber Herold | h3. Compile Xmipp for OpenMPI |
520 | |||
521 | * For more info, see http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware |
||
522 | 2 | Amber Herold | * Go into Xmipp source directory |
523 | * Find openmpi directory |
||
524 | |||
525 | <pre> |
||
526 | $ locate libmpi.so |
||
527 | </pre> |
||
528 | |||
529 | <pre> |
||
530 | /usr/lib/openmpi/1.2.7-gcc/lib/libmpi.so |
||
531 | 13 | Amber Herold | </pre> |
532 | 2 | Amber Herold | |
533 | * Setup Xmipp to use openmpi by changing three lines in SConstruct |
||
534 | |||
535 | <pre> |
||
536 | $ cp SConstruct SConstruct.orig |
||
537 | </pre> |
||
538 | |||
539 | <pre> |
||
540 | $ nano SConstruct |
||
541 | </pre> |
||
542 | |||
543 | <pre> |
||
544 | opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/') |
||
545 | opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/') |
||
546 | opts.Add('MPI_LIB', 'MPI library', 'mpi') |
||
547 | 13 | Amber Herold | </pre> |
548 | 2 | Amber Herold | |
549 | * Compile |
||
550 | |||
551 | <pre> |
||
552 | $ sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi` |
||
553 | </pre> |
||
554 | |||
555 | <pre> |
||
556 | $ export PATH=$PATH:/usr/lib/openmpi/1.2.7-gcc/bin |
||
557 | </pre> |
||
558 | |||
559 | <pre> |
||
560 | $ ./scons.configure |
||
561 | </pre> |
||
562 | |||
563 | you should see the line: |
||
564 | |||
565 | <pre> |
||
566 | * Checking for MPI ... yes |
||
567 | </pre> |
||
568 | |||
569 | <pre> |
||
570 | $ ./scons.compile |
||
571 | 13 | Amber Herold | </pre> |
572 | 2 | Amber Herold | |
573 | h2. 9 Install a PBS job submission system |
||
574 | |||
575 | 13 | Amber Herold | You'll need to install a "Portable Batch System":http://en.wikipedia.org/wiki/Portable_Batch_System for job submission, such as "TORQUE":http://en.wikipedia.org/wiki/TORQUE_Resource_Manager . I know Torque comes with Fedora 10, but not CentOS. |
576 | 2 | Amber Herold | |
577 | * An RPM is available in the EPEL testing section |
||
578 | |||
579 | <pre> |
||
580 | $ sudo yum -y --enablerepo=epel-testing install torque |
||
581 | </pre> |
||
582 | |||
583 | or another way to get packages |
||
584 | |||
585 | <pre> |
||
586 | $ wget http://centos.karan.org/el5/extras/testing/`uname -i`/RPMS/torque-2.1.9-1.el5.kb.`uname -i`.rpm |
||
587 | $ sudo yum -y localinstall --nogpgcheck torque-2.1.9-1.el5.kb.`uname -i`.rpm |
||
588 | $ #sudo rpm -Uhv torque-2.1.9-1.el5.kb.`uname -i`.rpm |
||
589 | </pre> |
||
590 | 1 | Amber Herold | |
591 | After installing torque it needs to be configured. Sorry, we have no documentation for configuring torque at this time. You may try http://www.clusterresources.com/products/torque-resource-manager.php |