MATLAB error while loading shared libraries (while my libraries directory exist)

4 ビュー (過去 30 日間)
Abdul Kadir Alhamid
Abdul Kadir Alhamid 2020 年 5 月 27 日
Hi there
I'm using MATLAB R2019b and Linux Ubuntu 18.04. I'm trying to run a model in MATLAB using gmt and netcdf (external packages). I got an error like this:
Error using gmtmask (line 59)
/home/abdul/issm-linux/ISSM/externalpackages/gmt/install/bin/gmt: error while loading shared libraries:
libnetcdf.so.15: cannot open shared object file: No such file or directory
Error in runme (line 22)
md.mask.ocean_levelset=gmtmask(md.mesh.lat,md.mesh.long);
While I have checked that libnetcdf.so.15 does exists in my path /home/abdul/issm-linux/ISSM//externalpackages/netcdf/install/lib and I have include it using addpath functions.
Does anyone know how to resolve this? Is it because the binary file gmt does not recognize the library path of libnetcdf.so.15? Or is it because MATLAB which doesn't recognize it? Should I edit the gmt file using binary editors? (I don't know if such is exist)
Thanks,
Abdul

回答 (0 件)

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by