Weiming-Hu / AnalogsEnsemble

The C++ and R packages for parallel ensemble forecasts using Analog Ensemble
https://weiming-hu.github.io/AnalogsEnsemble/
MIT License
18 stars 5 forks source link

gribConverter Error During Install on Linux #73

Closed map579 closed 4 years ago

map579 commented 4 years ago

While following the directions to install gribConverter on Ubuntu (18.04.3) in an Oracle VM VirtualBox, I received an error stating that it "Could NOT find NetCDF (missing: NETCDF_LIBRARIES NETCDF_INCLUDES)".

To get this bug, I followed the instructions of changing the directory to AnalogsEnsemble/build and ran "cmake -DUBILD_GRIBCONVERTER=ON .." The attached image shows this error I received:

2020-02-01 07_53_24-UIMachineViewNormalClassWindow

map@map-VirtualBox:~/AnalogsEnsemble/build$ cmake -DBUILD_GRIBCONVERTER=ON .. You are building version 3.7.1 -- CMAKE_INSTALL_RPATH: /home/map/AnalogsEnsemble/dependency/install/lib/;/home/map/AnalogsEnse mble/output/lib -- Remove system root when GNU is used. -- CMAKE_BUILD_TYPE is Release -- C++ compiler options are: -O3 -DNDEBUG -s -w -- Found OpenMP_C: -fopenmp -- Found OpenMP_CXX: -fopenmp -- Found OpenMP: TRUE
-- Using OpenMP -fopenmp -- Could NOT find NetCDF (missing: NETCDF_LIBRARIES NETCDF_INCLUDES) -- netCDF is not found or does not meet the requirement. Try to build it. -- Or please specify the variable CMAKE_PREFIX_PATH which contains /bin, /lib, and /include. CMake Error at /usr/share/cmake- 3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.10/Modules/FindCURL.cmake:48 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists_netCDF.txt:74 (find_package) CMakeLists.txt:171 (include)

Weiming-Hu commented 4 years ago

Hi Mark,

Looks like the cmake is trying to build netcdf but fail to find it's requirement. I would suggest you just install netcdf with apt get install and try again.

On Sat, Feb 1, 2020, 07:54 map579 notifications@github.com wrote:

While following the directions to install gribConverter on Ubuntu (18.04.3) in an Oracle VM VirtualBox, I received an error stating that it "Could NOT find NetCDF (missing: NETCDF_LIBRARIES NETCDF_INCLUDES)".

To get this bug, I followed the instructions of changing the directory to AnalogsEnsemble/build and ran "cmake -DUBILD_GRIBCONVERTER=ON .." The attached image shows this error I received:

[image: 2020-02-01 07_53_24-UIMachineViewNormalClassWindow] https://user-images.githubusercontent.com/43961060/73592402-09fdd700-44c8-11ea-84cc-e99eee2f7f85.jpg

map@map-VirtualBox:~/AnalogsEnsemble/build$ cmake [image: 2020-02-01 07_53_24-UIMachineViewNormalClassWindow] https://user-images.githubusercontent.com/43961060/73592400-fce0e800-44c7-11ea-81e8-248509ef1ced.jpg -DBUILD_GRIBCONVERTER=ON .. You are building version 3.7.1 -- CMAKE_INSTALL_RPATH: /home/map/AnalogsEnsemble/dependency/install/lib/;/home/map/AnalogsEnse mble/output/lib -- Remove system root when GNU is used. -- CMAKE_BUILD_TYPE is Release -- C++ compiler options are: -O3 -DNDEBUG -s -w -- Found OpenMP_C: -fopenmp -- Found OpenMP_CXX: -fopenmp -- Found OpenMP: TRUE -- Using OpenMP -fopenmp -- Could NOT find NetCDF (missing: NETCDF_LIBRARIES NETCDF_INCLUDES) -- netCDF is not found or does not meet the requirement. Try to build it. -- Or please specify the variable CMAKE_PREFIX_PATH which contains /bin, /lib, and /include. CMake Error at /usr/share/cmake- 3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.10/Modules/FindCURL.cmake:48 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists_netCDF.txt:74 (find_package) CMakeLists.txt:171 (include)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Weiming-Hu/AnalogsEnsemble/issues/73?email_source=notifications&email_token=AD5JDWWX5D5HSSMVGNWLL73RAVWIPA5CNFSM4KOS7PT2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKKTDAA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5JDWV4LJMEEXGVOONVYFTRAVWIPANCNFSM4KOS7PTQ .

Weiming-Hu commented 4 years ago

After the dependencies (NetCDF, gFortran from eccodes) are installed, issues were resolved. Closing.