Error at I-MSCP Update -> 1.2.9
-
- not i-MSCP related
- freedom
- Closed
- Thread is marked as Resolved.
-
-
Yes
Why you need pthread and maintainer-zts exactly? I don't see them as a requirement for eBot. If you really need them, you must recompile your own PHP version but this time please:
- Don't forget to enable mcrypt and openssl
- Don't forget to specify path for mysql unix socket
- Choose an install prefix other than /usr or /usr/local. --prefix=/opt/php-<version> would be better because this would avoid to pollute the default PATH.
BTW: You should use mysqlnd extension instead of mysql
-
-
We need pthreads because of this message by starting eBot:
Shell-Script- root@srv1 /home/ebot/ebot-csgo # php bootstrap.php
- ____ _
- | _ \ | |
- ___| |_) | ___ | |_
- / _ \ _ < / _ \| __|
- | __/ |_) | (_) | |_
- \___|____/ \___/ \__|
- PHP Compatibility Test
- -----------------------------------------------------
- | PHP 5.3.1 or newer -> required -> [ Yes ] 5.6.9-0+deb8u1
- | Standard PHP Library -> required -> [ Yes ]
- | MySQL -> required -> [ Yes ]
- | Sockets -> required -> [ Yes ]
- | pthreads -> required -> [ No ]
- -----------------------------------------------------
- | Your php configuration missed, please make sure that you have
Without pthreads it wouldn't start.
If i have to compile my own php version again, how can i specify the path for the mysql unix socket? I don't want to have the same problems again. -
-
-
I tried to recompile the php version with your tutorial now, but seems I'm not very good at it.
Code- ./configure --prefix=/opt/php-5.6.9 --enabl e-maintainer-zts --with-pdo-mysql=mysqlnd --enable-sockets --with-mysql=mysqlnd --with-mcrypt --with--openssl --enable-pthreadsconfigure: WARNING: unrecognized options: --with--openssl, --enable-pthreadschecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for cc... ccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether cc accepts -g... yeschecking for cc option to accept ISO C89... none neededchecking how to run the C preprocessor... cc -Echecking for icc... nochecking for suncc... nochecking whether cc understands -c and -o together... yeschecking how to run the C preprocessor... cc -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking minix/config.h usability... nochecking minix/config.h presence... nochecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking whether ln -s works... yeschecking for system library directory... libchecking whether to enable runpaths... yeschecking if compiler supports -R... nochecking if compiler supports -Wl,-rpath,... yeschecking for gawk... nochecking for nawk... nawkchecking if nawk is broken... nochecking for bison... nochecking for byacc... nochecking for bison version... invalidconfigure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).checking for re2c... noconfigure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.checking whether to enable computed goto gcc extension with re2c... nochecking whether to force non-PIC code in shared modules... nochecking whether /dev/urandom exists... yeschecking for pthreads_cflags... -pthreadchecking for pthreads_lib...Configuring SAPI moduleschecking for AOLserver support... nochecking for Apache 1.x module support via DSO through APXS... nochecking for Apache 1.x module support... nochecking whether to enable Apache charset compatibility option... nochecking for Apache 2.0 filter-module support via DSO through APXS... nochecking for Apache 2.0 handler-module support via DSO through APXS... nochecking for Apache 1.x (hooks) module support via DSO through APXS... nochecking for Apache 1.x (hooks) module support... nochecking whether to enable Apache charset compatibility option... nochecking for Caudium support... nochecking for setproctitle... nochecking sys/pstat.h usability... nochecking sys/pstat.h presence... nochecking for sys/pstat.h... nochecking for PS_STRINGS... nochecking for CLI build... yeschecking for Continuity support... nochecking for embedded SAPI library support... nochecking for FPM build... nochecking for Zeus ISAPI support... nochecking for LiteSpeed support... nochecking for Milter support... nochecking for NSAPI support... nochecking for phpdbg support... nochecking for phpdbg debug build... nochecking for PHTTPD support... nochecking for Pi3Web support... nochecking whether Roxen module is build using ZTS... nochecking for Roxen/Pike support...checking for thttpd... nochecking for TUX... nochecking for webjames... nochecking for CGI build... yeschecking for socklen_t in sys/socket.h... yeschecking for sun_len in sys/un.h... nochecking whether cross-process locking is required by accept()... nochecking for chosen SAPI module... nonechecking for executable SAPI binaries... cli cgiRunning system checkschecking for sendmail... /usr/sbin/sendmailchecking whether system uses EBCDIC... nochecking whether byte ordering is bigendian... nochecking whether writing to stdout works... This is the test message -- yeschecking for socket... yeschecking for socketpair... yeschecking for htonl... yeschecking for gethostname... yeschecking for gethostbyaddr... yeschecking for yp_get_default_domain... nochecking for __yp_get_default_domain... nochecking for yp_get_default_domain in -lnsl... yeschecking for dlopen... nochecking for __dlopen... nochecking for dlopen in -ldl... yeschecking for sin in -lm... yeschecking for inet_aton... yeschecking for ANSI C header files... (cached) yeschecking for dirent.h that defines DIR... yeschecking for library containing opendir... none requiredchecking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for dirent.h... yeschecking for ApplicationServices/ApplicationServices.h... nochecking for sys/param.h... yeschecking for sys/types.h... (cached) yeschecking for sys/time.h... yeschecking for netinet/in.h... yeschecking for alloca.h... yeschecking for arpa/inet.h... yeschecking for arpa/nameser.h... yeschecking for assert.h... yeschecking for crypt.h... yeschecking for dns.h... nochecking for fcntl.h... yeschecking for grp.h... yeschecking for ieeefp.h... nochecking for langinfo.h... yeschecking for limits.h... yeschecking for locale.h... yeschecking for monetary.h... yeschecking for netdb.h... yeschecking for pwd.h... yeschecking for resolv.h... yeschecking for signal.h... yeschecking for stdarg.h... yeschecking for stdlib.h... (cached) yeschecking for string.h... (cached) yeschecking for syslog.h... yeschecking for sysexits.h... yeschecking for sys/ioctl.h... yeschecking for sys/file.h... yeschecking for sys/mman.h... yeschecking for sys/mount.h... yeschecking for sys/poll.h... yeschecking for sys/resource.h... yeschecking for sys/select.h... yeschecking for sys/socket.h... yeschecking for sys/stat.h... (cached) yeschecking for sys/statfs.h... yeschecking for sys/statvfs.h... yeschecking for sys/vfs.h... yeschecking for sys/sysexits.h... nochecking for sys/varargs.h... nochecking for sys/wait.h... yeschecking for sys/loadavg.h... nochecking for termios.h... yeschecking for unistd.h... (cached) yeschecking for unix.h... nochecking for utime.h... yeschecking for sys/utsname.h... yeschecking for sys/ipc.h... yeschecking for dlfcn.h... yeschecking for assert.h... (cached) yeschecking for fopencookie... yeschecking for broken getcwd... nochecking for broken libc stdio... yeschecking whether struct tm is in sys/time.h or time.h... time.hchecking for struct tm.tm_zone... yeschecking for missing declarations of reentrant functions... donechecking for fclose declaration... okchecking for tm_gmtoff in struct tm... yeschecking for struct flock... yeschecking for socklen_t... yeschecking size of size_t... 8checking size of long long... 8checking size of long long int... 8checking size of long... 8checking size of int... 4checking size of intmax_t... 8checking size of ssize_t... 8checking size of ptrdiff_t... 8checking size of short... 2checking size of int... (cached) 4checking size of long... (cached) 8checking size of long long... (cached) 8checking for int8... nochecking for int16... nochecking for int32... nochecking for int64... nochecking for int8_t... yeschecking for int16_t... yeschecking for int32_t... yeschecking for int64_t... yeschecking for uint8... nochecking for uint16... nochecking for uint32... nochecking for uint64... nochecking for uint8_t... yeschecking for uint16_t... yeschecking for uint32_t... yeschecking for uint64_t... yeschecking for u_int8_t... yeschecking for u_int16_t... yeschecking for u_int32_t... yeschecking for u_int64_t... yeschecking for struct stat.st_blksize... yeschecking for struct stat.st_blocks... yeschecking for struct stat.st_rdev... yeschecking for size_t... yeschecking for uid_t in sys/types.h... yeschecking for struct sockaddr_storage... yeschecking for field sa_len in struct sockaddr... nochecking for IPv6 support... yeschecking for vprintf... yeschecking for _doprnt... nochecking for alphasort... yeschecking for asctime_r... yeschecking for chroot... yeschecking for ctime_r... yeschecking for cuserid... yeschecking for crypt... nochecking for flock... yeschecking for ftok... yeschecking for funopen... nochecking for gai_strerror... yeschecking for gcvt... yeschecking for getloadavg... yeschecking for getlogin... yeschecking for getprotobyname... yeschecking for getprotobynumber... yeschecking for getservbyname... yeschecking for getservbyport... yeschecking for gethostname... (cached) yeschecking for getrusage... yeschecking for gettimeofday... yeschecking for gmtime_r... yeschecking for getpwnam_r... yeschecking for getgrnam_r... yeschecking for getpwuid_r... yeschecking for grantpt... yeschecking for inet_ntoa... yeschecking for inet_ntop... yeschecking for inet_pton... yeschecking for isascii... yeschecking for link... yeschecking for localtime_r... yeschecking for lockf... yeschecking for lchown... yeschecking for lrand48... yeschecking for memcpy... yeschecking for memmove... yeschecking for mkstemp... yeschecking for mmap... yeschecking for nl_langinfo... yeschecking for perror... yeschecking for poll... yeschecking for ptsname... yeschecking for putenv... yeschecking for realpath... yeschecking for random... yeschecking for rand_r... yeschecking for scandir... yeschecking for setitimer... yeschecking for setlocale... yeschecking for localeconv... yeschecking for setenv... yeschecking for setpgid... yeschecking for setsockopt... yeschecking for setvbuf... yeschecking for shutdown... yeschecking for sin... yeschecking for snprintf... yeschecking for srand48... yeschecking for srandom... yeschecking for statfs... yeschecking for statvfs... yeschecking for std_syslog... nochecking for strcasecmp... yeschecking for strcoll... yeschecking for strdup... yeschecking for strerror... yeschecking for strftime... yeschecking for strnlen... yeschecking for strptime... yeschecking for strstr... yeschecking for strtok_r... yeschecking for symlink... yeschecking for tempnam... yeschecking for tzset... yeschecking for unlockpt... yeschecking for unsetenv... yeschecking for usleep... yeschecking for utime... yeschecking for vsnprintf... yeschecking for vasprintf... yeschecking for asprintf... yeschecking for nanosleep... yeschecking for nanosleep in -lrt... yeschecking for getaddrinfo... yeschecking for __sync_fetch_and_add... yeschecking for strlcat... nochecking for strlcpy... nochecking for getopt... yeschecking for utime.h... (cached) yeschecking whether utime accepts a null argument... yeschecking for working alloca.h... yeschecking for alloca... yeschecking for declared timezone... yeschecking for type of reentrant time-related functions... POSIXchecking for readdir_r... yeschecking for type of readdir_r... POSIXchecking for in_addr_t... yeschecking for crypt_r... noGeneral settingschecking whether to include gcov symbols... nochecking whether to include debugging symbols... nochecking layout of installed files... PHPchecking path to configuration file... DEFAULTchecking where to scan for configuration files...checking whether to enable PHP's own SIGCHLD handler... nochecking whether to explicitly link against libgcc... nochecking whether to enable short tags by default... yeschecking whether to enable dmalloc... nochecking whether to enable IPv6 support... yeschecking whether to enable DTrace support... nochecking how big to make fd sets... using system defaultConfiguring extensionschecking size of long... (cached) 8checking size of int... (cached) 4checking for int32_t... yeschecking for uint32_t... yeschecking for sys/types.h... (cached) yeschecking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for string.h... (cached) yeschecking for stdlib.h... (cached) yeschecking for strtoll... yeschecking for atoll... yeschecking for strftime... (cached) yeschecking which regex library to use... phpchecking whether to enable LIBXML support... yeschecking libxml2 install dir... nochecking for xml2-config path... /usr/bin/xml2-configchecking whether libxml build works... yeschecking for OpenSSL support... nochecking for Kerberos support... nochecking whether to use system default cipher list instead of hardcoded value... nochecking for PCRE library to use... bundledchecking whether to enable the SQLite3 extension... yeschecking bundled sqlite3 library... yeschecking for ZLIB support... nochecking if the location of ZLIB install directory is defined... nochecking whether to enable bc style precision math functions... nochecking for BZip2 support... nochecking whether to enable calendar conversion support... nochecking whether to enable ctype functions... yeschecking for cURL support... nochecking for QDBM support... nochecking for GDBM support... nochecking for NDBM support... nochecking for TCADB support... nochecking for Berkeley DB4 support... nochecking for Berkeley DB3 support... nochecking for Berkeley DB2 support... nochecking for DB1 support... nochecking for DBM support... nochecking for CDB support... nochecking for INI File support... nochecking for FlatFile support... nochecking whether to enable DBA interface... nochecking whether to enable DOM support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for ENCHANT support... nochecking whether to enable EXIF (metadata from images) support... nochecking for fileinfo support... yeschecking for strcasestr... yeschecking for utimes... yeschecking for strndup... yeschecking whether to enable input filter support... yeschecking pcre install prefix... nochecking whether to enable FTP support... nochecking OpenSSL dir for FTP... nochecking for GD support... nochecking for the location of libvpx... nochecking for the location of libjpeg... nochecking for the location of libpng... nochecking for the location of libXpm... nochecking for FreeType 2... nochecking for T1lib support... nochecking whether to enable truetype string function in GD... nochecking whether to enable JIS-mapped Japanese font support in GD... nochecking for GNU gettext support... nochecking for GNU MP support... nochecking for mhash support... nochecking whether to enable hash support... yeschecking whether byte ordering is bigendian... (cached) nochecking size of short... (cached) 2checking size of int... (cached) 4checking size of long... (cached) 8checking size of long long... (cached) 8checking for iconv support... yeschecking for iconv... yeschecking if iconv is glibc's... yeschecking if iconv supports errno... yeschecking if your cpp allows macro usage in include lines... yeschecking for IMAP support... nochecking for IMAP Kerberos support... nochecking for IMAP SSL support... nochecking for InterBase support... nochecking whether to enable internationalization support... nochecking whether to enable JavaScript Object Serialization support... yeschecking for ANSI C header files... (cached) yeschecking for LDAP support... nochecking for LDAP Cyrus SASL support... nochecking whether to enable multibyte string support... nochecking whether to enable multibyte regex support... yeschecking whether to check multibyte regex backtrack... yeschecking for external libmbfl... nochecking for external oniguruma... nochecking for mcrypt support... yesconfigure: error: mcrypt.h not found. Please reinstall libmcrypt.
From apt-get install php5-mcrypt: Already installed - Reinstall don't change this error.
Recompiling is something I hate.Second try:
Shell-Script- ./configure --prefix=/opt/php-5.6.9 --enable-maintainer-zts --with-pdo-mysql=mysqlnd --enable-sockets --with-mysql=mysqlnd --with-mcrypt --with-openssl --enable-pthreads
- configure: WARNING: unrecognized options: --enable-pthreads
- checking for grep that handles long lines and -e... /bin/grep
- checking for egrep... /bin/grep -E
- checking for a sed that does not truncate output... /bin/sed
- checking build system type... x86_64-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking target system type... x86_64-unknown-linux-gnu
- checking for cc... cc
- 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 cc accepts -g... yes
- checking for cc option to accept ISO C89... none needed
- checking how to run the C preprocessor... cc -E
- checking for icc... no
- checking for suncc... no
- checking whether cc understands -c and -o together... yes
- checking how to run the C preprocessor... cc -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 minix/config.h usability... no
- checking minix/config.h presence... no
- checking for minix/config.h... no
- checking whether it is safe to define __EXTENSIONS__... yes
- checking whether ln -s works... yes
- checking for system library directory... lib
- checking whether to enable runpaths... yes
- checking if compiler supports -R... no
- checking if compiler supports -Wl,-rpath,... yes
- checking for gawk... no
- checking for nawk... nawk
- checking if nawk is broken... no
- checking for bison... no
- checking for byacc... no
- checking for bison version... invalid
- configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
- checking for re2c... no
- configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
- checking whether to enable computed goto gcc extension with re2c... no
- checking whether to force non-PIC code in shared modules... no
- checking whether /dev/urandom exists... yes
- checking for pthreads_cflags... -pthread
- checking for pthreads_lib...
- Configuring SAPI modules
- checking for AOLserver support... no
- checking for Apache 1.x module support via DSO through APXS... no
- checking for Apache 1.x module support... no
- checking whether to enable Apache charset compatibility option... no
- checking for Apache 2.0 filter-module support via DSO through APXS... no
- checking for Apache 2.0 handler-module support via DSO through APXS... no
- checking for Apache 1.x (hooks) module support via DSO through APXS... no
- checking for Apache 1.x (hooks) module support... no
- checking whether to enable Apache charset compatibility option... no
- checking for Caudium support... no
- checking for setproctitle... no
- checking sys/pstat.h usability... no
- checking sys/pstat.h presence... no
- checking for sys/pstat.h... no
- checking for PS_STRINGS... no
- checking for CLI build... yes
- checking for Continuity support... no
- checking for embedded SAPI library support... no
- checking for FPM build... no
- checking for Zeus ISAPI support... no
- checking for LiteSpeed support... no
- checking for Milter support... no
- checking for NSAPI support... no
- checking for phpdbg support... no
- checking for phpdbg debug build... no
- checking for PHTTPD support... no
- checking for Pi3Web support... no
- checking whether Roxen module is build using ZTS... no
- checking for Roxen/Pike support...
- checking for thttpd... no
- checking for TUX... no
- checking for webjames... no
- checking for CGI build... yes
- checking for socklen_t in sys/socket.h... yes
- checking for sun_len in sys/un.h... no
- checking whether cross-process locking is required by accept()... no
- checking for chosen SAPI module... none
- checking for executable SAPI binaries... cli cgi
- Running system checks
- checking for sendmail... /usr/sbin/sendmail
- checking whether system uses EBCDIC... no
- checking whether byte ordering is bigendian... no
- checking whether writing to stdout works... This is the test message -- yes
- checking for socket... yes
- checking for socketpair... yes
- checking for htonl... yes
- checking for gethostname... yes
- checking for gethostbyaddr... yes
- checking for yp_get_default_domain... no
- checking for __yp_get_default_domain... no
- checking for yp_get_default_domain in -lnsl... yes
- checking for dlopen... no
- checking for __dlopen... no
- checking for dlopen in -ldl... yes
- checking for sin in -lm... yes
- checking for inet_aton... yes
- checking for ANSI C header files... (cached) yes
- checking for dirent.h that defines DIR... yes
- checking for library containing opendir... none required
- checking for inttypes.h... (cached) yes
- checking for stdint.h... (cached) yes
- checking for dirent.h... yes
- checking for ApplicationServices/ApplicationServices.h... no
- checking for sys/param.h... yes
- checking for sys/types.h... (cached) yes
- checking for sys/time.h... yes
- checking for netinet/in.h... yes
- checking for alloca.h... yes
- checking for arpa/inet.h... yes
- checking for arpa/nameser.h... yes
- checking for assert.h... yes
- checking for crypt.h... yes
- checking for dns.h... no
- checking for fcntl.h... yes
- checking for grp.h... yes
- checking for ieeefp.h... no
- checking for langinfo.h... yes
- checking for limits.h... yes
- checking for locale.h... yes
- checking for monetary.h... yes
- checking for netdb.h... yes
- checking for pwd.h... yes
- checking for resolv.h... yes
- checking for signal.h... yes
- checking for stdarg.h... yes
- checking for stdlib.h... (cached) yes
- checking for string.h... (cached) yes
- checking for syslog.h... yes
- checking for sysexits.h... yes
- checking for sys/ioctl.h... yes
- checking for sys/file.h... yes
- checking for sys/mman.h... yes
- checking for sys/mount.h... yes
- checking for sys/poll.h... yes
- checking for sys/resource.h... yes
- checking for sys/select.h... yes
- checking for sys/socket.h... yes
- checking for sys/stat.h... (cached) yes
- checking for sys/statfs.h... yes
- checking for sys/statvfs.h... yes
- checking for sys/vfs.h... yes
- checking for sys/sysexits.h... no
- checking for sys/varargs.h... no
- checking for sys/wait.h... yes
- checking for sys/loadavg.h... no
- checking for termios.h... yes
- checking for unistd.h... (cached) yes
- checking for unix.h... no
- checking for utime.h... yes
- checking for sys/utsname.h... yes
- checking for sys/ipc.h... yes
- checking for dlfcn.h... yes
- checking for assert.h... (cached) yes
- checking for fopencookie... yes
- checking for broken getcwd... no
- checking for broken libc stdio... yes
- checking whether struct tm is in sys/time.h or time.h... time.h
- checking for struct tm.tm_zone... yes
- checking for missing declarations of reentrant functions... done
- checking for fclose declaration... ok
- checking for tm_gmtoff in struct tm... yes
- checking for struct flock... yes
- checking for socklen_t... yes
- checking size of size_t... 8
- checking size of long long... 8
- checking size of long long int... 8
- checking size of long... 8
- checking size of int... 4
- checking size of intmax_t... 8
- checking size of ssize_t... 8
- checking size of ptrdiff_t... 8
- checking size of short... 2
- checking size of int... (cached) 4
- checking size of long... (cached) 8
- checking size of long long... (cached) 8
- checking for int8... no
- checking for int16... no
- checking for int32... no
- checking for int64... no
- checking for int8_t... yes
- checking for int16_t... yes
- checking for int32_t... yes
- checking for int64_t... yes
- checking for uint8... no
- checking for uint16... no
- checking for uint32... no
- checking for uint64... no
- checking for uint8_t... yes
- checking for uint16_t... yes
- checking for uint32_t... yes
- checking for uint64_t... yes
- checking for u_int8_t... yes
- checking for u_int16_t... yes
- checking for u_int32_t... yes
- checking for u_int64_t... yes
- checking for struct stat.st_blksize... yes
- checking for struct stat.st_blocks... yes
- checking for struct stat.st_rdev... yes
- checking for size_t... yes
- checking for uid_t in sys/types.h... yes
- checking for struct sockaddr_storage... yes
- checking for field sa_len in struct sockaddr... no
- checking for IPv6 support... yes
- checking for vprintf... yes
- checking for _doprnt... no
- checking for alphasort... yes
- checking for asctime_r... yes
- checking for chroot... yes
- checking for ctime_r... yes
- checking for cuserid... yes
- checking for crypt... no
- checking for flock... yes
- checking for ftok... yes
- checking for funopen... no
- checking for gai_strerror... yes
- checking for gcvt... yes
- checking for getloadavg... yes
- checking for getlogin... yes
- checking for getprotobyname... yes
- checking for getprotobynumber... yes
- checking for getservbyname... yes
- checking for getservbyport... yes
- checking for gethostname... (cached) yes
- checking for getrusage... yes
- checking for gettimeofday... yes
- checking for gmtime_r... yes
- checking for getpwnam_r... yes
- checking for getgrnam_r... yes
- checking for getpwuid_r... yes
- checking for grantpt... yes
- checking for inet_ntoa... yes
- checking for inet_ntop... yes
- checking for inet_pton... yes
- checking for isascii... yes
- checking for link... yes
- checking for localtime_r... yes
- checking for lockf... yes
- checking for lchown... yes
- checking for lrand48... yes
- checking for memcpy... yes
- checking for memmove... yes
- checking for mkstemp... yes
- checking for mmap... yes
- checking for nl_langinfo... yes
- checking for perror... yes
- checking for poll... yes
- checking for ptsname... yes
- checking for putenv... yes
- checking for realpath... yes
- checking for random... yes
- checking for rand_r... yes
- checking for scandir... yes
- checking for setitimer... yes
- checking for setlocale... yes
- checking for localeconv... yes
- checking for setenv... yes
- checking for setpgid... yes
- checking for setsockopt... yes
- checking for setvbuf... yes
- checking for shutdown... yes
- checking for sin... yes
- checking for snprintf... yes
- checking for srand48... yes
- checking for srandom... yes
- checking for statfs... yes
- checking for statvfs... yes
- checking for std_syslog... no
- checking for strcasecmp... yes
- checking for strcoll... yes
- checking for strdup... yes
- checking for strerror... yes
- checking for strftime... yes
- checking for strnlen... yes
- checking for strptime... yes
- checking for strstr... yes
- checking for strtok_r... yes
- checking for symlink... yes
- checking for tempnam... yes
- checking for tzset... yes
- checking for unlockpt... yes
- checking for unsetenv... yes
- checking for usleep... yes
- checking for utime... yes
- checking for vsnprintf... yes
- checking for vasprintf... yes
- checking for asprintf... yes
- checking for nanosleep... yes
- checking for nanosleep in -lrt... yes
- checking for getaddrinfo... yes
- checking for __sync_fetch_and_add... yes
- checking for strlcat... no
- checking for strlcpy... no
- checking for getopt... yes
- checking for utime.h... (cached) yes
- checking whether utime accepts a null argument... yes
- checking for working alloca.h... yes
- checking for alloca... yes
- checking for declared timezone... yes
- checking for type of reentrant time-related functions... POSIX
- checking for readdir_r... yes
- checking for type of readdir_r... POSIX
- checking for in_addr_t... yes
- checking for crypt_r... no
- General settings
- checking whether to include gcov symbols... no
- checking whether to include debugging symbols... no
- checking layout of installed files... PHP
- checking path to configuration file... DEFAULT
- checking where to scan for configuration files...
- checking whether to enable PHP's own SIGCHLD handler... no
- checking whether to explicitly link against libgcc... no
- checking whether to enable short tags by default... yes
- checking whether to enable dmalloc... no
- checking whether to enable IPv6 support... yes
- checking whether to enable DTrace support... no
- checking how big to make fd sets... using system default
- Configuring extensions
- checking size of long... (cached) 8
- checking size of int... (cached) 4
- checking for int32_t... yes
- checking for uint32_t... yes
- checking for sys/types.h... (cached) yes
- checking for inttypes.h... (cached) yes
- checking for stdint.h... (cached) yes
- checking for string.h... (cached) yes
- checking for stdlib.h... (cached) yes
- checking for strtoll... yes
- checking for atoll... yes
- checking for strftime... (cached) yes
- checking which regex library to use... php
- checking whether to enable LIBXML support... yes
- checking libxml2 install dir... no
- checking for xml2-config path... /usr/bin/xml2-config
- checking whether libxml build works... yes
- checking for OpenSSL support... yes
- checking for Kerberos support... no
- checking whether to use system default cipher list instead of hardcoded value... no
- checking for DSA_get_default_method in -lssl... no
- checking for X509_free in -lcrypto... no
- checking for RAND_egd... no
- checking for pkg-config... no
- configure: error: Cannot find OpenSSL's <evp.h>
-
-
-
Look at that to know how I process for PhpSwitcher plugin:
Shell-Script- #!/usr/bin/make -f
- #
- # i-MSCP PhpSwitcher plugin
- #
- # @author Laurent Declercq <l.declercq@nuxwin.com>
- # @copyright (C) 2014-2015 Laurent Declercq <l.declercq@nuxwin.com>
- # @license i-MSCP License <http://www.i-mscp.net/license-agreement.html>
- #
- # Set this flag to 'yes' if you want to disable all modifications breaking abi
- # compatibility to upstream
- PHP5_COMPAT=no
- # Enable dpkg build flags
- DPKG_EXPORT_BUILDFLAGS = 1
- include /usr/share/dpkg/buildflags.mk
- DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
- DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
- DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
- DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
- DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
- export DEB_HOST_MULTIARCH
- ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),amd64 armel armhf i386 ia64 powerpc))
- CONFIGURE_DTRACE_ARGS = --enable-dtrace
- else
- CONFIGURE_DTRACE_ARGS = --disable-dtrace
- endif
- PROG_SENDMAIL = /usr/sbin/sendmail
- ifeq (,$(findstring noopt,$(PHPSWITCHER_BUILD_OPTIONS)))
- CFLAGS += -O2
- else
- CFLAGS += -O0
- endif
- #CFLAGS += -Wall -fsigned-char -fno-strict-aliasing
- CFLAGS += -fsigned-char -fno-strict-aliasing
- # LFS support
- ifneq (yes,$(PHP5_COMPAT))
- CFLAGS += $(shell getconf LFS_CFLAGS)
- endif
- # Enable IEEE-conformant floating point math on alphas (not the default)
- ifeq (alpha-linux-gnu,$(DEB_HOST_GNU_TYPE))
- CFLAGS += -mieee
- endif
- # Enable producing of debugging information
- #CFLAGS += -g
- # support new (>= 2.2) and older versions of libtool
- LIBTOOL_DIRS = /usr/share/libtool/config /usr/share/libtool
- LTMAIN = $(firstword $(wildcard $(foreach d,$(LIBTOOL_DIRS),$d/ltmain.sh)))
- LTMAIN_DIR = $(dir $(LTMAIN))
- # Set number of parallel jobs
- ifneq (,$(filter parallel=%,$(PHPSWITCHER_BUILD_OPTIONS)))
- NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(PHPSWITCHER_BUILD_OPTIONS)))
- MAKEFLAGS += -j$(NUMJOBS)
- endif
- # install prefix
- PREFIX ?= /usr/local
- # Template destdir
- TPLS_DESTDIR ?= /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/templates
- # General config
- GENERAL_CONFIG = \
- --build=$(DEB_BUILD_GNU_TYPE) \
- --host=$(DEB_HOST_GNU_TYPE) \
- --prefix=$(PREFIX) \
- --with-config-file-path=$(PREFIX)/etc/php \
- --with-config-file-scan-dir=$(PREFIX)/etc/php/conf.d
- # Common config ( apply to all PHP versions - Unknown options are simply ignored )
- COMMON_CONFIG = \
- $(GENERAL_CONFIG) \
- --disable-debug \
- --disable-rpath \
- --disable-static \
- --enable-bcmath \
- --enable-calendar \
- --enable-ctype \
- --enable-exif \
- --enable-ftp \
- --enable-gd-native-ttf \
- --enable-intl=shared \
- --enable-mbstring \
- --enable-pcntl \
- --enable-pdo=shared \
- --enable-shmop \
- --enable-soap \
- --enable-sockets \
- --enable-sysvmsg \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-wddx \
- --enable-zip \
- --with-curl=shared,/usr \
- --with-db4 \
- --with-bz2 \
- --with-enchant=shared,/usr \
- --with-freetype-dir=shared,/usr \
- --with-gettext \
- --with-gd=shared \
- --with-gmp=shared,/usr \
- --with-iconv \
- --with-imap=shared,/usr \
- --with-imap-ssl \
- --with-jpeg-dir=shared,/usr \
- --with-kerberos=/usr \
- --with-layout=GNU \
- --with-libedit=shared \
- --with-libxml-dir=/usr \
- --with-ldap=shared,/usr \
- --with-ldap-sasl=/usr \
- --with-onig=/usr \
- --with-openssl=/usr \
- --with-pcre-regex=/usr \
- --with-mcrypt=shared,/usr \
- --with-mhash=yes \
- --with-mssql=shared,/usr \
- --with-mysql-sock=/var/run/mysqld/mysqld.sock \
- --with-pdo-dblib=shared,/usr \
- --with-pdo-odbc=shared,unixODBC,/usr \
- --with-pdo-pgsql=shared,/usr/bin/pg_config \
- --with-pdo-sqlite=shared,/usr \
- --with-pgsql=shared,/usr PGSQL_INCLUDE=`pg_config --includedir` \
- --with-pic \
- --with-png-dir=shared,/usr \
- --with-pspell=shared,/usr \
- --with-qdbm=shared/usr \
- --with-recode=shared,/usr \
- --with-regex=php \
- --with-snmp=shared,/usr \
- --with-sqlite3=shared,/usr \
- --with-tidy=shared,/usr \
- --with-unixODBC=shared,/usr \
- --with-vpx-dir=shared,/usr \
- --with-xmlrpc=shared \
- --with-xpm-dir=shared,/usr/X11R6 \
- --with-xsl=shared,/usr \
- --with-zlib \
- --with-zlib-dir=/usr \
- --without-gdbm \
- --without-mm \
- --without-t1lib \
- $(CONFIGURE_DTRACE_ARGS)
- # MySQL configuration (apply to PHP versions which don't support native MySQL driver)
- MYSQL_CONGIG = \
- --with-mysql=shared,/usr \
- --with-mysqli=shared,/usr/bin/mysql_config \
- --with-pdo-mysql=shared,/usr
- # MySQL native driver configuration (apply only to PHP versions which support it)
- MYSQLND_CONFIG = \
- --enable-mysqlnd=shared \
- --with-mysql=shared,mysqlnd \
- --with-mysqli=shared,mysqlnd \
- --with-pdo-mysql=shared,mysqlnd
- # Compile both interbase and pdo_firebird extensions only if supported
- ifneq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),hurd-i386 m68k hppa ppc64))
- COMMON_CONFIG += --with-interbase=shared,/usr --with-pdo-firebird=shared,/usr
- else
- COMMON_CONFIG += --without-interbase --without-pdo-firebird
- endif
- # OpenSSL-0.9.8 (needed for php4.4)
- build-openssl-0.9.8: build-openssl-0.9.8-stamp
- build-openssl-0.9.8-stamp:
- cd openssl-0.9.8* && ./config no-shared --prefix=$(PREFIX) && $(MAKE) all
- touch build-openssl-0.9.8-stamp
- install-openssl-0.9.8: build-openssl-0.9.8 install-openssl-0.9.8-stamp
- install-openssl-0.9.8-stamp:
- cd openssl-0.9.8* && $(MAKE) install
- touch install-openssl-0.9.8-stamp
- prepared: prepared-stamp
- prepared-stamp:
- ./buildconf --force
- touch prepared-stamp
- unprepared:
- rm -rf autom4te.cache
- rm -f buildmk.stamp prepared-stamp configure
- configure-php4.4: install-openssl-0.9.8 configure-php4.4-stamp configure-common
- configure-php4.4-stamp: prepared-stamp
- if [ -d cgi-build ]; then rm -rf cgi-build; fi
- -mkdir cgi-build
- cd cgi-build && \
- CFLAGS="$(CFLAGS)" PROG_SENDMAIL="$(PROG_SENDMAIL)" ../configure \
- $(COMMON_CONFIG) \
- $(MYSQL_CONGIG) \
- --disable-xml \
- --with-expat-dir=/usr \
- --enable-dbx \
- --enable-fastcgi \
- --enable-filepro \
- --enable-force-cgi-redirect \
- --enable-memory-limit \
- --enable-track-vars \
- --enable-trans-sid \
- --with-dom=shared,/usr \
- --with-dom-xslt=shared,/usr \
- --with-dom-exslt=shared,/usr \
- --with-mhash=shared,/usr \
- --with-mime-magic \
- --with-ncurses=/usr \
- --with-openssl=$(PREFIX) \
- --without-db4 \
- --without-libedit
- touch configure-php4.4-stamp
- configure-php5.2: configure-php5.2-stamp configure-common
- configure-php5.2-stamp: prepared-stamp
- if [ -d cgi-build ]; then rm -rf cgi-build; fi
- -mkdir cgi-build
- cd cgi-build && \
- CFLAGS="$(CFLAGS)" PROG_SENDMAIL="$(PROG_SENDMAIL)" ../configure \
- $(COMMON_CONFIG) \
- $(MYSQL_CONGIG) \
- --enable-memory-limit \
- --enable-force-cgi-redirect \
- --enable-fastcgi \
- --with-mhash=shared,/usr \
- --with-mime-magic \
- --with-sqlite=shared,/usr \
- --without-db4
- touch configure-php5.2-stamp
- configure-php5.3: configure-php5.3-stamp configure-common
- configure-php5.3-stamp: prepared-stamp
- if [ -d cgi-build ]; then rm -rf cgi-build; fi
- -mkdir cgi-build
- cd cgi-build && \
- CFLAGS="$(CFLAGS)" PROG_SENDMAIL="$(PROG_SENDMAIL)" ../configure \
- $(COMMON_CONFIG) \
- $(MYSQLND_CONFIG) \
- --enable-cgi \
- --with-sqlite=shared,/usr
- touch configure-php5.3-stamp
- configure-php5.4: configure-php5.4-stamp configure-common
- configure-php5.4-stamp: prepared-stamp
- if [ -d cgi-build ]; then rm -rf cgi-build; fi
- -mkdir cgi-build
- cd cgi-build && \
- CFLAGS="$(CFLAGS)" PROG_SENDMAIL="$(PROG_SENDMAIL)" ../configure \
- $(COMMON_CONFIG) \
- $(MYSQLND_CONFIG) \
- --enable-cgi \
- --with-sqlite=shared,/usr
- touch configure-php5.4-stamp
- configure-php5.5: configure-php5.5-stamp configure-common
- configure-php5.5-stamp: prepared-stamp
- if [ -d cgi-build ]; then rm -rf cgi-build; fi
- -mkdir cgi-build
- cd cgi-build && \
- CFLAGS="$(CFLAGS)" PROG_SENDMAIL="$(PROG_SENDMAIL)" ../configure \
- $(COMMON_CONFIG) \
- $(MYSQLND_CONFIG) \
- --enable-cgi \
- --with-sqlite=shared,/usr
- touch configure-php5.4-stamp
- configure-php5.6: configure-php5.6-stamp configure-common
- configure-php5.6-stamp: prepared-stamp
- if [ -d cgi-build ]; then rm -rf cgi-build; fi
- -mkdir cgi-build
- cd cgi-build && \
- CFLAGS="$(CFLAGS)" PROG_SENDMAIL="$(PROG_SENDMAIL)" ../configure \
- $(COMMON_CONFIG) \
- $(MYSQLND_CONFIG) \
- --enable-cgi
- touch configure-php5.6-stamp
- configure-common: configure-common-stamp
- configure-common-stamp:
- cd cgi-build && \
- cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
- ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
- ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
- Zend/
- touch configure-common-stamp
- build-php4.4: configure-php4.4 build-common
- build-php5.2: configure-php5.2 build-common
- build-php5.3: configure-php5.3 build-common
- build-php5.4: configure-php5.4 build-common
- build-php5.5: configure-php5.5 build-common
- build-php5.6: configure-php5.6 build-common
- build-common: build-common-stamp
- build-common-stamp:
- cd cgi-build && $(MAKE)
- touch build-common-stamp
- install-php4.4: build-php4.4 install-common
- ln -sf $(PREFIX)/bin/php $(PREFIX)/bin/php-cgi
- cp php.ini-phpswitcher $(TPLS_DESTDIR)/php4.4.ini
- install-php5.2: build-php5.2 install-common
- cp php.ini-phpswitcher $(TPLS_DESTDIR)/php5.2.ini
- install-php5.3: build-php5.3 install-common
- cp php.ini-phpswitcher $(TPLS_DESTDIR)/php5.3.ini
- install-php5.4: build-php5.4 install-common
- cp php.ini-phpswitcher $(TPLS_DESTDIR)/php5.4.ini
- install-php5.5: build-php5.5 install-common
- cp php.ini-phpswitcher $(TPLS_DESTDIR)/php5.5.ini
- install-php5.6: build-php5.6 install-common
- cp php.ini-phpswitcher $(TPLS_DESTDIR)/php5.6.ini
- install-common: install-common-stamp
- install-common-stamp:
- cd cgi-build && $(MAKE) install
- mkdir -p $(PREFIX)/etc/php/conf.d
- if [ -f php.ini-recommended ]; then \
- cp php.ini-recommended $(PREFIX)/etc/php/php.ini; \
- else \
- cp php.ini-production $(PREFIX)/etc/php/php.ini; \
- fi
- cp modules.ini $(PREFIX)/etc/php/conf.d/modules.ini
- ln -sf /usr/share/misc/config.guess $(PREFIX)/lib/php/build/config.guess
- ln -sf /usr/share/misc/config.sub $(PREFIX)/lib/php/build/config.sub
- ln -sf /usr/share/aclocal/libtool.m4 $(PREFIX)/lib/php/build/libtool.m4
- ln -sf $(LTMAIN_DIR)ltmain.sh $(PREFIX)/lib/php/build/ltmain.sh
- ln -sf /usr/bin/shtool $(PREFIX)/lib/php/build/shtool
- touch install-common-stamp
- clean: unprepared
- rm -f configure-common-stamp build-common-stamp install-common-stamp
- rm -f configure-php5.*-stamp
- rm -rf cgi-build
- .NOTPARALLEL:
- .PHONY: clean configure-php4.4 configure-php5.2 configure-php5.3 configure-php5.4 configure-php5.6 build-php4.4 build-php5.2 build-php5.3 build-php5.4 build-php5.6 install-php4.4 install-php5.2 install-php5.3 install-php5.4 install-php5.6 clean
This is just to show you about parameters. Don't run that script because it will not work AS THIS.
-
-
-
The best would be to buy the PhpSwitcher plugin which can compile PHP automatically... I can add support for phtread quickly if you want to buy it.
BTW: pthreads is a PECL extension.
Refs:
-
-