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

./gcclassic: error while loading shared libraries: libnetcdff.so.7: cannot open shared object file: No such file or directory #2651

Closed
dyblove opened this issue Dec 18, 2024 · 3 comments
Labels
category: Bug Something isn't working topic: Build Related to makefiles or the build sequence topic: User Environment Relating to libraries, containers, AMIs, etc.

Comments

@dyblove
Copy link

dyblove commented Dec 18, 2024

Your name

Yibo Dou

Your affiliation

PKU

What happened? What did you expect to happen?

Dear @yantosca, @ltmurray, When I executed the command "./gcclassic --dryrun | tee log.dryrun", I came across the following issue: "./gcclassic: error while loading shared libraries: libnetcdff.so.7: cannot open shared object file: No such file or directory". I am certain that I have successfully and accurately downloaded all the requisite packages as per the requirements on the website (https://geos-chem.readthedocs.io/en/latest/geos-chem-shared-docs/supplemental-guides/spack-guide.html#spackguide). I am perplexed as to how to solve this. Moreover, I suspect that this might be the cause of the problem I previously encountered (Program received signal SIGSEGV: Segmentation fault - invalid memory reference #2639). I have approximately 60G of memory, yet I am unable to complete even a one-day simulation. I think perhaps this is not attributed to insufficient memory.
image
image

What are the steps to reproduce the bug?

When I executed the command "./gcclassic --dryrun | tee log.dryrun", I came across the following issue: "./gcclassic: error while loading shared libraries: libnetcdff.so.7: cannot open shared object file: No such file or directory".

Please attach any relevant configuration and log files.

No response

What GEOS-Chem version were you using?

14.5.0

What environment were you running GEOS-Chem on?

Other (please explain below)

What compiler and version were you using?

GCC 12.3.0

Will you be addressing this bug yourself?

Yes, but I will need some help

In what configuration were you running GEOS-Chem?

GCClassic

What simulation were you running?

Full chemistry

As what resolution were you running GEOS-Chem?

2×2.5

What meterology fields did you use?

MERRA-2

Additional information

No response

@dyblove dyblove added the category: Bug Something isn't working label Dec 18, 2024
@yantosca
Copy link
Contributor

@dyblove: This error `libnetcdff.so.7: cannot open shared object file: No such file or directory" usually means that you are compiling GEOS-Chem with a different compiler than what the netCDF libraries have been compiled with. Either that or it cannot find the netCDF library itself.

@yantosca yantosca added topic: Build Related to makefiles or the build sequence topic: User Environment Relating to libraries, containers, AMIs, etc. labels Dec 18, 2024
@dyblove
Copy link
Author

dyblove commented Dec 18, 2024

@dyblove: This error `libnetcdff.so.7: cannot open shared object file: No such file or directory" usually means that you are compiling GEOS-Chem with a different compiler than what the netCDF libraries have been compiled with. Either that or it cannot find the netCDF library itself.

Thank you very much, the package was not found automatically, adding the path to the environment file solved the problem.

@yantosca
Copy link
Contributor

Great! I'll close this issue now @dyblove. Glad it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Something isn't working topic: Build Related to makefiles or the build sequence topic: User Environment Relating to libraries, containers, AMIs, etc.
Projects
None yet
Development

No branches or pull requests

2 participants