我尝试在笔记本电脑上构建hadoop源代码(Windows 7),Maven构建作业遇到错误。详细信息如下:
[exec] CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/FindPa
ckageHandleStandardArgs.cmake:148 (message):
[exec] Could NOT fi-- Configuring incomplete, errors occurred!
[exec] See also "C:/cygwin64/home/jding27/hadoop-2.7.1-src/hadoop-common-pr
oject/hadoop-cond ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
[exec] Call Stack (most recent call first):
[exec] C:/Program Files/CMake/share/cmake-3.6mmon/target/native/CMakeFile
s/CMakeOutput.log".
[exec] /Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MES
SAGE)
[exec] C:/Program Files/CMake/share/cmake-3.6/Modules/FindZLIB.cmake:124
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
[exec] CMakeLists.txt:107 (find_package)
[exec]
[exec]
[INFO] ------------------------------------------------------------------------
我已经在下面配置了Windows系统环境变量: ZLIB_INCLUDE_DIR = C:\ zlib128 \包括
ZLIB_LIBRARY = C:\ zlib128 \ lib中\ zdll.lib
答案 0 :(得分:1)
这些错误不是指环境变量,而是指无法确定的CMake变量。如果ZLib
不在Program Files
,您必须告诉CMake在ZLIB_ROOT
找到它的位置。呼叫
cmake -D ZLIB_ROOT:PATH=C:\zlib128 ....
<强>参考强>