[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] OpenMPI & Eclipse PTP Problem

Please try adding these two lines to the end of "/etc/profile", this would work when you login next time or after you run a command "source /etc/profile"

export PATH=/usr/local/openmpi-1.4.1/bin:/usr/local/bin:$PATH

export LD_LIBRARY_PATH=/usr/local/openmpi-1.4.1/lib:/usr/local/lib

Zou Yuanbin

On Fri, Apr 2, 2010 at 4:38 PM, Saygin Arkan <saygenius@xxxxxxxxx> wrote:
I'm a newbie on MPI & Eclipse.
Here're my problems. First of all I installed the openmpi-1.4.1 to the default location, ( urs/local/)
then when I tried to make a test from the command line
mpicc -o testMPI testMPI.c
mpirun -np 4 testMPI

it gave errors such as
"libopen-pal.so.0: cannot open shared object file: No such file or directory"

then I uninstalled, and installed another directory:
./configure --prefix=/usr/local/openmpi-1.4.1
export PATH=/usr/local/openmpi-1.4.1/bin:/usr/local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/openmpi-1.4.1/lib:/usr/local/lib
sudo make all install

it installed without any problem. This time I was able to make it work from the command line, the testMPI code worked well locally.

And then I made the necessary installations to Eclipse (Parallel Tools Platform, CDT, Remote something etc) by following the instructions

nothing to worry about. I added a resource manager on parallel runtime perspective.
it gave this error :
mpirun was unable to launch the specified application as it could not access
or execute an executable:

Executable: /home/sertan/workspace/MPI_HelloWorld/src/MPI_HelloWorld.c
Node: sertan-desktop

while attempting to start process rank 0.

Then I re-opened C++ perspective, tried to "Build". It said cannot open "/bin/sh mpicc". But it is inside the directory path I assigned. usr/local/openmpi-1.4.1/bin
Then just to give it a try, I copied mpicc to usr/local/bin
it passed that error when I tried to build from eclipse but gave another missing lib. this time.

Then I decided to install openmpi-1.4.1 on both locations. Now again it works well on command line, but not on eclipse (when I pressed build)
**** Build of configuration Debug for project MPI_HelloWorld ****

make all
Building target: MPI_HelloWorld
Invoking: GCC C Linker
mpicc -L/usr/local/openmpi-1.4.1/lib -o"MPI_HelloWorld"  ./src/MPI_HelloWorld.o   -lopenmpi
mpicc: error while loading shared libraries: libopen-pal.so.0: cannot open shared object file: No such file or directory
make: *** [MPI_HelloWorld] Error 127

and without build, I can't run as "Parallel Application".

I changed the library path of the project, I changed the lib path of the project, checked the builder (GCC C Compiler)

I need some help because for 2 full days I've tried to make just a simple "Hello World." and not  even on cluster, on my poor local computer...

H. Saygin Arkan
Tampere University of Tech.
CS / III - +358466646156

ptp-user mailing list