>>> # ln -s /usr/lib64/mpi/gcc/openmpi/lib64/ /usr/lib64/mpi/gcc/ >>> openmpi/lib >>> # CC="mpicc" R CMD INSTALL Rmpi_0.5-5.tar.gz >>> --configure-args=--with-mpi=/usr/lib64/mpi/gcc/openmpi/ >> >> You can drop the --configure-args. Using the correct mpicc should >> take care of all the linking, etc. >You can probably also drop the sym link.
I am afraid I cannot, moreover, for some reason, from a non root account I get: giannerini@gauss:~> su [...] gauss:/home/giannerini # cd /root/Desktop/ gauss:~/Desktop # CC="mpicc" R CMD INSTALL Rmpi_0.5-5.tar.gz --configure-args=--with-mpi=/usr/lib64/mpi/gcc/openmpi/ * Installing to library '/usr/local/lib64/R/library' * Installing *source* package 'Rmpi' ... checking for gcc... mpicc checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. ERROR: configuration failed for package 'Rmpi' ** Removing '/usr/local/lib64/R/library/Rmpi' ** Restoring previous '/usr/local/lib64/R/library/Rmpi' gauss:~/Desktop # R CMD INSTALL Rmpi_0.5-5.tar.gz --configure-args=--with-mpi=/usr/lib64/mpi/gcc/openmpi/ * Installing to library '/usr/local/lib64/R/library' [...] ** building package indices ... * DONE (Rmpi) Notice that now it works only if I remove the CC directive. In any case I confirm that I can load the package Rmpi even if I am experiencing some problems, will study a bit and in case get back to the forum, thanks again. -- ______________________________________________________ Simone Giannerini Dipartimento di Scienze Statistiche "Paolo Fortunati" Universita' di Bologna Via delle belle arti 41 - 40126 Bologna, ITALY Tel: +39 051 2098262 Fax: +39 051 232153 http://www2.stat.unibo.it/giannerini/ ______________________________________________________