在 slackware (nginx cgi 支持) 上编译 FastCGIWrap 失败

在 slackware (nginx cgi 支持) 上编译 FastCGIWrap 失败

我目前正在尝试让 nginx 与使用 cgi 的 cgit 一起工作。
我知道 nginx 不直接支持 cgi,但似乎你可以通过以下方式间接支持它快速CGI包装

上面的链接非常直观,但我在编译程序时遇到了问题。到目前为止,我所做的是:

  1. 已安装libfcgi-2.4.0
  2. cd fcgiwrap && autoconf -i
  3. 当我运行时./configure我得到这个输出

    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for FCGX_Init in -lfcgi... yes
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for stdbool.h that conforms to C99... yes
    checking for _Bool... yes
    checking for pid_t... yes
    checking for size_t... yes
    checking for ssize_t... yes
    checking vfork.h usability... no
    checking vfork.h presence... no
    checking for vfork.h... no
    checking for fork... yes
    checking for vfork... yes
    checking for working fork... yes
    checking for working vfork... (cached) yes
    checking whether lstat dereferences a symlink specified with a trailing slash... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for strchr... yes
    checking for strdup... yes
    checking for strrchr... yes
    checking for dup2... yes
    checking for putenv... yes
    checking for select... yes
    checking for setenv... yes
    checking for strerror... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
    config.status: error: cannot find input file: config.h.in
    

在此之后我无法执行此操作make -s && make -s install,因为找不到config.h.in
还有其他方法可以在 slackware 12.2 上安装它吗?或者是否有它的软件包?或者该程序仅适用于 Debian/Ubuntu 等发行版?

编辑: automake返回:

Useless use of /d modifier in transliteration operator at /usr/share/automake-1.10/Automake/Wrap.pm line 60.
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
automake: no `Makefile.am' found for any configure output

答案1

自动重新配置的选项 -i 应该使用库默认值生成缺少的自动工具文件。

相关内容