friendica / docker

Docker image for Friendica
https://friendi.ca
GNU Affero General Public License v3.0
44 stars 18 forks source link

Error: GNU Multiple Precision PHP module required but not installed. #211

Closed Jeffmackinnon closed 1 year ago

Jeffmackinnon commented 1 year ago

I created a stack in portainer with this configuration:


version: '2'

services: db: image: mariadb restart: always volumes:

volumes: db: friendica:


When I started the site via :8080 I recieved the error on this page.

image

I went through the available environment variables here -https://github.com/friendica/docker#possible-environment-variables but didn't see anything that would allow me to address this.

Any help you can provide is greatly appreciated.

MrPetovan commented 1 year ago

@nupplaphil It looks like the container needs another extension activation in the build.

Jeffmackinnon commented 1 year ago

After poking around for a bit I notice that the PHP: GMP (I think this is the same thing) isn't listed as a requirement on the Friendica Requirements Page - https://friendi.ca/resources/requirements/

I don't know how to test any changes to the dockerfile (still n00b) but I'm guessing that libgmp-dev needs to be added b/w lines 57 and 70 of the Debian dockerfile template - https://github.com/friendica/docker/blob/stable/Dockerfile-debian.template

MrPetovan commented 1 year ago

Yes, the GMP is the GNU Multiple Precision extension. Thanks for the hint about the outdated Friendi.ca requirement page. We ship a documentation with all Friendica installs and it's been updated over here (like there for example: https://friendica.mrpetovan.com/help/Install#Requirements) but we haven't taken the time to update on the website yet.

Your suggestion looks good but I'd rather have @nupplaphil 's opinion about it.