- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello every one,
I am very new to Ubuntu and WRF Chem. Now i am installing prep_chem and this error has been occurred.
./prep_chem_sources_radm_wrf_fim_.exe: error while loading shared libraries: libhdf5_fortran.so.300: cannot open shared object file: no such file or directory
i already installed HDF5 Fortran.
But how do i solve this error.
please see this installad HDF5Fortran
phd_odbaatar@Odbaatar:~$ find / -name libhdf5_fortran.so\* 2>/dev/null
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_fortran.so
/home/phd_odbaatar/miniconda3/pkgs/hdf5-1.14.6-mpi_mpich_h02efad0_4/lib/libhdf5_fortran.so.310
/home/phd_odbaatar/miniconda3/pkgs/hdf5-1.14.6-mpi_mpich_h02efad0_4/lib/libhdf5_fortran.so
/home/phd_odbaatar/miniconda3/envs/ncl-env/lib/libhdf5_fortran.so.310
/home/phd_odbaatar/miniconda3/envs/ncl-env/lib/libhdf5_fortran.so
/home/phd_odbaatar/Models/WRF_TUTORIAL/Downloads/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so
/home/phd_odbaatar/Models/WRF_TUTORIAL/Downloads/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so.300
/home/phd_odbaatar/Models/WRF_TUTORIAL/Libs/grib2/lib/libhdf5_fortran.so
/home/phd_odbaatar/Models/WRF_TUTORIAL/Libs/grib2/lib/libhdf5_fortran.so.300
/home/phd_odbaatar/Models/WRF-CHEM_TUTORIAL/Downloads/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so.300.0.2
/home/phd_odbaatar/Models/WRF-CHEM_TUTORIAL/Downloads/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so.300.0.2T
/home/phd_odbaatar/Models/WRF-CHEM_TUTORIAL/Downloads/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so
/home/phd_odbaatar/Models/WRF-CHEM_TUTORIAL/Downloads/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so.300
/home/phd_odbaatar/Models/WRF-CHEM_TUTORIAL/Libs/grib2/lib/libhdf5_fortran.so.300.0.2
/home/phd_odbaatar/Models/WRF-CHEM_TUTORIAL/Libs/grib2/lib/libhdf5_fortran.so
/home/phd_odbaatar/Models/WRF-CHEM_TUTORIAL/Libs/grib2/lib/libhdf5_fortran.so.300
/home/phd_odbaatar/app/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so
/home/phd_odbaatar/app/hdf5-1.13.2/fortran/src/.libs/libhdf5_fortran.so.300
/home/phd_odbaatar/install/hdf5/lib/libhdf5_fortran.so
/home/phd_odbaatar/install/hdf5/lib/libhdf5_fortran.so.300
phd_odbaatar@Odbaatar:~$
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should set the LD_LIBRARY_PATH variable to include the path /home/phd_odbaatar/install/hdf5/lib/. This path is used to find the shared objects. You will probably want to extend the existing value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
very thank you for your reply. I changed the directory
export LD_LIBRARY_PATH=/home/phd_odbaatar/Models/WRF_TUTORIAL/Libs/grib2/lib/:$LD_LIBRARY_PATH
but its not work. Where is my error? do you have any idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you run the ldd program:
> export LD_LIBRARY_PATH=... (as above)
> ldd ./prep_chem_sources_radm_wrf_fim_.exe
It may be that there are other libraries that are missing. The ldd program should list all that are needed and where they are coming from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did according to your instructions
phd_odbaatar@Odbaatar:~/Models/WRF-CHEM_TUTORIAL/prep_chem/PREP-CHEM-SRC-1.5/bin$ export LD_LIBRARY_PATH=/home/phd_odbaatar/Models/WRF_TUTORIAL/Libs/grib2/lib/:$LD_LIBRARY_PATH
phd_odbaatar@Odbaatar:~/Models/WRF-CHEM_TUTORIAL/prep_chem/PREP-CHEM-SRC-1.5/bin$ ldd ./prep_chem_sources_RADM_WRF_FIM_.exe
linux-vdso.so.1 (0x00007ffd015fd000)
libnetcdf.so.19 => /lib/x86_64-linux-gnu/libnetcdf.so.19 (0x0000731da6015000)
libhdf5_fortran.so.300 => not found
libgfortran.so.5 => /lib/x86_64-linux-gnu/libgfortran.so.5 (0x0000731da5c00000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x0000731dae9f0000)
libmvec.so.1 => /lib/x86_64-linux-gnu/libmvec.so.1 (0x0000731da5b07000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x0000731dae9c0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000731da5800000)
libhdf5_serial_hl.so.100 => /lib/x86_64-linux-gnu/libhdf5_serial_hl.so.100 (0x0000731dae99b000)
libhdf5_serial.so.103 => /lib/x86_64-linux-gnu/libhdf5_serial.so.103 (0x0000731da5400000)
libcurl-gnutls.so.4 => /lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x0000731da5f5a000)
libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x0000731da521e000)
/lib64/ld-linux-x86-64.so.2 (0x0000731daeaec000)
libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x0000731da4c00000)
libcurl.so.4 => /lib/x86_64-linux-gnu/libcurl.so.4 (0x0000731da5a46000)
libsz.so.2 => /lib/x86_64-linux-gnu/libsz.so.2 (0x0000731dae994000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x0000731dae978000)
libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x0000731dae94d000)
libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x0000731da5f38000)
librtmp.so.1 => /lib/x86_64-linux-gnu/librtmp.so.1 (0x0000731dae92d000)
libssh.so.4 => /lib/x86_64-linux-gnu/libssh.so.4 (0x0000731da578f000)
libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x0000731da5f24000)
libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x0000731da51c9000)
libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x0000731da4a06000)
libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x0000731da5175000)
libldap.so.2 => /lib/x86_64-linux-gnu/libldap.so.2 (0x0000731da5117000)
liblber.so.2 => /lib/x86_64-linux-gnu/liblber.so.2 (0x0000731da5a36000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x0000731da494c000)
libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x0000731da5a28000)
libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x0000731da4600000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x0000731da491a000)
libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x0000731da4870000)
libaec.so.0 => /lib/x86_64-linux-gnu/libaec.so.0 (0x0000731da5a1f000)
libunistring.so.5 => /lib/x86_64-linux-gnu/libunistring.so.5 (0x0000731da4453000)
libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x0000731da4828000)
libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x0000731da43cf000)
libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x0000731da422b000)
libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x0000731da5779000)
libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x0000731da4162000)
libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x0000731da4136000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x0000731da5a17000)
libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x0000731da481b000)
libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x0000731da411c000)
libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x0000731da40f9000)
libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x0000731da2200000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x0000731da1e00000)
libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x0000731da480f000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x0000731da40f2000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x0000731da40df000)
phd_odbaatar@Odbaatar:~/Models/WRF-CHEM_TUTORIAL/prep_chem/PREP-CHEM-SRC-1.5/bin$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is still the same library that causes the trouble:
libhdf5_fortran.so.300 => not found
but the path that you added shows up in none of the output lines. Are you sure you have used the correct path name?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Me too thought that path maybe wrong. But how do i modify it. i cant still modify it.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page