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,
$ldd /usr/bin/apt-get (before zlib install)
$ldd /usr/bin/apt-get (after zlib install)