Autogen throws "/configure: line 21414: php-cgi: command not found" #998

Closed
Borkason opened this Issue Aug 9, 2013 · 5 comments

Projects

None yet

2 participants

@Borkason
Member
Borkason commented Aug 9, 2013

File autogen.sh throws /configure: line 21414: php-cgi: command not found

I have not installed php yet.

Debian 7.

Checking for python2 binary ...
Generating a fresh po/admin/POTFILES.in file..
Running: libtoolize --force --copy...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running: aclocal -I m4...
Running: autoheader...
Running: automake -a ...
Running: autoconf...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking initial CFLAGS...
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking host platform characteristics... ok
checking L2 cache line size... 64
checking whether to enable maintainer-specific portions of Makefiles... no
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking whether make sets $(MAKE)... (cached) yes
checking for cherokee... /usr/local/sbin/cherokee
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for vprintf... yes
checking for _doprnt... no
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking sys/machine.h usability... no
checking sys/machine.h presence... no
checking for sys/machine.h... no
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/isa_defs.h usability... no
checking sys/isa_defs.h presence... no
checking for sys/isa_defs.h... no
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ofcntl.h usability... no
checking sys/ofcntl.h presence... no
checking for sys/ofcntl.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking resource.h usability... no
checking resource.h presence... no
checking for resource.h... no
checking for unistd.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking error.h usability... yes
checking error.h presence... yes
checking for error.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/varargs.h usability... no
checking sys/varargs.h presence... no
checking for sys/varargs.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/uio.h... (cached) yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for off_t... yes
checking for size_t... (cached) yes
checking for pid_t... yes
checking for struct stat.st_rdev... yes
checking for ino_t... yes
checking for loff_t... yes
checking for offset_t... no
checking for ssize_t... yes
checking for wchar_t... yes
checking size of int... 4
checking size of long... 8
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... 8
checking size of unsigned int... (cached) 4
checking size of off_t... 8
checking size of size_t... 8
checking size of sig_atomic_t... 0
checking size of time_t... 8
checking for long long... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... 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 for gmtime... yes
checking for gmtime_r... yes
checking for localtime... yes
checking for localtime_r... yes
checking for getrlimit... yes
checking for getdtablesize... yes
checking for readdir... yes
checking for readdir_r... yes
checking for flockfile... yes
checking for funlockfile... yes
checking for strnstr... no
checking for backtrace... yes
checking for random... yes
checking for srandom... yes
checking for srandomdev... no
checking for getpwnam_r with 5 parameters... yes
checking for getpwuid_r with 5 parameters... yes
checking for getgrnam_r with 5 parameters... yes
checking for getgrgid_r with 5 parameters... yes
checking for struct tm.tm_gmtoff... yes
checking for main in -lws2_32... no
checking for main in -ladvapi32... no
checking for socket... yes
checking for library containing accept... none required
checking for library containing bind... none required
checking for library containing listen... none required
checking for library containing setsockopt... none required
checking for poll... yes
checking for kqueue... no
checking for select... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking for epoll system call... yes
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking for library containing inet_pton... none required
checking for inet_pton... yes
checking for inet_ntop... yes
checking for inet_addr... yes
checking for library containing gethostbyname... none required
checking for gethostbyname... yes
checking for gethostbyname_r... yes
checking for sys/utsname.h... (cached) yes
checking for gethostname... yes
checking for uname... yes
checking for library containing inet_addr... none required
checking for inet_addr... (cached) yes
checking whether TCP_CORK is a valid TCP socket option... yes
checking whether TCP_NOPUSH is a valid TCP socket option... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long... yes
checking for special a pthread case... no
checking for main in -lpthread... yes
checking for pthread_rwlock_t support... ok
checking for pthread_attr_setschedpolicy... yes
checking for pthread_mutexattr_settype... yes
checking for pthread_mutexattr_setkind_np... yes
checking for sched_yield... yes
checking for syslog... yes
checking for vsyslog... yes
checking for strsep... yes
checking for strcasestr... yes
checking for memmove... yes
checking for strerror... yes
checking for bcopy... yes
checking for strlcat... no
checking whether va_list assignments need array notation... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for global timezone... yes
checking for RTLD_NEXT from dlfcn.h... yes
checking for RTLD_LOCAL from dlfcn.h... yes
checking for RTLD_GLOBAL from dlfcn.h... yes
checking for RTLD_NOW from dlfcn.h... yes
checking for off64_t... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for semget... yes
checking for semop... yes
checking for semctl... yes
checking for union semun... no
checking for libraries containing socket functions... -lc
checking whether to check to support sendfile... yes
checking for linux sendfile64 support... yes
checking for linux sendfile support... yes
checking for broken linux sendfile support... yes
checking for readdir_r... 3 arguments
checking for library containing getaddrinfo... none required
checking for library containing getnameinfo... none required
checking for library containing gai_strerror... none required
checking for gai_strerror... yes
checking for working getaddrinfo... yes
checking for working getnameinfo... yes
checking if struct sockaddr_un exists... yes
checking if struct sockaddr_in6 exists... yes
checking if the system supports IPv6... yes
checking whether setsockopt(SO_RCVTIMEO) is broken... no
checking for socklen_t... yes
checking whether our compiler supports __func__... yes
checking directory to use for temporary files... /tmp
checking for pcre_compile in -lpcre... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking for pam_start in -lpam... no
checking for _pam_dispatch in -lpam... no
checking for security/pam_modules.h... no
checking security/_pam_macros.h usability... no
checking security/_pam_macros.h presence... no
checking for security/_pam_macros.h... no
checking security/pam_appl.h usability... no
checking security/pam_appl.h presence... no
checking for security/pam_appl.h... no
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for crypt... no
checking for crypt in -lcrypt... yes
checking for crypt_r... no
checking for crypt_r in -lcrypt... yes
checking crypt_r style... struct_crypt_data
checking for BN_init in -lcrypto... no
checking openssl/engine.h usability... no
checking openssl/engine.h presence... no
checking for openssl/engine.h... no
checking for SSL_accept in -lssl... no
checking for libssl... no
checking whether NLS is requested... no
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ldap_init in -lldap... no
checking ldap.h usability... no
checking ldap.h presence... no
checking for ldap.h... no
checking for ldap_start_tls_s in -lldap... no
checking for mysql_config... no
checking for mysql.h (using mysql_config --cflags)... no
checking for GeoIP_new in -lGeoIP... no
checking GeoIP.h usability... no
checking GeoIP.h presence... no
checking for GeoIP.h... no
checking for main in -lavformat... no
checking for BZ2_bzdopen in -lbz2... no
checking for cos in -lm... yes
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... no
checking for libavformat/avformat.h... no
checking for php-fpm... no
checking for php-cgi... no
checking php-cgi supports FastCGI... ./configure: line 21414: php-cgi: command not found
no, use --with-php
checking for python... /usr/bin/python
checking Python 2.x interpreter... yes
configure: Deleting .pre files
checking module "error_redir"... dynamic
checking module "error_nn"... dynamic
checking module "server_info"... dynamic
checking module "file"... dynamic
checking module "dirlist"... dynamic
checking module "cgi"... dynamic
checking module "fcgi"... dynamic
checking module "scgi"... dynamic
checking module "uwsgi"... dynamic
checking module "proxy"... dynamic
checking module "redir"... dynamic
checking module "common"... dynamic
checking module "ssi"... dynamic
checking module "secdownload"... dynamic
checking module "empty_gif"... dynamic
checking module "drop"... dynamic
checking module "admin"... dynamic
checking module "custom_error"... dynamic
checking module "gzip"... dynamic
checking module "deflate"... dynamic
checking module "ncsa"... dynamic
checking module "combined"... dynamic
checking module "custom"... dynamic
checking module "htpasswd"... dynamic
checking module "plain"... dynamic
checking module "htdigest"... dynamic
checking module "authlist"... dynamic
checking module "round_robin"... dynamic
checking module "ip_hash"... dynamic
checking module "failover"... dynamic
checking module "directory"... dynamic
checking module "extensions"... dynamic
checking module "request"... dynamic
checking module "header"... dynamic
checking module "exists"... dynamic
checking module "fullpath"... dynamic
checking module "method"... dynamic
checking module "from"... dynamic
checking module "bind"... dynamic
checking module "tls"... dynamic
checking module "url_arg"... dynamic
checking module "v_or"... dynamic
checking module "wildcard"... dynamic
checking module "rehost"... dynamic
checking module "target_ip"... dynamic
checking module "evhost"... dynamic
checking module "post_track"... dynamic
checking module "post_report"... dynamic
checking module "render_rrd"... dynamic
checking module "rrd"... dynamic
checking module "not"... dynamic
checking module "and"... dynamic
checking module "or"... dynamic
checking loader.autoconf files... done
configure: creating ./config.status
config.status: creating po/admin/Makefile.in
config.status: creating Makefile
config.status: creating cget/Makefile
config.status: creating cherokee-config
config.status: creating cherokee.pc
config.status: creating cherokee.spec
config.status: creating org.cherokee.webserver.plist
config.status: creating cherokee/Makefile
config.status: creating contrib/Makefile
config.status: creating icons/Makefile
config.status: creating m4/Makefile
config.status: creating qa/Makefile
config.status: creating doc/Makefile
config.status: creating themes/Makefile
config.status: creating themes/default/Makefile
config.status: creating themes/firefox3/Makefile
config.status: creating themes/white/Makefile
config.status: creating themes/plain/Makefile
config.status: creating packages/Makefile
config.status: creating packages/osx/Makefile
config.status: creating packages/osx/Info.plist
config.status: creating packages/osx/Description.plist
config.status: creating www/Makefile
config.status: creating dbslayer/Makefile
config.status: creating admin/Makefile
config.status: creating admin/icons/Makefile
config.status: creating admin/plugins/Makefile
config.status: creating admin/wizards/Makefile
config.status: creating admin/static/Makefile
config.status: creating admin/static/js/Makefile
config.status: creating admin/static/css/Makefile
config.status: creating admin/static/images/Makefile
config.status: creating admin/static/images/flags/Makefile
config.status: creating admin/static/images/wizards/Makefile
config.status: creating admin/static/images/other/Makefile
config.status: creating admin/CTK/Makefile
config.status: creating admin/CTK/CTK/Makefile
config.status: creating admin/CTK/static/css/Makefile
config.status: creating admin/CTK/static/images/Makefile
config.status: creating admin/CTK/static/js/Makefile
config.status: creating admin/CTK/static/Makefile
config.status: creating po/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/admin/POTFILES
config.status: creating po/admin/Makefile

