Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netCDF/4.9.0-gompi-2022a is missing a dependency #16446

Closed
hrnagel opened this issue Oct 20, 2022 · 5 comments · Fixed by #16450
Closed

netCDF/4.9.0-gompi-2022a is missing a dependency #16446

hrnagel opened this issue Oct 20, 2022 · 5 comments · Fixed by #16450
Milestone

Comments

@hrnagel
Copy link

hrnagel commented Oct 20, 2022

Hi,

$ module load netCDF/4.9.0-gompi-2022a
$ ncgen -h
ncgen: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
$ module load bzip2/1.0.8-GCCcore-11.3.0
$ ncgen -h
Usage: ncgen [-1] [-3] [-4] [-5] [-6] [-7] [-b] [-d] [-D debuglevel] [-h] [-k kind ] [-l language=b|c|f77|java] [-M ] [-n] [-o outfile] [-P] [-x] [-N datasetname] [-L loglevel] [-H] [-W generate whole var upload] [file ... ]

Best regards,

Henrik

@hrnagel hrnagel changed the title netCDF/4.9.0-gompi-2022a is missing a dpendency netCDF/4.9.0-gompi-2022a is missing a dependency Oct 20, 2022
@hrnagel
Copy link
Author

hrnagel commented Oct 20, 2022

bzip2 probably comes from the CMake easyconfig file. CMake is included as a build dependency in the netCDF easyconfig file. ncgen can therefore be compiled, but not run afterwards when CMake is no longer loaded.

@branfosj
Copy link
Member

For 4.9.0:

ldd $EBROOTNETCDF/bin/ncgen | grep "not found"
        libbz2.so.1.0 => not found
        libbz2.so.1.0 => not found

@branfosj
Copy link
Member

I'm seeing the following extra in the log:

-- Found Bz2: headers at /rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/bzip2/1.0.8-GCCcore-11.3.0/include, libraries at /rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/bzip2/1.0.8-GCCcore-11.3.0/lib
--  library is /rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/bzip2/1.0.8-GCCcore-11.3.0/lib/libbz2.so
-- Found LibXml2: /rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/libxml2/2.9.13-GCCcore-11.3.0/lib/libxml2.so (found version "2.9.13")

@boegel
Copy link
Member

boegel commented Oct 20, 2022

We should also enhance the netCDF easyconfig with a sanity check command, we should have caught this:

$ ncgen -h
ncgen: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants