On CentOS 6.6,
mvn clean compile -DskipTests -Pnative -Drequire.libwebhdfs -Drequire.openssl -Drequire.fuse -Drequire.test.libhadoop
fails as follows if libcurl-devel is not installed, although the build environment satisfies the requirements described in BUILDING.txt.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project hadoop-hdfs: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec dir="/home/sekikn/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/native" executable="cmake" failonerror="true">... @ 5:119 in /home/sekikn/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/antrun/build-main.xml
Ant error messages are as follows:
[exec] CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
[exec] Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
[exec] Call Stack (most recent call first):
[exec] /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
[exec] /usr/share/cmake/Modules/FindCURL.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
[exec] contrib/libwebhdfs/CMakeLists.txt:19 (find_package)
It should be listed in BUILDING.txt also.