[mvapich-discuss] osu-microbenchmarks-3.6 install issues

Gerald Trout trout623 at yahoo.com
Wed Jul 25 10:47:09 EDT 2012


Thanks for the suggestion. Subsequently ran into few other errors about missing paths. 

Eventually downloading openmpi source and reinstalling it (as against previous yum install/reinstall) helped resolve the path issues and complete the installation. 

GT


________________________________
 From: Jonathan Perkins <perkinjo at cse.ohio-state.edu>
To: Gerald Trout <trout623 at yahoo.com> 
Cc: "mvapich-discuss at cse.ohio-state.edu" <mvapich-discuss at cse.ohio-state.edu> 
Sent: Tuesday, July 24, 2012 6:03 AM
Subject: Re: [mvapich-discuss] osu-microbenchmarks-3.6 install issues
 
On Tue, Jul 24, 2012 at 12:15:53AM -0700, Gerald Trout wrote:
> Hi, 
> 
> I am attempting to install osu-microbenchmarks-3.6 on Centos 5.8. I am
> stuck with the following failure. Would greatly appreciate suggestions
> on getting past this. 

Thanks for the report.  The rest of my reply is below the relevant
error.

> 
> Thank you, 
> 
> 
> 
> [root at dc1-poc-rack1-srv05 osu-micro-benchmarks-3.6]# ./configure CC=/usr/lib64/openmpi/1.4-gcc/bin/mpicc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables... 
> checking whether we are cross compiling... configure: error: in `/tmp/osu-micro-benchmarks-3.6':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> [root at dc1-poc-rack1-srv05 osu-micro-benchmarks-3.6]# 
> 
> [root at dc1-poc-rack1-srv05 osu-micro-benchmarks-3.6]# cat config.log

[...snip...]

> configure:2990: checking whether we are cross compiling
> configure:2998: /usr/lib64/openmpi/1.4-gcc/bin/mpicc -o conftest    conftest.c  >&5
> configure:3002: $? = 0
> configure:3009: ./conftest
> ./conftest: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
> configure:3013: $? = 127
> configure:3020: error: in `/tmp/osu-micro-benchmarks-3.6':
> configure:3022: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details

libmpi.so.0 is a library that OpenMPI needs to load at runtime.  This
library is not installed in one of your system paths and it appears that
the OpenMPI mpicc is not embedding an rpath into its created
executables.

You have a couple different options here.

1. Set LDFLAGS to include an rpath to the path of the OpenMPI lib
   directory.

2. Set LD_LIBRARY_PATH to include the path of the OpenMPI lib directory.

3. Setup /etc/ld.so.conf or /etc/ld.so.conf.d to look at the OpenMPI lib
   directory in addition to the other system paths.

I think the first option is best but the second option might be easiest
for you.

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20120725/b61eb11d/attachment.html


More information about the mvapich-discuss mailing list