============================
Install prefix        /usr/local
CFLAGS                -g -O2
trace                 no
backtracing           no
sendfile()            yes
IPv6 support          yes
Polling method 1      epoll
Polling method 2      poll
Polling method 3      select
Threading support     yes
OpenSSL support       no
PCRE library          built-in
Compatible PAM        no
Python                yes
LDAP                  no
MySQL                 no
GeoIP                 no
FFMpeg                no
crypt support         multithread

Installation dir /usr/local/bin
============================

Warning: You have an old copy of Cherokee at /usr/local/sbin/cherokee.

+------------------------------------------------------------------+
| License:                                                         |
| This software is subject to the GPL License, available in this   |
| distribution in the file COPYING. Please, remember that any copy |
| distribution or modification of the software is subject to it.   |
+------------------------------------------------------------------+

Thank you for using Cherokee.

Now type 'make' to compile cherokee.
Member
skinkie commented Aug 9, 2013

What would you like to see? Test if it exist first without executing?

Member
Borkason commented Aug 9, 2013

I like to see

checking for php-cgi... no
checking php-cgi supports FastCGI... no, use --with-php
checking for python... /usr/bin/python

instead of

checking for php-cgi... no
checking php-cgi supports FastCGI... ./configure: line 21414: php-cgi: command not found
no, use --with-php
checking for python... /usr/bin/python
Member
Borkason commented Aug 9, 2013

Where do I find the configure script? Is it generated? How can I modify it then?

Member
skinkie commented Aug 9, 2013

Can you validate this works for you?

diff --git a/configure.ac b/configure.ac
index d37ae53..44c031c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1329,7 +1329,10 @@ fi

 dnl Last, desperate option
 if test "x$PHPCGI" = "x"; then
-   PHPCGI="php-cgi"
+   php-cgi -v 2>/dev/null
+   if test "$?" != "0"; then
+       PHPCGI="php-cgi"
+   fi
 fi

 AC_SUBST(PHPCGI)
Member
Borkason commented Aug 9, 2013

Works!

…
checking for php-fpm... no
checking for php-cgi... no
checking php-cgi supports FastCGI... no, use --with-php
checking for python... /usr/bin/python
checking Python 2.x interpreter... yes
…

Thanks a lot.

@skinkie skinkie added a commit that closed this issue Aug 9, 2013
@skinkie skinkie Fix #998
We try a last gracefull check of php-cgi, without setting the variable. That solves the program is later invoked to check for CGI.
1a0e4ba
@skinkie skinkie closed this in 1a0e4ba Aug 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment