Hi, I'm a newbie, having build problems on a Raspberry Pi 4, 4GB, running ubuntu 19.10, arm64 OS. I'm trying to run minecraft using this install guide: https://www.astralinternet.com/blog/en/build-minecraft-pocket-edition-server-ubuntu/ I got to the point where I'm running the line - "wget -q -O - https://get.pmmp.io | bash -s -" but get an error around build not supported on this platform (see attached image), and the screen application just terminates. Thanks in advance for any help
$ ./start.sh ./start.sh: line 60: /home/minecraft/bin/php7/bin/php: cannot execute binary file: Exec format error ./start.sh: line 60: /home/minecraft/bin/php7/bin/php: Success
Can you tell me the output of these three commands? Code: uname -a file /home/minecraft/bin/php7/bin/php readelf -h /home/minecraft/bin/php7/bin/php
Sure... ubuntu@ubuntu:~$ uname -a Linux ubuntu 5.3.0-1023-raspi2 #25-Ubuntu SMP Tue Apr 14 11:35:19 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux ubuntu@ubuntu:~$ file /home/minecraft/bin/php7/bin/php /home/minecraft/bin/php7/bin/php: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=d18a62e10177de696f781de4a944beaf6807eba4, with debug_info, not stripped ubuntu@ubuntu:~$ readelf -h /home/minecraft/bin/php7/bin/php ELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - GNU ABI Version: 0 Type: EXEC (Executable file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x494030 Start of program headers: 64 (bytes into file) Start of section headers: 14319440 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 10 Size of section headers: 64 (bytes) Number of section headers: 40 Section header string table index: 37 ubuntu@ubuntu:~$
That's odd, even though it claimed to have compiled for the target architecture, the binary seems to be for x86 instead of ARM. Makee a new folder and try to compile the binary manually there with the following commands: Code: wget https://github.com/pmmp/php-build-scripts/raw/master/compile.sh chmod +x compile.sh ./compile.sh -j 4 -f -u -g -l