D
D
Dmitry Rybin2019-02-26 23:16:42
PHP
Dmitry Rybin, 2019-02-26 23:16:42

How to fix error during pthreads installation on ubuntu 16.04?

Hello I need to install php7.0 zts + pthreads. After writing to ssh ./configure gives error
Makefile:196: recipe for target 'php_pthreads.lo' failed
make: *** [php_pthreads.lo] Error 1
How to fix?
Used these commands:
sudo apt-get install -y language-pack-en-base
LC_ALL=en_US.UTF-8 sudo add-apt-repository ppa:ondrej/php-zts
sudo apt-get update
sudo apt-get install php7. 0-zts php7.0-zts-dev
git clone https://github.com/krakjoe/pthreads.git
cd pthreads
phpize
./configure
make -j8
sudo make install
sudo mkdir -p /etc/php/7.0-zts/ conf.d/
is existingecho "extension=pthreads.so" > /etc/php/7.0-zts/conf.d/pthreads.ini

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question