Start with existing CentOS installation » History » Version 24
Amber Herold, 03/08/2010 03:03 PM
1 | 1 | Amber Herold | h1. Start with existing CentOS 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 | 21 | Amber Herold | h2. 4 mrc.so PHP Extension Installation |
131 | 13 | Amber Herold | |
132 | 24 | Amber Herold | h3. Prerequisites |
133 | |||
134 | -Install fft - http://www.fftw.org/- (Already there) |
||
135 | 20 | Amber Herold | -Refer to [[Start_with_existing_ANY_Linux_flavor_OS#5-Processing-server-side-installation|Processing server-side installation]]- |
136 | |||
137 | h3. Install mrc PHP extension |
||
138 | |||
139 | http://emg.nysbc.org/software/mrctools/mrc_so.php |
||
140 | 2 | Amber Herold | |
141 | 22 | Amber Herold | "php_mrc_src_1_5_1.tgz":http://emg.nysbc.org/software/dwd.php?id=N1HDb4ac22efb5b38b05fd3575d42d3e4adc2 |
142 | |||
143 | 23 | Amber Herold | |
144 | -- build MRC as a php shared extension -- |
||
145 | |||
146 | Download php_mrc_src_[x].tgz from http://emg.nysbc.org/software/mrctools |
||
147 | |||
148 | h4. cd to your php devel directory |
||
149 | |||
150 | > cd /usr/include/php/ext/ |
||
151 | > mv [downloads]/php_mrc_src_[x].tgz . |
||
152 | |||
153 | h4. untar the archive |
||
154 | |||
155 | > tar zxvf php_mrc_src_[x].tgz |
||
156 | > cd mrc/ |
||
157 | |||
158 | h4. Make sure that GD and FFTW 3 devel libraries are installed |
||
159 | |||
160 | > phpize |
||
161 | > ./configure |
||
162 | > make |
||
163 | > make install |
||
164 | |||
165 | Shared Library Installation |
||
166 | |||
167 | h4. mrc.so should be in your php extension directory |
||
168 | |||
169 | > ls /usr/lib/php/extensions |
||
170 | mrc.so |
||
171 | |||
172 | 1 | Amber Herold | h4. Make sure that GD and FFTW 3 libraries are installed |
173 | |||
174 | |||
175 | 24 | Amber Herold | * edit your php configuration file php.ini to add "mrc.so" extension. |
176 | * You might also increase the memory_limit field. It is set to 8M by default. The more the merrier! |
||
177 | * 4kx4k float MRC image is about 64MB |
||
178 | 23 | Amber Herold | > vi /etc/php.ini |
179 | |||
180 | 24 | Amber Herold | * increase memory |
181 | memory_limit = 256M; Maximum amount of memory |
||
182 | * check extension_dir value |
||
183 | extension_dir = /usr/lib/php/extensions |
||
184 | 23 | Amber Herold | |
185 | [extension section] |
||
186 | |||
187 | h4. add the following at the end of the extension section |
||
188 | |||
189 | extension=mrc.so |
||
190 | |||
191 | OR if your linux distro has a /etc/php.d directory: |
||
192 | |||
193 | > cd /etc/php.d |
||
194 | > vi mrc.ini |
||
195 | |||
196 | h4. add the following lines |
||
197 | |||
198 | ; Enable mrc extension module |
||
199 | extension=mrc.so |
||
200 | |||
201 | |||
202 | h4. restart your webserver |
||
203 | |||
204 | > /etc/init.d/apache2 restart |
||
205 | |||
206 | OR |
||
207 | |||
208 | > /etc/init.d/httpd restart |
||
209 | 2 | Amber Herold | |
210 | |||
211 | 17 | Amber Herold | ---- |
212 | 2 | Amber Herold | |
213 | 13 | Amber Herold | h2. 5 Compile and setup Appion python programs |
214 | 2 | Amber Herold | |
215 | 12 | Amber Herold | h3. 5.1 Compile FindEM |
216 | 2 | Amber Herold | |
217 | 12 | Amber Herold | * Goto pyappion/findem folder to make findem.exe |
218 | 2 | Amber Herold | |
219 | * Compile the libraries and binary |
||
220 | |||
221 | <pre> |
||
222 | $ make |
||
223 | 12 | Amber Herold | </pre> |
224 | 2 | Amber Herold | |
225 | * Test findem.exe to see if it runs |
||
226 | |||
227 | <pre> |
||
228 | $ make test |
||
229 | </pre> |
||
230 | |||
231 | *WARNING* |
||
232 | Only if the first part fails, you must add the path to libg2c.so library file. |
||
233 | 11 | Amber Herold | Otherwise skip to next section. |
234 | 2 | Amber Herold | |
235 | * locate libg2c.so library file |
||
236 | |||
237 | <pre> |
||
238 | $ ls /usr/lib/gcc/`uname -i`-redhat-linux/3.4.6/libg2c.so |
||
239 | 1 | Amber Herold | </pre> |
240 | 2 | Amber Herold | |
241 | <pre> |
||
242 | $ locate libg2c.so |
||
243 | 1 | Amber Herold | </pre> |
244 | 2 | Amber Herold | |
245 | * Edit Makefile with location of libg2c.so |
||
246 | |||
247 | <pre> |
||
248 | 1 | Amber Herold | $ nano Makefile |
249 | 11 | Amber Herold | </pre> |
250 | |||
251 | 2 | Amber Herold | * Example: EXLIBS=-L/usr/lib/gcc/i386-redhat-linux/3.4.6/ -lg2c |
252 | 13 | Amber Herold | * Re-compile |
253 | 2 | Amber Herold | |
254 | h3. 5.2 Compile Ace2 |
||
255 | |||
256 | *WARNING* |
||
257 | 1 | Amber Herold | ace2 typically requires fftw 3.2 or greater, but you can remove the FFTW_WISDOM_ONLY flag in Image.m |
258 | 2 | Amber Herold | |
259 | 1 | Amber Herold | *NOTE* |
260 | 11 | Amber Herold | 64 bit binaries are included with pyappion |
261 | 1 | Amber Herold | |
262 | 11 | Amber Herold | * Goto pyappion/ace2 |
263 | 2 | Amber Herold | * compile the libraries and binary |
264 | * test to see if program runs |
||
265 | |||
266 | <pre> |
||
267 | 1 | Amber Herold | $ make |
268 | 2 | Amber Herold | $ ./ace2.exe -h |
269 | $ ./ace2correct.exe -h |
||
270 | $ mv -v ./ace2*.exe ../bin |
||
271 | 13 | Amber Herold | </pre> |
272 | 2 | Amber Herold | |
273 | 11 | Amber Herold | h3. 5.3 Compile Radermacher module |
274 | 2 | Amber Herold | |
275 | 11 | Amber Herold | * Goto pyappion/radermacher |
276 | 1 | Amber Herold | |
277 | 2 | Amber Herold | * compile the libraries and binary |
278 | 1 | Amber Herold | |
279 | 2 | Amber Herold | <pre> |
280 | $ python ./setup.py build |
||
281 | 11 | Amber Herold | </pre> |
282 | 2 | Amber Herold | |
283 | * install module globally |
||
284 | |||
285 | <pre> |
||
286 | $ sudo python ./setup.py install |
||
287 | 1 | Amber Herold | </pre> |
288 | 2 | Amber Herold | |
289 | * test installed module |
||
290 | |||
291 | <pre> |
||
292 | $ python |
||
293 | </pre> |
||
294 | |||
295 | <pre> |
||
296 | >>> import radermacher |
||
297 | >>> <Ctrl-D> |
||
298 | 13 | Amber Herold | </pre> |
299 | 2 | Amber Herold | |
300 | 11 | Amber Herold | h3. 5.4 Test PyAppion |
301 | |||
302 | 2 | Amber Herold | * Go into pyappion directory |
303 | * Add leginon to PYTHONPATH if Leginon is built locally |
||
304 | |||
305 | <pre> |
||
306 | $ export PYTHONPATH="$LEGINONPATH:$PYTHONPATH" |
||
307 | 11 | Amber Herold | </pre> |
308 | 2 | Amber Herold | |
309 | * Add pyappion lib to PYTHONPATH |
||
310 | |||
311 | <pre> |
||
312 | 1 | Amber Herold | $ export PYTHONPATH="/your-complete-path-to-pyappion/lib:$PYTHONPATH" |
313 | </pre> |
||
314 | 2 | Amber Herold | |
315 | * Run the test script |
||
316 | |||
317 | <pre> |
||
318 | $ ./check.sh |
||
319 | </pre> |
||
320 | |||
321 | *NOTE* |
||
322 | You can ignore EMAN, MATLAB, and UCSF Chimera errors at this point |
||
323 | |||
324 | 13 | Amber Herold | ---- |
325 | 2 | Amber Herold | |
326 | 13 | Amber Herold | h2. 6 Setup MySQL (appiondata) databases |
327 | 2 | Amber Herold | |
328 | Refer to [[Start_with_existing_ANY_Linux_flavor_OS#2-Setup-MySQL-databases|Setup MySQL databases]] |
||
329 | |||
330 | h3. Configure MySQL |
||
331 | |||
332 | Edit the configuration file: |
||
333 | |||
334 | <pre> |
||
335 | $ sudo nano /etc/my.cnf |
||
336 | </pre> |
||
337 | |||
338 | Add or edit the following lines: |
||
339 | |||
340 | <pre> |
||
341 | query_cache_type = 1 |
||
342 | query_cache_size = 100M |
||
343 | query_cache_limit= 100M |
||
344 | </pre> |
||
345 | |||
346 | Restart MySQL |
||
347 | |||
348 | <pre> |
||
349 | $ sudo /sbin/service mysqld restart |
||
350 | </pre> |
||
351 | |||
352 | h3. Configure phpMyAdmin |
||
353 | |||
354 | Edit the phpMyAdmin config file: |
||
355 | |||
356 | <pre> |
||
357 | $ sudo nano /etc/phpMyAdmin/config.inc.php |
||
358 | </pre> |
||
359 | |||
360 | and change the following lines: |
||
361 | |||
362 | <pre> |
||
363 | $cfg['Servers'][$i]['AllowRoot'] = FALSE; |
||
364 | </pre> |
||
365 | 1 | Amber Herold | |
366 | Edit the phpMyAdmin apache config file: |
||
367 | 2 | Amber Herold | |
368 | <pre> |
||
369 | $ sudo nano /etc/httpd/conf.d/phpMyAdmin.conf |
||
370 | </pre> |
||
371 | |||
372 | 1 | Amber Herold | and change the following lines: |
373 | 2 | Amber Herold | |
374 | <pre> |
||
375 | <Directory /usr/share/phpMyAdmin/> |
||
376 | order deny,allow |
||
377 | deny from all |
||
378 | allow from 127.0.0.1 |
||
379 | allow from YOUR_IP_ADDRESS |
||
380 | </Directory> |
||
381 | </pre> |
||
382 | |||
383 | 13 | Amber Herold | ---- |
384 | 2 | Amber Herold | |
385 | 14 | Amber Herold | h2. 7 Install webpages (appionweb) |
386 | 2 | Amber Herold | |
387 | Refer to [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Web server side installation]] |
||
388 | |||
389 | 1 | Amber Herold | h3. Install MRC Tools |
390 | 2 | Amber Herold | |
391 | 13 | Amber Herold | h4. Compile MRC tools |
392 | |||
393 | 2 | Amber Herold | * Go to your php devel directory and untar the archive |
394 | * If unsure where it is, use info.php to find it under *extension_dir* |
||
395 | |||
396 | <pre> |
||
397 | 1 | Amber Herold | $ cd /usr/include/php/ext/ |
398 | 2 | Amber Herold | $ sudo mkdir mrc |
399 | $ sudo chmod 777 mrc |
||
400 | 1 | Amber Herold | $ sudo chown $USER mrc |
401 | 13 | Amber Herold | </pre> |
402 | 2 | Amber Herold | |
403 | * Unpackage MRC Tools from http://emg.nysbc.org/software/mrctools/ |
||
404 | |||
405 | <pre> |
||
406 | $ tar zxvf ~/php_mrc.tgz |
||
407 | $ cd mrc/ |
||
408 | 13 | Amber Herold | </pre> |
409 | 2 | Amber Herold | |
410 | * Compile and install the MRC module |
||
411 | |||
412 | <pre> |
||
413 | $ phpize |
||
414 | $ ./configure |
||
415 | 1 | Amber Herold | $ make |
416 | 2 | Amber Herold | $ sudo make install |
417 | </pre> |
||
418 | |||
419 | 13 | Amber Herold | h4. Configure PHP for MRC Tools |
420 | 1 | Amber Herold | |
421 | 2 | Amber Herold | * Edit your php configuration file php.ini to add "mrc.so" extension. |
422 | |||
423 | 1 | Amber Herold | <pre> |
424 | 2 | Amber Herold | $ sudo nano /etc/php.d/mrc.ini |
425 | 13 | Amber Herold | </pre> |
426 | 2 | Amber Herold | |
427 | * add mrc.so to extensions |
||
428 | 1 | Amber Herold | |
429 | 2 | Amber Herold | <pre> |
430 | ; Enable mrc extension module |
||
431 | extension=mrc.so |
||
432 | 13 | Amber Herold | </pre> |
433 | 2 | Amber Herold | |
434 | * To test MRC tools, go to this website: |
||
435 | http://emg.nysbc.org/software/mrctools/mrc_so.php |
||
436 | |||
437 | 13 | Amber Herold | h3. Configure PHP |
438 | 2 | Amber Herold | |
439 | * increase the memory limit, EM images are big 64MB: |
||
440 | |||
441 | <pre> |
||
442 | memory_limit = 256M; Maximum amount of memory |
||
443 | 13 | Amber Herold | </pre> |
444 | 2 | Amber Herold | |
445 | * Turn error display on: |
||
446 | |||
447 | <pre> |
||
448 | display_errors = On |
||
449 | 1 | Amber Herold | </pre> |
450 | |||
451 | <pre> |
||
452 | 2 | Amber Herold | error_reporting = E_ALL & ~E_NOTICE |
453 | 13 | Amber Herold | </pre> |
454 | 2 | Amber Herold | |
455 | * restart the webserver |
||
456 | |||
457 | <pre> |
||
458 | $ sudo /sbin/service httpd restart |
||
459 | </pre> |
||
460 | |||
461 | 15 | Amber Herold | h3. Install DBEM and project php source |
462 | 2 | Amber Herold | |
463 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
464 | |||
465 | h3. Configuration |
||
466 | |||
467 | 13 | Amber Herold | h4. configure apache |
468 | 2 | Amber Herold | |
469 | * allow REMOTE_HOST lookups in apache |
||
470 | |||
471 | <pre> |
||
472 | $ sudo nano /etc/httpd/conf/httpd.conf |
||
473 | 13 | Amber Herold | </pre> |
474 | 2 | Amber Herold | |
475 | * turn _HostnameLookups_ to On |
||
476 | |||
477 | <pre> |
||
478 | HostnameLookups On |
||
479 | 13 | Amber Herold | </pre> |
480 | 2 | Amber Herold | |
481 | * restart the webserver |
||
482 | |||
483 | <pre> |
||
484 | $ sudo /sbin/service httpd restart |
||
485 | </pre> |
||
486 | 1 | Amber Herold | |
487 | 15 | Amber Herold | h4. configure project_1_2, dbem_1_5_1, and dbem_1_5_1/processing |
488 | 2 | Amber Herold | |
489 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
490 | |||
491 | 16 | Amber Herold | h3. Initialize database tables from the web tools |
492 | 2 | Amber Herold | |
493 | Please consult [[Start_with_existing_ANY_Linux_flavor_OS#4-Create-a-test-project-and-processing-database|Create a test project and processing database]] |
||
494 | |||
495 | h3. Potential problems |
||
496 | |||
497 | h4. Firewall settings |
||
498 | |||
499 | You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic: |
||
500 | |||
501 | <pre> |
||
502 | $ system-config-securitylevel |
||
503 | </pre> |
||
504 | |||
505 | h4. Security-enhanced linux |
||
506 | |||
507 | "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: |
||
508 | |||
509 | <pre> |
||
510 | $ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/ |
||
511 | </pre> |
||
512 | |||
513 | see "this website":http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html for more details on SELinux |
||
514 | |||
515 | 13 | Amber Herold | ---- |
516 | |||
517 | 2 | Amber Herold | h2. 8 Install external packages |
518 | |||
519 | *Please follow individual package installation instruction provided with them* |
||
520 | |||
521 | 13 | Amber Herold | h3. Compile Xmipp for OpenMPI |
522 | |||
523 | * For more info, see http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware |
||
524 | 2 | Amber Herold | * Go into Xmipp source directory |
525 | * Find openmpi directory |
||
526 | |||
527 | <pre> |
||
528 | $ locate libmpi.so |
||
529 | </pre> |
||
530 | |||
531 | <pre> |
||
532 | /usr/lib/openmpi/1.2.7-gcc/lib/libmpi.so |
||
533 | 13 | Amber Herold | </pre> |
534 | 2 | Amber Herold | |
535 | * Setup Xmipp to use openmpi by changing three lines in SConstruct |
||
536 | |||
537 | <pre> |
||
538 | $ cp SConstruct SConstruct.orig |
||
539 | </pre> |
||
540 | |||
541 | <pre> |
||
542 | $ nano SConstruct |
||
543 | </pre> |
||
544 | |||
545 | <pre> |
||
546 | opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/') |
||
547 | opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/') |
||
548 | opts.Add('MPI_LIB', 'MPI library', 'mpi') |
||
549 | 13 | Amber Herold | </pre> |
550 | 2 | Amber Herold | |
551 | * Compile |
||
552 | |||
553 | <pre> |
||
554 | $ sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi` |
||
555 | </pre> |
||
556 | |||
557 | <pre> |
||
558 | $ export PATH=$PATH:/usr/lib/openmpi/1.2.7-gcc/bin |
||
559 | </pre> |
||
560 | |||
561 | <pre> |
||
562 | $ ./scons.configure |
||
563 | </pre> |
||
564 | |||
565 | you should see the line: |
||
566 | |||
567 | <pre> |
||
568 | * Checking for MPI ... yes |
||
569 | </pre> |
||
570 | |||
571 | <pre> |
||
572 | $ ./scons.compile |
||
573 | 13 | Amber Herold | </pre> |
574 | 2 | Amber Herold | |
575 | h2. 9 Install a PBS job submission system |
||
576 | |||
577 | 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. |
578 | 2 | Amber Herold | |
579 | * An RPM is available in the EPEL testing section |
||
580 | |||
581 | <pre> |
||
582 | $ sudo yum -y --enablerepo=epel-testing install torque |
||
583 | </pre> |
||
584 | |||
585 | or another way to get packages |
||
586 | |||
587 | <pre> |
||
588 | $ wget http://centos.karan.org/el5/extras/testing/`uname -i`/RPMS/torque-2.1.9-1.el5.kb.`uname -i`.rpm |
||
589 | $ sudo yum -y localinstall --nogpgcheck torque-2.1.9-1.el5.kb.`uname -i`.rpm |
||
590 | $ #sudo rpm -Uhv torque-2.1.9-1.el5.kb.`uname -i`.rpm |
||
591 | </pre> |
||
592 | 1 | Amber Herold | |
593 | 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 |