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

Pocketmine on Raspberry Pi 3 #4301

Closed jamuwu closed 6 years ago

jamuwu commented 7 years ago
pi@raspberrypi:~/pocketmine $ ./start.sh 
Couldn't find a working PHP 7 binary, please use the installer.
pi@raspberrypi:~/pocketmine $ php -v
PHP 7.0.12-1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.12-1, Copyright (c) 1999-2016, by Zend Technologies
pi@raspberrypi:~/pocketmine $ 

I don't know what the problem is. I ran the command given by the "get pocketmine" section of the website

robske110 commented 7 years ago
  1. this project has moved -> check Readme
  2. this project uses a php bin in located in a folder inside the server folder.
  3. if you want to run pocketmine using your system php follow these steps:
    • Download src folder of pocketmine on pmmp/PocketMine-MP
    • Make sure you have all the extensions required
    • enter php /path/to/src/pocketmine/PocketMine.php
ebmarquez commented 7 years ago

I noticed the same error, when I looked in the start.sh script I saw it was calling PHP7 but in fact it downloads PHP5. I updated the script so it reflected what it did.
run this perl -i -pe 's/php7/php5/g' start.sh this will replace php7 with php5. this should get you started.

SOF3 commented 7 years ago

Project has moved -> check README.md