# Unable to install hdf5 with cmake

**URL:** <https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469>\
**Category:** HDF5 Library\
**Created:** [September 2, 2020, 12:37pm UTC](https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469 "2020-09-02T12:37:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![suryaprakash.sahu](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@suryaprakash.sahu](https://forum.hdfgroup.org/u/suryaprakash.sahu)\
**Post date:** [September 2, 2020, 12:37pm UTC](https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469/1 "2020-09-02T12:37:41Z")

</div>

I am following [this link](https://portal.hdfgroup.org/display/support/Building+HDF5+with+CMake#BuildingHDF5withCMake-precond) for installing hdf5 with cmake. I am following the instruction I’ve set  
set (ADD\_BUILD\_OPTIONS “${ADD\_BUILD\_OPTIONS} -DHDF5\_BUILD\_CPP\_LIB:BOOL=OFF”)  
set (ADD\_BUILD\_OPTIONS “${ADD\_BUILD\_OPTIONS} -DHDF5\_BUILD\_JAVA:BOOL=OFF”)  
set (ADD\_BUILD\_OPTIONS “${ADD\_BUILD\_OPTIONS} -DHDF5\_ENABLE\_THREADSAFE:BOOL=OFF”)

My dockerfile content for hdf5 installation is  
RUN wget -q [http://nl.alpinelinux.org/alpine/v3.12/main/x86\_64/cmake-3.17.2-r0.apk](http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/cmake-3.17.2-r0.apk) &&   
apk add cmake-3.17.2-r0.apk

```
RUN echo $(apk info cmake)

COPY ./CMake-hdf5-1.10.6 /root/CMake-hdf5-1.10.6

ENV HDF5_VERSION=1.10.6

RUN cd /root/CMake-hdf5-${HDF5_VERSION} && \
    ./build-unix.sh

```

I am getting this error

> Run dashboard with model Experimental  
> Source directory: /root/CMake-hdf5-1.10.6/hdf5-1.10.6  
> Build directory: /root/CMake-hdf5-1.10.6/build  
> Group: Experimental  
> Reading ctest configuration file: /root/CMake-hdf5-1.10.6/hdf5-1.10.6/CTestConfig.cmake  
> Site: e59e76451cb3  
> Build name: Linux-3.10.0-1062.el7.x86\_64-x86\_64  
> Use Experimental tag: 20200902-1017  
> Configure project  
> Each . represents 1024 bytes of output  
> . Size of output: 0K  
> Error(s) when configuring the project  
> Build project  
> Each symbol represents 1024 bytes of output.  
> . Size of output: 0K  
> 0 Compiler errors  
> 1 Compiler warnings  
> Error(s) when building project

Please help on this.

---

<div class="post-metadata">

**Author:** ![bljones](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@bljones](https://forum.hdfgroup.org/u/bljones)\
**Post date:** [September 2, 2020, 2:08pm UTC](https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469/2 "2020-09-02T14:08:49Z")

</div>

Hello,

Can you edit the build-unix.sh script and change the “-V” to “-VV”, and then try building again?  
That will output more information, and hopefully give more clues as to what the issue is.

Thanks!  
-Barbara

---

<div class="post-metadata">

**Author:** ![suryaprakash.sahu](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@suryaprakash.sahu](https://forum.hdfgroup.org/u/suryaprakash.sahu)\
**Post date:** [September 3, 2020, 5:08pm UTC](https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469/3 "2020-09-03T17:08:23Z")

</div>

- Extra verbosity turned on  
Reading Script: /root/CMake-hdf5-1.10.6/HDF5config.cmake,BUILD\_GENERATOR=Unix  
– Dashboard script uname output: Linux-3.10.0-1062.el7.x86\_64-x86\_64

– Dashboard script configuration:  
CTEST\_SITE=[62ed5ac4a624]  
CTEST\_BUILD\_NAME=[Linux-3.10.0-1062.el7.x86\_64-x86\_64]  
CTEST\_SOURCE\_DIRECTORY=[/root/CMake-hdf5-1.10.6/hdf5-1.10.6]  
CTEST\_BINARY\_DIRECTORY=[/root/CMake-hdf5-1.10.6/build]  
CTEST\_CMAKE\_GENERATOR=[Unix Makefiles]  
CTEST\_CONFIGURATION\_TYPE=[Release]  
CTEST\_GIT\_COMMAND=[]  
CTEST\_CHECKOUT\_COMMAND=[]  
CTEST\_CONFIGURE\_COMMAND=["/usr/bin/cmake" -C “/root/CMake-hdf5-1.10.6/hdf5-1.10.6/config/cmake/cacheinit.cmake” -DCMAKE\_BUILD\_TYPE:STRING=Release “““;-DHDF5\_BUILD\_CPP\_LIB:BOOL=OFF”;-DHDF5\_BUILD\_JAVA:BOOL=OFF”;-DHDF5\_ENABLE\_THREADSAFE:BOOL=OFF” -DHDF5\_BUILD\_FORTRAN:BOOL=OFF -DHDF5\_BUILD\_JAVA:BOOL=OFF -DCMAKE\_INSTALL\_PREFIX:PATH=/root/CMake-hdf5-1.10.6/HDF\_Group/HDF5/1.10.6 -DHDF5\_ALLOW\_EXTERNAL\_SUPPORT:STRING=TGZ -DTGZPATH:PATH=/root/CMake-hdf5-1.10.6 -DHDF5\_PACKAGE\_EXTLIBS:BOOL=ON -DSITE:STRING=62ed5ac4a624 -DBUILDNAME:STRING=Linux-3.10.0-1062.el7.x86\_64-x86\_64 -DCTEST\_USE\_LAUNCHERS:BOOL=ON “-GUnix Makefiles” “” “” “/root/CMake-hdf5-1.10.6/hdf5-1.10.6”]  
CTEST\_SCRIPT\_DIRECTORY=[/root/CMake-hdf5-1.10.6]  
CTEST\_USE\_LAUNCHERS=[1]  
LOCAL\_SKIP\_TEST=[TRUE]

SetCTestConfiguration:SourceDirectory:/root/CMake-hdf5-1.10.6/hdf5-1.10.6  
SetCTestConfiguration:BuildDirectory:/root/CMake-hdf5-1.10.6/build  
Run dashboard with model Experimental  
Source directory: /root/CMake-hdf5-1.10.6/hdf5-1.10.6  
Build directory: /root/CMake-hdf5-1.10.6/build  
Group: Experimental  
Reading ctest configuration file: /root/CMake-hdf5-1.10.6/hdf5-1.10.6/CTestConfig.cmake  
SetCTestConfigurationFromCMakeVariable:NightlyStartTime:CTEST\_NIGHTLY\_START\_TIME  
SetCTestConfiguration:NightlyStartTime:18:00:00 CST  
SetCTestConfigurationFromCMakeVariable:Site:CTEST\_SITE  
SetCTestConfiguration:Site:62ed5ac4a624  
SetCTestConfigurationFromCMakeVariable:BuildName:CTEST\_BUILD\_NAME  
SetCTestConfiguration:BuildName:Linux-3.10.0-1062.el7.x86\_64-x86\_64  
Site: 62ed5ac4a624  
Build name: Linux-3.10.0-1062.el7.x86\_64-x86\_64  
Use Experimental tag: 20200903-0952  
Add coverage exclude regular expressions.  
SetCTestConfiguration:CMakeCommand:/usr/bin/cmake  
SetCTestConfiguration:BuildDirectory:/root/CMake-hdf5-1.10.6/build  
SetCTestConfiguration:SourceDirectory:/root/CMake-hdf5-1.10.6/hdf5-1.10.6  
SetCTestConfiguration:ConfigureCommand:"/usr/bin/cmake" -C “/root/CMake-hdf5-1.10.6/hdf5-1.10.6/config/cmake/cacheinit.cmake” -DCMAKE\_BUILD\_TYPE:STRING=Release “““;-DHDF5\_BUILD\_CPP\_LIB:BOOL=OFF”;-DHDF5\_BUILD\_JAVA:BOOL=OFF”;-DHDF5\_ENABLE\_THREADSAFE:BOOL=OFF” -DHDF5\_BUILD\_FORTRAN:BOOL=OFF -DHDF5\_BUILD\_JAVA:BOOL=OFF -DCMAKE\_INSTALL\_PREFIX:PATH=/root/CMake-hdf5-1.10.6/HDF\_Group/HDF5/1.10.6 -DHDF5\_ALLOW\_EXTERNAL\_SUPPORT:STRING=TGZ -DTGZPATH:PATH=/root/CMake-hdf5-1.10.6 -DHDF5\_PACKAGE\_EXTLIBS:BOOL=ON -DSITE:STRING=62ed5ac4a624 -DBUILDNAME:STRING=Linux-3.10.0-1062.el7.x86\_64-x86\_64 -DCTEST\_USE\_LAUNCHERS:BOOL=ON “-GUnix Makefiles” “” “” “/root/CMake-hdf5-1.10.6/hdf5-1.10.6”  
Configure project  
Configure with command: “/usr/bin/cmake” -C “/root/CMake-hdf5-1.10.6/hdf5-1.10.6/config/cmake/cacheinit.cmake” -DCMAKE\_BUILD\_TYPE:STRING=Release “““;-DHDF5\_BUILD\_CPP\_LIB:BOOL=OFF”;-DHDF5\_BUILD\_JAVA:BOOL=OFF”;-DHDF5\_ENABLE\_THREADSAFE:BOOL=OFF” -DHDF5\_BUILD\_FORTRAN:BOOL=OFF -DHDF5\_BUILD\_JAVA:BOOL=OFF -DCMAKE\_INSTALL\_PREFIX:PATH=/root/CMake-hdf5-1.10.6/HDF\_Group/HDF5/1.10.6 -DHDF5\_ALLOW\_EXTERNAL\_SUPPORT:STRING=TGZ -DTGZPATH:PATH=/root/CMake-hdf5-1.10.6 -DHDF5\_PACKAGE\_EXTLIBS:BOOL=ON -DSITE:STRING=62ed5ac4a624 -DBUILDNAME:STRING=Linux-3.10.0-1062.el7.x86\_64-x86\_64 -DCTEST\_USE\_LAUNCHERS:BOOL=ON “-GUnix Makefiles” “” “” “/root/CMake-hdf5-1.10.6/hdf5-1.10.6”  
Run command: “/usr/bin/cmake” “-C” “/root/CMake-hdf5-1.10.6/hdf5-1.10.6/config/cmake/cacheinit.cmake” “-DCMAKE\_BUILD\_TYPE:STRING=Release” ““““;-DHDF5\_BUILD\_CPP\_LIB:BOOL=OFF”;-DHDF5\_BUILD\_JAVA:BOOL=OFF”;-DHDF5\_ENABLE\_THREADSAFE:BOOL=OFF”” “-DHDF5\_BUILD\_FORTRAN:BOOL=OFF” “-DHDF5\_BUILD\_JAVA:BOOL=OFF” “-DCMAKE\_INSTALL\_PREFIX:PATH=/root/CMake-hdf5-1.10.6/HDF\_Group/HDF5/1.10.6” “-DHDF5\_ALLOW\_EXTERNAL\_SUPPORT:STRING=TGZ” “-DTGZPATH:PATH=/root/CMake-hdf5-1.10.6” “-DHDF5\_PACKAGE\_EXTLIBS:BOOL=ON” “-DSITE:STRING=62ed5ac4a624” “-DBUILDNAME:STRING=Linux-3.10.0-1062.el7.x86\_64-x86\_64” “-DCTEST\_USE\_LAUNCHERS:BOOL=ON” “-GUnix Makefiles” “” “” “/root/CMake-hdf5-1.10.6/hdf5-1.10.6”  
loading initial cache file /root/CMake-hdf5-1.10.6/hdf5-1.10.6/config/cmake/cacheinit.cmake  
CMake Error: CMake was unable to find a build program corresponding to “Unix Makefiles”. CMAKE\_MAKE\_PROGRAM is not set. You probably need to select a different build tool.  
CMake Error: CMAKE\_C\_COMPILER not set, after EnableLanguage  
– Configuring incomplete, errors occurred!  
See also “/root/CMake-hdf5-1.10.6/build/CMakeFiles/CMakeOutput.log”.  
CMake Error: CTEST\_USE\_LAUNCHERS is enabled, but the RULE\_LAUNCH\_COMPILE global property is not defined.  
Did you forget to include(CTest) in the toplevel CMakeLists.txt ?  
Command exited with the value: 1  
Error(s) when configuring the project  
SetCTestConfiguration:BuildDirectory:/root/CMake-hdf5-1.10.6/build  
SetCTestConfiguration:SourceDirectory:/root/CMake-hdf5-1.10.6/hdf5-1.10.6  
SetMakeCommand:/usr/bin/cmake --build . --config “Release” – -j2  
SetCTestConfiguration:MakeCommand:/usr/bin/cmake --build . --config “Release” – -j2  
SetCTestConfiguration:UseLaunchers:1  
Build project  
MakeCommand:/usr/bin/cmake --build . --config “Release” – -j2  
Run command: “/usr/bin/cmake” “–build” “.” “–config” “Release” “–” “-j2”  
No such file or directory  
CMake Error: Generator: execution of make failed. Make command was: -j2 &&  
Command exited with the value: 1  
MakeCommand:/usr/bin/cmake --build . --config “Release” – -j2  
0 Compiler errors  
1 Compiler warnings  
Error(s) when building project  
The command ‘/bin/sh -c cd /root/CMake-hdf5-${HDF5\_VERSION} && ./build-unix.sh’ returned a non-zero code: 255

---

<div class="post-metadata">

**Author:** ![mike.jackson](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/mike.jackson/32/1734_2.png) [@mike.jackson](https://forum.hdfgroup.org/u/mike.jackson)\
**Post date:** [September 3, 2020, 6:47pm UTC](https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469/4 "2020-09-03T18:47:13Z")

</div>

Looks like you need to install “make” (usually the “dev-tools” group from your package manager).

---

<div class="post-metadata">

**Author:** ![suryaprakash.sahu](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@suryaprakash.sahu](https://forum.hdfgroup.org/u/suryaprakash.sahu)\
**Post date:** [September 4, 2020, 6:23am UTC](https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469/5 "2020-09-04T06:23:43Z")

</div>

According to [the official site](https://portal.hdfgroup.org/display/support/Building+HDF5+with+CMake#BuildingHDF5withCMake-precond), it talks about cmake and I have installed it.

```
RUN wget -q http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/cmake-3.17.2-r0.apk && \
    apk add cmake-3.17.2-r0.apk

```

Do I need ‘make’ also? There is no mention of it !?

---

<div class="post-metadata">

**Author:** ![mike.jackson](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/mike.jackson/32/1734_2.png) [@mike.jackson](https://forum.hdfgroup.org/u/mike.jackson)\
**Post date:** [September 8, 2020, 2:00am UTC](https://forum.hdfgroup.org/t/unable-to-install-hdf5-with-cmake/7469/6 "2020-09-08T02:00:02Z")

</div>

Yes. You will also need “make”. Not sure what package that is part of on a linux machine but maybe something like “dev-essentials” or “gcc-7” or something like that.
