首页 文章

Lenny AMD64上的Lighttpd 1.4.26编译失败

提问于
浏览
0

昨天我试图在Debian Lenny(AMD64)上编译Lighttpd 1.4.26 mod_h264,但它失败了 . 我收到了这些错误:

mail:/usr/src/lighttpd/lighttpd-1.4.26# make
make  all-recursive
make[1]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26'
Making all in src
make[2]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26/src'
gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/usr/local/lib\"" -DSBIN_DIR="\"/usr/local/sbin\"" -I. -I..   -D_REENTRANT -D__EXTENSIONS__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES  -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT lemon.o -MD -MP -MF .deps/lemon.Tpo -c -o lemon.o lemon.c
mv -f .deps/lemon.Tpo .deps/lemon.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99   -o lemon lemon.o
../libtool: line 827: X--tag=CC: command not found
../libtool: line 860: libtool: ignoring unknown tag : command not found
../libtool: line 827: X--mode=link: command not found
../libtool: line 994: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 995: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 2239: X-g: command not found
../libtool: line 2239: X-O2: command not found
../libtool: line 2239: X-Wall: command not found
../libtool: line 2239: X-W: command not found
../libtool: line 2239: X-Wshadow: command not found
../libtool: line 2239: X-pedantic: command not found
../libtool: line 2239: X-std=gnu99: command not found
../libtool: line 2408: Xlemon: command not found
../libtool: line 2413: X: command not found
../libtool: line 2420: Xlemon: command not found
../libtool: line 5193: Xgcc "" "" "" "" "" "" "" -o @OUTPUT@ lemon.o : command not found
../libtool: line 5194: Xgcc "" "" "" "" "" "" "" -o @OUTPUT@ lemon.o : command not found
../libtool: line 5199: X: command not found
../libtool: line 5203: : command not found
rm -f configparser.h
../src/lemon -q ./configparser.y ./lempar.c
make[2]: ../src/lemon: Command not found
make[2]: *** [configparser.c] Error 127
make[2]: Leaving directory `/usr/src/lighttpd/lighttpd-1.4.26/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lighttpd/lighttpd-1.4.26'
make: *** [all] Error 2

经过对IRC的大量研究,谷歌和邮件列表Libtools似乎并不是最新的编译方式 . Libtootl 2.2不在Lenny的AMD64的后端......任何人都对这个问题或解决方案有所了解?谢谢 !

3 回答

  • 0

    如果你已经完成了“autogen.sh”的事情(这是最有可能的修复),那么将你给出的参数发布到“./configure”,因为其中一个可能导致你看到的问题(例如尝试添加一项功能,该功能需要lighttpd构建系统无法在您的系统上正确处理的依赖项 .

  • 0

    尝试使用H264 Streaming Module安装lighttpd时遇到了完全相同的问题 . 最终为我工作的解决方案是更改./configure行以删除--prefix .

    make maintainer-clean
    ./autogen.sh
    ./configure --enable-maintainer-mode
    make
    make install
    
  • 0

    根据我的经验,这些类型的错误意味着您的 libtool 脚本是使用与当前安装的不同版本的libtool生成的 . 试试这个:

    make maintainer-clean
    ./autogen.sh
    ./configure
    make
    

    在任何情况下,问题不在于您没有libtool 2.2,因为 autogen.sh 脚本声称只能使用1.5,而 configure.ac 使用1.5样式的libtool调用 .

相关问题