Hi, total newbie here. I am working on trying to install PMMP 3.1.3 on an iMac running macOS 10.13.6. Using the installer gives me an error in the version of PHP it brings along. [KelleriMacocketmine-mp MacKeller$ curl -sL https://get.pmmp.io | bash -s [*] Retrieving latest build data for channel "alpha" [*] Found PocketMine-MP 3.1.3 (build 1339) for Minecraft: PE v1.5.0 (PHP 7.2) [*] This alpha build was released on Sat Aug 4 11:42:11 EDT 2018 [*] Installing/updating PocketMine-MP on directory ./ [1/3] Cleaning... [2/3] Downloading PocketMine-MP phar... done! [3/3] Obtaining PHP: detecting if build is available... MacOS PHP build available... downloading 7.2 ... checking... downloaded PHP build doesn't work on this platform! Okay - so that might be a problem... but wait, there's more. [3/3] No prebuilt PHP found, compiling PHP automatically. This might take a while. [PocketMine] PHP compiler for Linux, MacOS and Android [INFO] Checking dependencies [INFO] Compiling for current machine using 64-bit PHP downloading 7.2.8... done! [zlib] downloading 1.2.11... checking... compiling...KelleriMacocketmine-mp MacKeller$ sh start.sh [ERROR] PocketMine-MP requires PHP >= 7.2.0, but you have PHP 7.1.16. [/INDENT] So when I type: php -v I do indeed see that it is only 7.1.16, even though it said it downloaded 7.2.8. What next?
Okay, so I managed to install php, but obviously in the wrong location. KelleriMacocketmine-mp MacKeller$ brew install php Warning: php 7.2.8 is already installed and up-to-date
I assume you still have the outdated php bin, so you may want to replace that with the correct version. Or, you could change the path pmmp uses in either the start file, or pocketmine.php, I'm not certain.
Deleted bin from within the PMMP folder, but that didn't take care of it. The proper php has to be in the PMMP folder, I believe. Not sure how to get it there, though
You can find pre-built php binaries for macOS here: https://jenkins.pmmp.io/job/PHP-7.2-Aggregate/ You just need to download it and unpack it into the same folder that your PocketMine-MP.phar is in (the folder will be called bin).
the installer has been fixed, it wrongly detected that the build doesn't work on the platform https://github.com/pmmp/php-build-scripts/commit/15328916ec8a7c768480ebc4d83f8142907beafb