Question

Installing Pthreads with LAMP on a blank droplet

  • Posted February 2, 2014

I’m having a lot of trouble installing Pthreads on a blank droplet (tried Ubuntu, Centos & Debian). I just can’t get it to install. Could somebody link me to a guide on how to this from the start? OS doesn’t matter.

Thanks!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

How are you running the file? Trhough the CLI or apache? <br> <br>It also seems like you can install it from PECL which should be easier. Try running the following commands: <br><pre>sudo apt-get install php-pear <br>sudo pecl install pthreads <br>sudo service apache2 restart</pre>

Which means it’s not installed yet :(

class ‘Thread’ not found :/

(Try that out on an Ubuntu droplet)

Does installing <code>php5-dev</code>, cloning <a href=“https://github.com/krakjoe/pthreads”>https://github.com/krakjoe/pthreads</a> and running <code>phpize</code> in the root directory of the repo work?