Error during make install hdf5

Hi all,

I am facing an error during ‘make install’ of my hdf5, here i the error:

make install
Making install in src
make[1]: Entering directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/src’
make[2]: Entering directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/src’
/usr/bin/mkdir -p ‘/opt/opt_shared/hdf5-1.14.0/lib’
/bin/sh …/libtool --mode=install /usr/bin/install -c libhdf5.la ‘/opt/opt_shared/hdf5-1.14.0/lib’
libtool: install: /usr/bin/install -c .libs/libhdf5.so.310.0.0 /opt/opt_shared/hdf5-1.14.0/lib/libhdf5.so.310.0.0
libtool: install: (cd /opt/opt_shared/hdf5-1.14.0/lib && { ln -s -f libhdf5.so.310.0.0 libhdf5.so.310 || { rm -f libhdf5.so.310 && ln -s libhdf5.so.310.0.0 libhdf5.so.310; }; })
libtool: install: (cd /opt/opt_shared/hdf5-1.14.0/lib && { ln -s -f libhdf5.so.310.0.0 libhdf5.so || { rm -f libhdf5.so && ln -s libhdf5.so.310.0.0 libhdf5.so; }; })
libtool: install: /usr/bin/install -c .libs/libhdf5.lai /opt/opt_shared/hdf5-1.14.0/lib/libhdf5.la
libtool: install: /usr/bin/install -c .libs/libhdf5.a /opt/opt_shared/hdf5-1.14.0/lib/libhdf5.a
libtool: install: chmod 644 /opt/opt_shared/hdf5-1.14.0/lib/libhdf5.a
libtool: install: ranlib /opt/opt_shared/hdf5-1.14.0/lib/libhdf5.a
libtool: finish: PATH="/home/skasaei/.local/bin:/home/skasaei/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/skasaei/bin:/opt/opt_shared/openmpi-4.1.4/bin::/sbin" ldconfig -n /opt/opt_shared/hdf5-1.14.0/lib

Libraries have been installed in:
/opt/opt_shared/hdf5-1.14.0/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the ‘-LLIBDIR’
flag during linking and do at least one of the following:

  • add LIBDIR to the ‘LD_LIBRARY_PATH’ environment variable
    during execution
  • add LIBDIR to the ‘LD_RUN_PATH’ environment variable
    during linking
  • use the ‘-Wl,-rpath -Wl,LIBDIR’ linker flag
  • have your system administrator add LIBDIR to ‘/etc/ld.so.conf’

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

/usr/bin/mkdir -p ‘/opt/opt_shared/hdf5-1.14.0/include’
/usr/bin/install -c -m 644 hdf5.h H5api_adpt.h H5overflow.h H5pubconf.h H5public.h H5version.h H5Apublic.h H5ACpublic.h H5Cpublic.h H5Dpublic.h H5Epubgen.h H5Epublic.h H5ESpublic.h H5Fpublic.h H5FDpublic.h H5FDcore.h H5FDdirect.h H5FDfamily.h H5FDhdfs.h H5FDlog.h H5FDmirror.h H5FDmpi.h H5FDmpio.h H5FDmulti.h H5FDonion.h H5FDros3.h H5FDsec2.h H5FDsplitter.h H5FDstdio.h H5FDsubfiling/H5FDsubfiling.h H5FDsubfiling/H5FDioc.h H5FDwindows.h H5Gpublic.h H5Ipublic.h H5Lpublic.h H5Mpublic.h H5MMpublic.h H5Opublic.h H5Ppublic.h H5PLextern.h ‘/opt/opt_shared/hdf5-1.14.0/include’
/usr/bin/install -c -m 644 H5PLpublic.h H5Rpublic.h H5Spublic.h H5Tpublic.h H5VLconnector.h H5VLconnector_passthru.h H5VLnative.h H5VLpassthru.h H5VLpublic.h H5Zpublic.h H5ESdevelop.h H5FDdevelop.h H5Idevelop.h H5Ldevelop.h H5Tdevelop.h H5TSdevelop.h H5Zdevelop.h ‘/opt/opt_shared/hdf5-1.14.0/include’
/usr/bin/mkdir -p ‘/opt/opt_shared/hdf5-1.14.0/lib’
/usr/bin/install -c -m 644 libhdf5.settings ‘/opt/opt_shared/hdf5-1.14.0/lib’
make[2]: Leaving directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/src’
make[1]: Leaving directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/src’
Making install in test
make[1]: Entering directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/test’
make[2]: Entering directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/test’
make[2]: Nothing to be done for ‘install-exec-am’.
make[2]: Nothing to be done for ‘install-data-am’.
make[2]: Leaving directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/test’
make[1]: Leaving directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/test’
Making install in bin
make[1]: Entering directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/bin’
make[2]: Entering directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/bin’
/usr/bin/mkdir -p ‘/opt/opt_shared/hdf5-1.14.0/bin’
/usr/bin/install -c h5redeploy ‘/opt/opt_shared/hdf5-1.14.0/bin’
/usr/bin/install: ‘h5redeploy’ and ‘/opt/opt_shared/hdf5-1.14.0/bin/h5redeploy’ are the same file
make[2]: *** [Makefile:843: install-binSCRIPTS] Error 1
make[2]: Leaving directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/bin’
make[1]: *** [Makefile:1078: install-am] Error 2
make[1]: Leaving directory ‘/BIG_6_9/opt_shared/hdf5-1.14.0/bin’
make: *** [Makefile:729: install-recursive] Error 1

anyone has any idea why I have this error?

I appreciate any suggestions.

Common pratice today is to not build in-source. Create a build folder and execute the process from there.

Thanks, that worked.