note 112868 added to pthreads.installation

From: Date: Tue, 30 Jul 2013 23:54:53 +0000
Subject: note 112868 added to pthreads.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-195832@lists.php.net to get a copy of this message
HOW TO INSTALL IN LINUX SYSTEM'S: ------------------------------------ 1) Download PHP sources and Unpack PHP 2) Download PEAR wget http://pear.php.net/go-pear.phar php go-pear.phar 3) Download pthreads Get PECL extension (PECL is a repository for PHP Extensions) # pecl install pthread-0.4.4 4) Unpack pthreads copy pthread-0.4.4 to php/ext (for ./configure allow add option --enable-pthreads) # mv build/php-src-master/ext/pthreads-master build/php-src-master/ext/pthreads 5) Reconfigure sources # ./buildconf --force # ./configure --help | grep pthreads You should see the appropriate --enable-pthreads option listed as a result, if you do not, then # rm -rf aclocal.m4 # rm -rf autom4te.cache/ # ./buildconf --force 6) Build PHP Compile PHP source code Add: # ./configure --enable-debug --enable-maintainer-zts --enable-pthreads 7) Installing PHP # make # sudo make install 8) Update php.ini Add in php.ini extension=pthreads.so Include_path = “/usr/local/lib/php” 9) Check Modules php -m (check pthread loaded) 10) Test Thread Class # php SimpleTest.php ---- Server IP: 92.48.119.85 Probable Submitter: 157.166.128.70 ---- Manual Page -- http://php.net/manual/en/pthreads.installation.php Edit -- https://master.php.net/note/edit/112868 Del: integrated -- https://master.php.net/note/delete/112868/integrated Del: useless -- https://master.php.net/note/delete/112868/useless Del: bad code -- https://master.php.net/note/delete/112868/bad+code Del: spam -- https://master.php.net/note/delete/112868/spam Del: non-english -- https://master.php.net/note/delete/112868/non-english Del: in docs -- https://master.php.net/note/delete/112868/in+docs Del: other reasons-- https://master.php.net/note/delete/112868 Reject -- https://master.php.net/note/reject/112868 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195832) next »