Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26758 Discussions

Problem in sudo apt-get after installing zlib-1.2.11 using Intel compilers: libimf.so cannot open shared object file

Shreeja_D_
Beginner
243 Views

Hi,

I have installed openmpi-3.0 with Intel compilers (v 17.0 from Intel Parallel Studio XE).

Then I am trying to install zlib-1.2.11 with mpicc. The configure command I use is $CC=/home/shreeja/build/openmpi-3.0.0-INTEL/bin/mpicc ./configure. Both "make check" and "make" worked fine. I had to do $ sudo make install  for access to /usr/local/.  All zlib libraries, includes are created successfully in /usr/local/

But afterwards, when I try doing $sudo apt-get update, I get this error: "apt-get: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory". This error, of course goes away when I "$sudo make uninstall" zlib. I am giving the outputs of ldd on apt-get before and after zlib installation. Also pasting my $PATH and $LD_LIBRARY_PATH variables if needed. I am on a freshly installed Ubuntu 16.04 distro.

What can I do to compile zlib using parallel Intel compilers without affecting other programs? I have been trying for a long time now and I'm not very conversant with shared/static libraries and linking etc at this moment (if at all that is the problem). I need this step to be correct so I can continue to install HDF5 and then NetCDF in parallel. 

Thanks for any help anyone can provide,

Shreeja

$ldd /usr/bin/apt-get (before zlib install)

linux-vdso.so.1 =>  (0x00007fffcd0f8000)
libapt-pkg.so.5.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0 (0x00007f01eee92000)
libapt-private.so.0.0 => /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0 (0x00007f01eec3f000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f01ee8bd000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f01ee6a7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f01ee2dd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f01ee0d9000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f01edebe000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f01edca4000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f01eda94000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f01ed872000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f01ed65a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f01ed351000)
/lib64/ld-linux-x86-64.so.2 (0x00007f01ef412000)
 

$ldd /usr/bin/apt-get (after zlib install)

linux-vdso.so.1 =>  (0x00007ffd70ffd000)
libapt-pkg.so.5.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0 (0x00007f75dd35b000)
libapt-private.so.0.0 => /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0 (0x00007f75dd108000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f75dcd86000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f75dcb70000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f75dc7a6000) 
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f75dc5a2000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f75dc387000)
libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f75dc167000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f75dbf57000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f75dbd35000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f75dbb1d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f75db814000)
/lib64/ld-linux-x86-64.so.2 (0x00007f75dd8db000)
libimf.so => /opt/intel/lib/intel64/libimf.so (0x00007f75db328000)
libsvml.so => /opt/intel/lib/intel64/libsvml.so (0x00007f75da412000)
libirng.so => /opt/intel/lib/intel64/libirng.so (0x00007f75da08b000)
libintlc.so.5 => /opt/intel/lib/intel64/libintlc.so.5 (0x00007f75d9e21000)
 
$LD_LIBRARY_PATH=/usr/local/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/lib/:/opt/intel/lib/intel64/:/usr/local/lib:/usr/lib/x86_64-linux-gnu/:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/mic/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/mic/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64:/opt/intel/compilers_and_libraries_2017.0.098/linux/tbb/lib/intel64/gcc4.7:/opt/intel/debugger_2017/iga/lib:/opt/intel/debugger_2017/libipt/intel64/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/daal/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.0.098/linux/daal/../tbb/lib/intel64_lin/gcc4.4
 
$PATH=/home/shreeja/build/netcdf/:/home/shreeja/build/openmpi-3.0.0-INTEL/bin:/opt/intel/impi/2017.0.098/intel64/bin:/opt/intel/compilers_and_libraries_2017.0.098/linux/bin/intel64/:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/bin/:/opt/intel/impi/2017.0.098/intel64/bin/:/home/shreeja/build/lammps-30Jul16/src:/home/shreeja/build/xcrysden-1.5.60-bin-shared:/home/shreeja/build/netcdf-4.4.1.1:/home/shreeja/.local/bin:/home/shreeja/build/:/usr/local/bin:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/bin:/opt/intel/compilers_and_libraries_2017.0.098/linux/bin/intel64:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/bin:/opt/intel/debugger_2017/gdb/intel64_mic/bin:/home/shreeja/bin:/home/shreeja/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
0 Kudos
0 Replies
Reply