Error at I-MSCP Update -> 1.2.9

  • @freedom


    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

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin


    We need pthreads because of this message by starting eBot:



    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. ^^

  • @freedom



    Code
    1. --with-mysql-sock=/var/run/mysqld/mysqld.sock

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin


    I tried to recompile the php version with your tutorial now, but seems I'm not very good at it. ^^


    Code
    1. ./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. :D


    Second try:


  • @freedom


    dev packages are needed. Here you installed the wrong package.


    Try to install: libmcrypt-dev and maybe also libgcrypt11-dev

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @freedom


    Look at that to know how I process for PhpSwitcher plugin:


    This is just to show you about parameters. Don't run that script because it will not work AS THIS.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin


    mcrypt seems to work now. But configure: error: Cannot find OpenSSL's <evp.h> and configure: WARNING: unrecognized options: --enable-pthreads are my problems now.
    I remember that I failed to install pthreads many times ago. Have you any idea?

  • @freedom


    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:

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206