note 114837 added to pthreads.installation
| From: | PedroProenca | Date: | Sat, 12 Apr 2014 11:22:11 +0000 |
| Subject: | note 114837 added to pthreads.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199252@lists.php.net to get a copy of this message | ||
I haven't found any proper instructions on how to install pthreads in linux, so I'll leave
the steps I followed:
# Required libraries
sudo apt-get install gcc make libzzip-dev libreadline-dev libxml2-dev \
libssl-dev libmcrypt-dev libcurl4-openssl-dev lib32bz2-dev
# Download PHP
cd /usr/local/src
wget http://www.php.net/distributions/php-<version>.tar.gz
( e.g. wget http://www.php.net/distributions/php-5.5.8.tar.gz
)
# Extract
tar zxvf php-<version>.tar.gz
(e.g. tar zxvf php-5.5.8.tar.gz )
# Configure
cd /usr/local/src/php-<version>
( e.g. cd /usr/local/src/php-5.5.8 )
./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
# Compile
make && make install
( make -j3 && make -j3 install) -> Faster building
# Copy configuration
cp php.ini-development /etc/php.ini
# Install pthreads
pecl install pthreads
echo "extension=pthreads.so" >> /etc/php.ini
# Check installation
php -m | grep pthreads
----
Server IP: 72.52.91.14
Probable Submitter: 82.154.112.77
----
Manual Page -- http://php.net/manual/en/pthreads.installation.php
Edit -- https://master.php.net/note/edit/114837
Del: integrated -- https://master.php.net/note/delete/114837/integrated
Del: useless -- https://master.php.net/note/delete/114837/useless
Del: bad code -- https://master.php.net/note/delete/114837/bad+code
Del: spam -- https://master.php.net/note/delete/114837/spam
Del: non-english -- https://master.php.net/note/delete/114837/non-english
Del: in docs -- https://master.php.net/note/delete/114837/in+docs
Del: other reasons-- https://master.php.net/note/delete/114837
Reject -- https://master.php.net/note/reject/114837
Search -- https://master.php.net/manage/user-notes.php