libnetcdf.so.7:No such file or directory even if it has existed [closed]

I am trying to install HEREMS following the guide(https://earth.bsc.es/gitlab/es/hermesv3_gr/-/wikis/user_guide_how_to_install_conda), which has a dependency on ESMF. After installing ESMF via Conda, I encounter the error that it can’t find libnetcdff.so.7 when I attempting to run HEREMS

However, I have verified that the file libnetcdff.so.7 is present in my lib directory

Despite this, when I use ldd on libesmf_fullylinked.so, the libraries are still reported as “not found,” even though libnetcdf.so.18 and libnetcdff.so.7 are indeed present in my lib directory.

following is the bug report:

when I run HERMES with this command:

hermesv3_gr -c '/public/home/students2/mxy/HEREMES/hermesv3_gr-master/HERMES_IN/conf/hermes.conf'

It tells:

File "/public/home/students2/mxy/conda/envs/new_env/lib/python3.8/site-packages/ESMF/interface/loadESMF.py", line 127, in <module>
    _ESMF = ct.CDLL(os.path.join(libsdir,'libesmf_fullylinked.so'),
  File "/public/home/students2/mxy/conda/envs/new_env/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libnetcdff.so.7: cannot open shared object file: No such file or directory

when I check the l libesmf_fullylinked.so

ldd $CONDA_PREFIX/lib/libesmf_fullylinked.so

    linux-vdso.so.1 =>  (0x00007ffd275c7000)
    libmpifort.so.12 => /public/home/students2/mxy/conda/envs/new_env/lib/./libmpifort.so.12 (0x00002b88cbe93000)
    librt.so.1 => /lib64/librt.so.1 (0x00002b88cd905000)
    libgfortran.so.4 => /public/home/students2/mxy/conda/envs/new_env/lib/./libgfortran.so.4 (0x00002b88cbf01000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00002b88cdb0d000)
    libnetcdff.so.7 => not found
    libnetcdf.so.18 => not found
    libmpicxx.so.12 => /public/home/students2/mxy/conda/envs/new_env/lib/./libmpicxx.so.12 (0x00002b88cc031000)
    libmpi.so.12 => /public/home/students2/mxy/conda/envs/new_env/lib/./libmpi.so.12 (0x00002b88cdd11000)
    libstdc++.so.6 => /public/home/students2/mxy/conda/envs/new_env/lib/./libstdc++.so.6 (0x00002b88ce036000)
    libm.so.6 => /lib64/libm.so.6 (0x00002b88ce1aa000)
    libgomp.so.1 => /public/home/students2/mxy/conda/envs/new_env/lib/./libgomp.so.1 (0x00002b88ce4ac000)
    libgcc_s.so.1 => /public/home/students2/mxy/conda/envs/new_env/lib/./libgcc_s.so.1 (0x00002b88cc051000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b88ce4f0000)
    libc.so.6 => /lib64/libc.so.6 (0x00002b88ce70c000)
    libquadmath.so.0 => /public/home/students2/mxy/conda/envs/new_env/lib/././libquadmath.so.0 (0x00002b88cead9000)
    /lib64/ld-linux-x86-64.so.2 (0x00002b88cbe6f000)

My libs directory:

ls /public/home/students2/mxy/conda/envs/new_env/lib/libnetcdff*

/public/home/students2/mxy/conda/envs/new_env/lib/libnetcdff.settings
    /public/home/students2/mxy/conda/envs/new_env/lib/libnetcdff.so
    /public/home/students2/mxy/conda/envs/new_env/lib/libnetcdff.so.7
    /public/home/students2/mxy/conda/envs/new_env/lib/libnetcdff.so.7.0

Here are the steps I have tried to resolve the issue:

Editing the ESMF make file to adjust library paths.
Modifying environment variables such as LD_LIBRARY_PATH and ESMF_NETCDF_LIBPATH in .bashrc.

export LD_LIBRARY_PATH=/public/home/students2/mxy/conda/envs/new_env/lib:$LD_LIBRARY_PATH

Reinstalling both ESMF and NetCDF multiple times.(from https://anaconda.org/conda-forge/conda-package-handling/files)
None of these actions have resolved the issue.

Thank you for any assistance you can provide!

New contributor

Shinra Kanzaki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

5

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật