Cannot get php pthreads to work on centos -
i'm struggling php pthreads working on linux centos php program errors warning: php startup: unable load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/pthreads.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/pthreads.so: undefined symbol: core_globals_id in unknown on line 0 , fatal error: class 'thread' not found in...
running "ls /usr/local/lib/php/extensions/no-debug-non-zts-20121212/" shows pthreads.so there:
apc.so fileinfo.so json.so mysqli.so opcache.so pdo_sqlite.so sqlite3.so xmlwriter.so curl.so gd.so mapi.so mysql.so pdo_mysql.so phar.so wddx.so xsl.so dom.so imap.so mbstring.so opcache.a pdo.so pthreads.so xmlreader.so zip.so
i ran script below configure php when run php -m "pthreads" not appear in list, , on php -i see thread safety => disabled. unusually when @ phpinfo() via browser see php version 5.5.8 , thread safety enabled.
any appreciated.
yum -y install aspell-devel bzip2-devel freetype-devel gmp-devel httpd-devel libcurl-devel libjpeg-devel libicu-devel libpng-devel libtidy-devel libvpx-devel libxml2-devel libxpm-devel libxslt-devel openssl-devel readline-devel t1lib-devel yum -y install gcc-c++ apr-devel libxml2-devel zlib zlib-devel mysql-devel openssl-devel sed -i "s/^\exclude.*$/exclude=/g" /etc/yum.conf version=5.5.8 # set version cd /usr/local/src wget http://www.php.net/distributions/php-$version.tar.gz tar zxvf php-$version.tar.gz /bin/rm -f config.cache yum install -y pam-devel libc-client libc-client-devel wget ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz tar -zxvf imap-2007f.tar.gz cd imap-2007f make lr5 extracflags=-fpic passwdtype=std ssltype=unix.nopwd ip6=4 echo "set disable-plaintext nil" > /etc/c-client.cf mkdir /usr/local/imap-2007f mkdir /usr/local/imap-2007f/include/ mkdir /usr/local/imap-2007f/lib/ chmod -r 077 /usr/local/imap-2007f /bin/rm -rf /usr/local/imap-2007f/include/* /bin/rm -rf /usr/local/imap-2007f/lib/* /bin/cp -rf imapd/imapd /usr/sbin/ /bin/cp -rf c-client/*.h /usr/local/imap-2007f/include/ /bin/cp -rf c-client/*.c /usr/local/imap-2007f/lib/ /bin/cp -rf c-client/c-client.a /usr/local/imap-2007f/lib/libc-client.a /bin/rm -f config.cache cd /usr/local/src/php-$version make clean /bin/rm -f configure ./buildconf --force ./configure --program-prefix= --prefix=/usr --with-config-file-path=/etc --enable-pthreads --enable-maintainer-zts --enable-cli --with-mysql --with-mysqli --with-pdo-mysql --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-pic --with-pear --with-bz2 --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-zlib --with-layout=gnu --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-kerberos --enable-shmop --enable-calendar --with-libxml-dir=/usr --enable-xml --with-apxs2=/usr/sbin/apxs --enable-dom --enable-json --with-pspell --with-curl --enable-mbstring --with-pcre-regex --enable-pcntl --with-imap-ssl=/usr/local/imap-2007f --with-imap=shared,/usr/local/imap-2007f make && make install # install pthreads cd /usr/local/src/php-$version /bin/cp -f /etc/php.ini /etc/php.ini.orig /bin/cp -f php.ini-development /etc/php.ini pecl install pthreads echo "extension=pthreads.so" >> /etc/php.ini php -m | grep pthreads /bin/rm -f /usr/local/src/php-$version.tar.gz echo "installed pthreads..."
Comments
Post a Comment