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
925 stars 127 forks source link

Enable MySQli extension? #80

Closed tdubz1 closed 5 years ago

tdubz1 commented 5 years ago

Same issue as the sqlite3 extension as I opened up earlier. Whenever I remove the semi-colon in the php.ini the plugin (requiring MySQli) comes up with this error:

image

How can I get the extension to work?

Thanks,

tdubz

sakaki- commented 5 years ago

You need to add the mysqli USE flag to dev-lang/php, and re-emerge it.

For convenience, I have added this flag (and sqlite) to the binary package build on the isshoni.org server, rebuilt it and pushed the resulting package to the binhost.

To get it, issue:

demouser@pi64 ~ $ sudo emaint sync --auto
demouser@pi64 ~ $ sudo emerge -av dev-lang/php

Hopefully this will automatically use the binary package just mentioned, rather than compiling from scratch locally, so should be relatively quick.

After that, if you restart your pocketmine server, with luck you will be able to enable the desired extension.

sakaki- commented 5 years ago

Closing now. Please re-open if the above does not work for you.