
piling gcc on a Pi? Good luck! This is where cross-compiling it on a powerful x86 machine is required, as in my pbuilder setup for armhf, which was successful in its creation, BTW.Īlso, you have to keep in mind that Stretch's default gcc is gcc-6.3, so if you compile and install gcc-5.3 as suggested above, you'll have to specify that your program use the gcc-5.3.which I haven't been able to tack onto pbuilder yet, though there are some guides on how to set up your new packages in a directory on your machine as a repo and then have pbuilder hook onto it. So, you could pull the sources for those and compile a Debian package If you want to cross compileĪnd I believe that these packages that are not in Debian are in Ubuntu, see:

Update-alternatives -config php to switch between them.

Then install the required modules: sudo apt install -y php8.0-extension_nameĮ.g.

Then install the base and cli: sudo apt install -y php8.0-common php8.0-cli To install php 8.0 add the repository: sudo wget -O /etc/apt//php.gpg Įcho "deb $(lsb_release -sc) main" | sudo tee /etc/apt//php.list

Here is the result of sudo apt-get install libapache2-mod-php5 php5: piraspberrypi3: sudo apt-get install libapache2-mod-php5 -y Reading package lists. Version 8 has moved json into core code and it is no longer a separate module.įull details can be seen on PHP Watch hereĪs for getting PiHole running fully, you may find their forum more help as it's not a Pi specific program / issue as PHP 8 is not shipped by default yet. Does anybody know why It is not finding the installation candidate.
