Error while loading shared libraries
Added by Jule Ru over 4 years ago
Hello everyone,
I want to use CDO to convert .nc files to .grd file. I'm on Win 10, that's why I installed Cygwin, then switched to the folder the files are in with
cd c:/mypathtofiles
and used the command I found on Stackexchange to hopefully convert it:
cdo -f nc import_binary in.nc out.grd
I also tried it the other way around (so grd to nc) but it gives me an error every time:
error while loading shared libraries: cyggomp-1.dll: cannot open shared object file: No such file or directory
How I installed Cygwin/CDO:
- Double clicked on the exe and installed it in "C:\Program Files\cygwin64" - when a list of libraries (?) came up, I didn't pick anything because I didn't know what I'd need.
- I moved both the "cdo.exe" and the "cygeccodes.dll" file to a folder and added the path to it to Windows' PATH (environment variable).
- In Cygwin's console I switched to the folder with the "eccodes" file and unzipped it with "$ tar -xzf eccodes-2.9.0-Source.tar.gz"
- I created a new environment variable ("ECCODES_DEFINITION_PATH"), leading to the "definitions" folder within the just unzipped folder structure
- Afterwards I created the new bashrc file with "echo 'export ECCODES_DEFINITION_PATH=c:/mypath/eccodes-2.9.0-Source/definitions' >> .bashrc", which indeed created a ".bashrc" file in the "mypathtofiles" folder.
- I closed the console and opened a new one, then did what I wrote above.
What did I miss/why am I getting this error message?