Discussion:
[OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
huaibao zhang
2012-11-13 14:44:24 UTC
Permalink
Hell all,

I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify "prefix", so even I've installed it. I could not find where it is. Since the "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" file.

Thanks very much.

Paul
Reuti
2012-11-13 17:24:23 UTC
Permalink
Post by huaibao zhang
I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify "prefix", so even I've installed it. I could not find where it is. Since the "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" file.
You mean "...can't find..."? If you use the default location, it should have the correct settings already even without adding any path to PATH or LD_LIBRARY_PATH.

You can use:

$ find /lib -name "libopen-pal.so.0"

to spot the location. But I wonder about the version. The actual one seems to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using?

-- Reuti
huaibao zhang
2012-11-13 18:26:31 UTC
Permalink
Hi Reuti,

Thanks for your answer. I really appreciate it.
I am using an old version 1.4.3. for my code. If I only type $./configure, it will compile, but I have no idea where it is installed. I typed $ find /lib -name "libopen-pal.so.0", but it shows nothing. Do you thinks it is caused since I am not a root user or the old version.

Thanks,
Paul

--
Huaibao (Paul) Zhang
Gas Surface Interactions Lab
Department of Mechanical Engineering
University of Kentucky,
Lexington, KY, 40506-0503
Office: 216 Ralph G. Anderson Building
Web:gsil.engineering.uky.edu
Post by Reuti
Post by huaibao zhang
I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify "prefix", so even I've installed it. I could not find where it is. Since the "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" file.
You mean "...can't find..."? If you use the default location, it should have the correct settings already even without adding any path to PATH or LD_LIBRARY_PATH.
$ find /lib -name "libopen-pal.so.0"
to spot the location. But I wonder about the version. The actual one seems to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using?
-- Reuti
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
Reuti
2012-11-13 18:31:58 UTC
Permalink
Post by huaibao zhang
Hi Reuti,
Thanks for your answer. I really appreciate it.
I am using an old version 1.4.3. for my code. If I only type $./configure, it will compile
Well, it will "configure", but afterwards you need `make` and `make install`. If you are not the root user, you will likely prefer to install it in your own home directory with options like:

$ ./configure --prefix=$HOME/local/openmpi-1.4.3
$ make
$ make install

Any reason not to use the latest version?

-- Reuti
Post by huaibao zhang
, but I have no idea where it is installed. I typed $ find /lib -name "libopen-pal.so.0", but it shows nothing. Do you thinks it is caused since I am not a root user or the old version.
Thanks,
Paul
--
Huaibao (Paul) Zhang
Gas Surface Interactions Lab
Department of Mechanical Engineering
University of Kentucky,
Lexington, KY, 40506-0503
Office: 216 Ralph G. Anderson Building
Web:gsil.engineering.uky.edu
Post by Reuti
Post by huaibao zhang
I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify "prefix", so even I've installed it. I could not find where it is. Since the "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" file.
You mean "...can't find..."? If you use the default location, it should have the correct settings already even without adding any path to PATH or LD_LIBRARY_PATH.
$ find /lib -name "libopen-pal.so.0"
to spot the location. But I wonder about the version. The actual one seems to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using?
-- Reuti
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
Zbigniew Koza
2012-11-13 18:44:01 UTC
Permalink
./configure does not compile, but generates the Makefile.

Did you run
Post by Reuti
make
make install
after running ./configure?

Notice also that openmpi can very likely be already installed on your
system from ubuntu packages;
anyway, I suggest you use ubuntu packages rather than compiling from
sources unless you have a
very good reason not to use the packaged version.

you can also quite safely re-run make install to see where the
libraries are going to.

If you're unsure which version of openmpi you have, you can start from
Post by Reuti
which mpicc
mpicc --showme
Z Koza
Post by Reuti
Hi Reuti,
Thanks for your answer. I really appreciate it.
I am using an old version 1.4.3. for my code. If I only type $./configure,
it will compile, but I have no idea where it is installed. I typed $ find
/lib -name "libopen-pal.so.0", but it shows nothing. Do you thinks it is
caused since I am not a root user or the old version.
Thanks,
Paul
--
Huaibao (Paul) Zhang
Gas Surface Interactions Lab
Department of Mechanical Engineering
University of Kentucky,
Lexington, KY, 40506-0503
Office: 216 Ralph G. Anderson Building
Web:gsil.engineering.uky.edu
I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify
"prefix", so even I've installed it. I could not find where it is. Since the
"PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0"
file.
You mean "...can't find..."? If you use the default location, it should have
the correct settings already even without adding any path to PATH or
LD_LIBRARY_PATH.
$ find /lib -name "libopen-pal.so.0"
to spot the location. But I wonder about the version. The actual one seems
to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you
using?
-- Reuti
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
huaibao zhang
2012-11-13 18:56:17 UTC
Permalink
Koza,

Thanks a lot for your help. It is indeed installed already. The version is 1.4.3

Paul
--
Huaibao (Paul) Zhang
Gas Surface Interactions Lab
Department of Mechanical Engineering
University of Kentucky,
Lexington, KY, 40506-0503
Office: 216 Ralph G. Anderson Building
Web:gsil.engineering.uky.edu
Post by Zbigniew Koza
./configure does not compile, but generates the Makefile.
Did you run
Post by Reuti
make
make install
after running ./configure?
Notice also that openmpi can very likely be already installed on your
system from ubuntu packages;
anyway, I suggest you use ubuntu packages rather than compiling from
sources unless you have a
very good reason not to use the packaged version.
you can also quite safely re-run make install to see where the
libraries are going to.
If you're unsure which version of openmpi you have, you can start from
Post by Reuti
which mpicc
mpicc --showme
Z Koza
Post by Reuti
Hi Reuti,
Thanks for your answer. I really appreciate it.
I am using an old version 1.4.3. for my code. If I only type $./configure,
it will compile, but I have no idea where it is installed. I typed $ find
/lib -name "libopen-pal.so.0", but it shows nothing. Do you thinks it is
caused since I am not a root user or the old version.
Thanks,
Paul
--
Huaibao (Paul) Zhang
Gas Surface Interactions Lab
Department of Mechanical Engineering
University of Kentucky,
Lexington, KY, 40506-0503
Office: 216 Ralph G. Anderson Building
Web:gsil.engineering.uky.edu
I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify
"prefix", so even I've installed it. I could not find where it is. Since the
"PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0"
file.
You mean "...can't find..."? If you use the default location, it should have
the correct settings already even without adding any path to PATH or
LD_LIBRARY_PATH.
$ find /lib -name "libopen-pal.so.0"
to spot the location. But I wonder about the version. The actual one seems
to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you
using?
-- Reuti
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
huaibao zhang
2012-11-13 18:33:23 UTC
Permalink
I just checked. It it libopen-pal.so.0 -> libopen-pal.so.0.0.0

--
Huaibao (Paul) Zhang
Gas Surface Interactions Lab
Department of Mechanical Engineering
University of Kentucky,
Lexington, KY, 40506-0503
Office: 216 Ralph G. Anderson Building
Web:gsil.engineering.uky.edu
Post by Reuti
Post by huaibao zhang
I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify "prefix", so even I've installed it. I could not find where it is. Since the "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" file.
You mean "...can't find..."? If you use the default location, it should have the correct settings already even without adding any path to PATH or LD_LIBRARY_PATH.
$ find /lib -name "libopen-pal.so.0"
to spot the location. But I wonder about the version. The actual one seems to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using?
-- Reuti
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
Continue reading on narkive:
Loading...