Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在cygwin/windows上为压缩编解码器构建Hadoop本机库时出错_Hadoop_Makefile_Cygwin - Fatal编程技术网

在cygwin/windows上为压缩编解码器构建Hadoop本机库时出错

在cygwin/windows上为压缩编解码器构建Hadoop本机库时出错,hadoop,makefile,cygwin,Hadoop,Makefile,Cygwin,我正在尝试在windows环境下使用Hadoop压缩编解码器。然而,正如Haddop文档中提到的,本机库需要为Linux以外的任何平台构建 我正在按照这里提到的步骤为Cygwin的压缩编解码器构建本机库: 但是得到这个错误: (日志的最后几行) 构建失败 C:\cygwin\usr\local\hadoop\build.xml:596:执行此行时发生以下错误: C:\cygwin\usr\local\hadoop\build.xml:645:exec返回:1 我还将所有Makefile重命名为

我正在尝试在windows环境下使用Hadoop压缩编解码器。然而,正如Haddop文档中提到的,本机库需要为Linux以外的任何平台构建

我正在按照这里提到的步骤为Cygwin的压缩编解码器构建本机库:

但是得到这个错误: (日志的最后几行)

构建失败 C:\cygwin\usr\local\hadoop\build.xml:596:执行此行时发生以下错误: C:\cygwin\usr\local\hadoop\build.xml:645:exec返回:1

我还将所有Makefile重命名为Makefile.in,但仍然无法通过此错误。 谁能帮我把这个修好吗


Makefile确实存在于haddop/src/native文件夹中,如果我使用./configure构建它,它很好,但是它不会生成任何JAR。

我不确定这是否可能:“本机hadoop库仅在*nix平台上受支持。该库不适用于Cygwin或Mac OS X平台。”我认为这只适用于预建的图书馆。如果您想将这些库用于任何其他平台,则需要从源代码构建它。
 [exec] configure: WARNING: jni.h: present but cannot be compiled
 [exec] configure: WARNING: jni.h:     check for missing prerequisite headers?
 [exec] configure: WARNING: jni.h: see the Autoconf documentation
 [exec] configure: WARNING: jni.h:     section "Present But Cannot Be Compiled"
 [exec] configure: WARNING: jni.h: proceeding with the preprocessor's result
 [exec] configure: WARNING: jni.h: in the future, the compiler will take precedence
 [exec] configure: WARNING:     ## ------------------------------------------ ##
 [exec] configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
 [exec] configure: WARNING:     ## ------------------------------------------ ##
 [exec] checking for jni.h... yes
 [exec] checking zlib.h usability... yes
 [exec] checking zlib.h presence... yes
 [exec] checking for zlib.h... yes
 [exec] checking Checking for the 'actual' dynamic-library for '-lz'...
 [exec] checking zconf.h usability... yes
 [exec] checking zconf.h presence... yes
 [exec] checking for zconf.h... yes
 [exec] checking Checking for the 'actual' dynamic-library for '-lz'... (cached)
 [exec] checking fcntl.h usability... yes
 [exec] checking fcntl.h presence... yes
 [exec] checking for fcntl.h... yes
 [exec] checking for stdlib.h... (cached) yes
 [exec] checking for string.h... (cached) yes
 [exec] checking for unistd.h... (cached) yes
 [exec] checking for an ANSI C-conforming const... yes
 [exec] checking for memset... yes
 [exec] checking whether strerror_r is declared... yes
 [exec] checking for strerror_r... yes
 [exec] checking whether strerror_r returns char *... no
 [exec] configure: creating ./config.status
 [exec] config.status: creating Makefile
 [exec] config.status: error: cannot find input file: Makefile.in