#How to install a php extension?

4 messages · Page 1 of 1 (latest)

bronze jasper
#

So while I installed php on it and ran a custom Minecraft Server called PocketMine-MP. This may be like off-topic support form

[ERROR] Selected PHP binary does not satisfy some requirements.
 - Unable to find the PocketMine ChunkUtils v2 (chunkutils2) extension.
 - Unable to find the php-crypto (crypto) extension.
 - Unable to find the igbinary (igbinary) extension.
 - Unable to find the LevelDB (leveldb) extension.
 - Unable to find the morton (morton) extension.
 - Unable to find the pthreads (pthreads) extension.
 - Unable to find the YAML (yaml) extension.
[ERROR] PHP binary used: /data/data/com.termux/files/usr/bin/php
[ERROR] Loaded php.ini: none
[ERROR] Value of PHPRC environment variable:
[ERROR] Please recompile PHP with the needed configuration, or refer to the installation instructions at http://pmmp.rtfd.io/en/rtfd/installation.html.
``` the error is telling me that I need this extension:

chunkutils2
php-crypto (idk this exists for some reason)
igbinary
leveldb
morton
pthreads
yaml

#

Also I tried to install that extension using pkg and apt but both of them couldn't work because it does not exist

#

🤔

#

nvm i just fixed