PocketMine / PocketMine-MP

Legacy PocketMine-MP repository. Head to https://github.com/pmmp for up to date software.
https://www.pocketmine.net/
GNU Lesser General Public License v3.0
1.26k stars 660 forks source link

Unable to Find pthreads Extension #4369

Closed N1Chris closed 6 years ago

N1Chris commented 6 years ago

Issue description

[CRITICAL] Unable to find the pthreads extension. [CRITICAL] Please use the installer provided on the homepage. bin\php\php.exe: Exit 1

This says it all. I can run older versions of MCPE on older versions of PHP7 (7.0.4) without any issue, but once MCPE went to PHP 7.2.0 (which isn't even really out yet until later on this month), I have not been able to get it to work.

Simply copying the downloaded PHP files from the website into the bin/php folder causes it to spew out these many "unable to load dynamic library" errors while doing a fresh install of PHP 7.2.0 causes it to spew out the above error. I have also downloaded and installed pthreads correctly according the accompanying readme.md for pthreads.

Can someone please help me?

Steps to reproduce the issue

  1. Install below PHP version
  2. Install pthreads from the official pthreads website
  3. Try to run PocketMine-MP with the below version

OS and versions

P.S. I seem to be the only one running Windows while running Pocketmine-MP (don't get the fetish with Linux), so I believe my problem is unique to Windows.

Attached Screenshots:

1 2

Gumbraise commented 6 years ago

Hello ! I have the same error

image

I have tested several php_pthreads.dll and pthreadsVC2.dll

image

It works with MinecraftPE Server PocketMine-MP v.<1 (0.15.0, 0.14.0, etc...) and php between 5 and 7. But I would like install MinecraftPE Server PocketMine-MP v.1.0.9 image

If somebody has the solution, we are interested :D Bye !

dktapps commented 6 years ago

You're using the wrong version. You can get an up to date version from https://github.com/pmmp/PocketMine-MP/releases .

We supply custom-built PHP binaries for Windows containing all of the extensions you need. You can download them from https://ci.appveyor.com/project/pmmp/php-build-scripts/build/artifacts