sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
921 stars 126 forks source link

How do I enable the sqlite3 extension for my Pocketmine Server? #78

Closed tdubz1 closed 5 years ago

tdubz1 commented 5 years ago

How do I enable the sqlite3 extension for my Pocketmine Server? I need it for a plugin however when I remove the semi-colon in the php.ini Pocketmine tells me there is some error with loading it, Cheers, tdubz

sakaki- commented 5 years ago

Could you please post the error message you get from pocketmine? Thanks, sakaki

tdubz1 commented 5 years ago

Here is a link to the error I get: http://tinyurl.com/yxbfdgh9

sakaki- commented 5 years ago

You need to re-emerge the dev-lang/php package with the sqlite USE flag set. To do do, issue

demouser@pi64 ~ $  echo "dev-lang/php sqlite" | sudo tee -a /etc/portage/package.use/php

then:

demouser@pi64 ~ $  nice -n 19 sudo emerge --verbose --oneshot dev-lang/php

This may take some time to complete, so leave it to run overnight perhaps. Once done, if you restart your pocketmine server, you should (hopefully) find you can load the sqlite3 extension.

tdubz1 commented 5 years ago

Thank you very much @sakaki- I am very thankful for your help, The plugin I want to run is now running smoothly!