Hello, I have an raspberry pi 4 with 4gb of ram. I want to install pocketmine on my raspberry pi My raspberry pi is on ubuntu arm64 19.10 for 64 bits I have install php for linux but start.sh in terminal say: translate: ./start.sh: line 60: /home/ubuntu/servermc/bin/php7/bin/php: unable to execute binary file: Format error for exec() ./start.sh: line 60: /home/ubuntu/servermc/bin/php7/bin/php: Success Thanks in advance for the help
Try compiling the php binary by yourself: Download compile.sh from here: https://github.com/pmmp/php-build-scripts/raw/master/compile.sh And execute it with these arguments: Code: ./compile.sh -t aarch64 -j 4 -f -u -g -l
I had the same problem, but when I follow the instructions I got this: [ERROR] Selected PHP binary (/usr/bin/php7.2) does not satify some requirements. - Unable to find BC Math (bcmath) extension. - Unable to find cURL (curl) extension - Unable to find Multibyte String (mbstring) extension - Unable to find pthreads extension - Unable to find the YAML extension -Unable to find the Zip extension [ERROR] please recompile PHP with the needed configuration, or refer to the installation instructions at http://pmmp.rtfd.io/en/rtfd/installation.html.
I keep on getting this error when trying to recompile. Will check back later, but if anyone can point me in the right direction that would be great. I'll keep on trying to figure this out. [pi@pi4 Pocketmine]$ ./compile.sh [PocketMine] PHP compiler for Linux, MacOS and Android [INFO] Checking dependencies [ERROR] Please install "make" [ERROR] Please install "autoconf" [ERROR] Please install "automake" [ERROR] Please install "m4" [ERROR] Please install "bison" [ERROR] Please install "g++" [ERROR] Please install "cmake" [ERROR] Please install "pkg-config" [ERROR] Please install "re2c" [pi@pi4 Pocketmine]$ EDIT: I was able to find all of these dependencies, and i'm currently compiling. I'm sorry to have been a newbie
It Was successful. The biggest issue i had was geting all my dependencies in order before recompiling. Thank you @HimbeersaftLP for the terminal code recompile. If anyone needs a tutorial on how to do so as brand new linux install on a PI4 i now know how to do it and have found the relavant info from researching the google and this form lol Also thank you @Primus for your kind Comments.
So i also did the compiler manuel but i still have this problem: [PocketMine] PHP compiler for Linux, MacOS and Android [INFO] Checking dependencies [ERROR] Please install "make" [ERROR] Please install "autoconf" [ERROR] Please install "automake" [ERROR] Please install "m4" [ERROR] Please install "bison" [ERROR] Please install "g++" [ERROR] Please install "cmake" [ERROR] Please install "pkg-config" [ERROR] Please install "re2c" [ERROR] Please install "libtool" or "libtool-bin" Any ideas? Would be very thankful for help