You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build cprnc on a new machine that I have access to. This is the first time I'm trying to use the new cprnc package. I have been using a version of cprnc that is 10 years old for the last 10 years. I can get the old package to build, but it segfaults at runtime. I have worked around that in the past by statically building, but the new machine does not support static versions of all the required libraries, so I figured I'd try the latest version to see if I could build it dynamically and get it to work.
I think there are some problems with the README.md.
First, while the text file itself it fine, the thing that appears on the git project page has lots of formatting problems. Just look at the build instructions or the usage line.
Second, I think you are missing the "make" step in the build instructions. The last thing you have is "cmake ../" which does not build anything when I do it. If I do "make" after that, then I get the genf90 and cprnc binaries.
A separate problem I've run into is that if I load intel compilers and an intel build of netcdf and type "cmake ../", it finds the gnu compiler and tries to link that with the intel netcdf. The gnu compilers are there by default and I guess it looks for them first? I'm not that familiar with cmake, but is there a way for me to tell cmake to find the intel compilers and ignore the gnu compiler?
The final problem is when I build cprnc with the gnu compiler and gnu netcdf and then try to run it, I get
./cprnc: error while loading shared libraries: libhdf5.so.310: cannot open shared object file: No such file or directory
That library is there (/app/hdf4/1.14.2-gnu/lib) and I think that it should be found
But I'm not that familiar with cmake and the complexity of the configuration and build makes it more difficult to debug/fix. If I do ldd on cprnc, I see that the library is missing,
So I guess i need to figure out how to fix that. I realize this may be an issue in how the netcdf is installed on the machine, but I can't do much about that in the short term. What I can do is help make find hdf5. Any thoughts about how to get the build system to add /app//hdf5/1.14.2-gnu/lib for the hdf5 libs? I'm trying to spin up on the cprnc build system, will see if I figure it out.....
The text was updated successfully, but these errors were encountered:
Just a quick update. I managed to get cprnc to build by grabbing the old cprnc gnu Makefile. So I'm not going to worry about the problems with cmake in this implementation, I have a workaround.
I'm trying to build cprnc on a new machine that I have access to. This is the first time I'm trying to use the new cprnc package. I have been using a version of cprnc that is 10 years old for the last 10 years. I can get the old package to build, but it segfaults at runtime. I have worked around that in the past by statically building, but the new machine does not support static versions of all the required libraries, so I figured I'd try the latest version to see if I could build it dynamically and get it to work.
I think there are some problems with the README.md.
First, while the text file itself it fine, the thing that appears on the git project page has lots of formatting problems. Just look at the build instructions or the usage line.
Second, I think you are missing the "make" step in the build instructions. The last thing you have is "cmake ../" which does not build anything when I do it. If I do "make" after that, then I get the genf90 and cprnc binaries.
A separate problem I've run into is that if I load intel compilers and an intel build of netcdf and type "cmake ../", it finds the gnu compiler and tries to link that with the intel netcdf. The gnu compilers are there by default and I guess it looks for them first? I'm not that familiar with cmake, but is there a way for me to tell cmake to find the intel compilers and ignore the gnu compiler?
The final problem is when I build cprnc with the gnu compiler and gnu netcdf and then try to run it, I get
./cprnc: error while loading shared libraries: libhdf5.so.310: cannot open shared object file: No such file or directory
That library is there (/app/hdf4/1.14.2-gnu/lib) and I think that it should be found
But I'm not that familiar with cmake and the complexity of the configuration and build makes it more difficult to debug/fix. If I do ldd on cprnc, I see that the library is missing,
So I guess i need to figure out how to fix that. I realize this may be an issue in how the netcdf is installed on the machine, but I can't do much about that in the short term. What I can do is help make find hdf5. Any thoughts about how to get the build system to add /app//hdf5/1.14.2-gnu/lib for the hdf5 libs? I'm trying to spin up on the cprnc build system, will see if I figure it out.....
The text was updated successfully, but these errors were encountered: