简体   繁体   中英

How to install pthreads package on OSX PHP 5.6 using pecl?

I'm using pecl to install pthreads package on OSX , PHP 5.6 but it is incorrect. pecl package is available (checked).

$ pecl install pthreads 

Error

No releases available for package "pecl.php.net/pthreads" install failed

$ pecl config-get php_dir
/usr/local/lib/php
$ php -i | grep Thread
Thread Safety => disabled

As you have noted in your update, you are not running a thread-safe version of PHP. This is a prerequisite for installing the pthreads extension, hence why you cannot find a release compatible for your installation of PHP.

Also note that pthreads is no longer supporting PHP 5.6 and below. Instead, you should utilise pthreads v3 targeting the PHP 7.x series to receive the latest bug fixes and features.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM