mpicc/mpic++ - can't compile

Hello everybody,
main problem:


linux-t8zx:/home/taskas/workspace # mpic++ hellompi.cpp
g++: libtool:: No such file or directory
g++: link:: No such file or directory
mpic++: No such file or directory


i have mpich2, mpi-selector, openmpi, lam installed… (althought, “mpi-selector --list” gives only “openmpi-1.3.2”. )
nothing seems to work. maybe someone have any idea what to do?

iskrypelis wrote:
> linux-t8zx:/home/taskas/workspace # mpic++ hellompi.cpp
> g++: libtool:: No such file or directory
> g++: link:: No such file or directory
> mpic++: No such file or directory
>
At least you seem to miss the packages libtool (which contains libtool) and
coreutils (which contains link) and lam-devel (which contains mpic++),
install them and try again what errors remain.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.1 | nVidia
ION | 3GB Ram

martin_helm wrote:

> iskrypelis wrote:
>> linux-t8zx:/home/taskas/workspace # mpic++ hellompi.cpp
>> g++: libtool:: No such file or directory
>> g++: link:: No such file or directory
>> mpic++: No such file or directory
>>
> At least you seem to miss the packages libtool (which contains libtool)
> and coreutils (which contains link) and lam-devel (which contains mpic++),
> install them and try again what errors remain.
>
Ignore what I wrote before I installed quickly the openmpi 1.3.2 you are
using and see exactly the same error message when compiling a trivial test
program, though I have of course all tools installed.

What I use myself is mpich 1.4.1p1 which I compiled myself and it just
works, so I am not sure what is screwed up here with the openmpi 1.3.2.

Removing it and installing instead the openmpi 1.4.3 and openmpi-devel
packages from the scorot repository makes that problem go away and
compilation works.

http://download.opensuse.org/repositories/home:/scorot/openSUSE_11.4
Description of repository
https://build.opensuse.org/project/show?project=home%3Ascorot

Note that I anyway use that repository since I use some of the packages for
scientific computing from it and I do not know if it is an option for you to
add it also and use the openmpi from it.

If you do it with that repo, clean your system before by removing the mpich2
and openmpi and what else you installed for it and then install it again
from yast by chosing the version from scorot.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.1 | nVidia
ION | 3GB Ram

i deleted all the packages, reinstalled without lam-devel, and used mpicxx - seems to work. thank you :slight_smile: