install openmpi openmpi-devel

Submitted by g.garate on Thu, 01/03/2013 - 00:16

Hi all,
I'm trying to install liggghts in ubuntu but I've had some troubles. When I type "sudo apt-get install openmpi openmpi-devel" shows up the follow message :

Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
E: No se ha podido localizar el paquete openmpi
E: No se ha podido localizar el paquete openmpi-devel

In order to get over this problem I followed instruction that I found on internet:

"These instructions will almost definitely work on Debian lenny, squeeze, and sid, as well as Ubuntu hardy, intrepid, jaunty, karmic, or lucid.
Make sure your package repository is up to date. apt-get update will do this. You must run this command as root - you may have to su, or more likely run it with sudo (it'll look like sudo apt-get update).
Be sure you've installed GCC! apt-get install gcc g++ will install the compilers if you don't have them already.
Then, run apt-get install openmpi-bin openmpi-doc libopenmpi-dev, wrapping the command in sudo if necessary. This will install OpenMPI, all necessary libraries, and the documentation for the MPI calls."
source: http://cs.ucsb.edu/~hnielsen/cs140/openmpi-install.html

But I don't think this works properly because I haven't been able to make fedora in the next step.

Please any idea will be appreciated
Regards!
Gonzalo Gárate

ckloss's picture

ckloss | Thu, 01/03/2013 - 00:27

Hi Gonzalo,

my Spanish is a bit rusty, but I guess either googling for how to install openmpi on your version of Ubuntu (should come either out of the box or as a package, maybe the package name has changed) or asking a Linux admin will do the job.

Cheers,
Christoph

g.garate | Thu, 01/03/2013 - 19:12

Thanks Christoph
I installed openmpi by 3 different ways. According to the tutorial the next step is:
Open a new console and check if the symbolic links for Open MPI are set up correctly by typing "which mpirun".
If nothing comes up, you have to manually set up the following symbolic links:

when I tipe "which mpirun" comes up:

gonzalo@ubuntu:~$ which mpirun
/usr/bin/mpirun

Is that what should appear or am I doing anything wrong?

Regards
Gonzalo

mpage | Thu, 01/03/2013 - 21:25

The result you got from `which` is encouraging. It shows that your openmpi build also installed the mpirun wrapper in /usr/bin and also that /usr/bin is in your $PATH

It would be informative next to type
`ls -l /usr/bin/mpirun`
just to see where the link points to or of the mpirun wrapper itself was copied to /usr/bin

Either result is OK. This is just an informative step that might help future problem tracking if you need it.

g.garate | Wed, 01/09/2013 - 00:28

Thanks again Christoph
Could you tell me what is "path1" refered in this step?

Set a following symbolic link for LIGGGHTS (use lmp_fedora if you use the fedora makefile):
+ Type "sudo ln -s /path1/src/lmp_fedora /usr/bin/liggghts"

raguelmoon's picture

raguelmoon | Mon, 01/14/2013 - 16:53

Hi,
here 'path' means where you have saved LIGGGHTS for installation.
Best,
Ram

Ram