MATLAB.jl icon indicating copy to clipboard operation
MATLAB.jl copied to clipboard

conflict of netcdf library

Open JianghuiDu opened this issue 5 years ago • 5 comments

When using MATLAB the netcdf library is pointed to netcdf.dll in the MATLAB installation folder and if I call NCDatasets it now reports

error compiling nc_open: could not load library "C:\Users\Jianghui\.julia\conda\3\Library\bin\netcdf.DLL"
The specified module could not be found.

How could I redirect the library?

JianghuiDu avatar Dec 02 '19 15:12 JianghuiDu

I have the same problem when I use the MATLAB package on Windows server 2016. For macOS and Linux it works fine.

I have asked a question on discourse but did not get any answer that solved my problem: https://discourse.julialang.org/t/netcdf-dll-library-not-found-on-windows-server-2016/46072?u=josimar

josimarsilva avatar Sep 10 '20 15:09 josimarsilva

What's the exact issue? The library cannot be opened?

musm avatar Sep 10 '20 16:09 musm

The exact issue is that I can't have MATLAB and NetCDF packages on the same environment. I fixed the link above to the correct problem. Could you take a look? Thanks!

josimarsilva avatar Sep 10 '20 17:09 josimarsilva

This is tricky since NetCDF is using conda to load things and conda is just correctly loading and referencing libraries which somehow ends up clashing with the ones that MATLAB uses. The best thing we can push for is for NetCDF to migrate to jll's, which seems blocked(?) by HDF5.jl also having issues migrating to jll

musm avatar Sep 10 '20 22:09 musm

Is it even possible to do a manual load/change of directory?

JianghuiDu avatar Sep 11 '20 07:09 JianghuiDu