Skip to content

Instantly share code, notes, and snippets.

@JackNoordhuis
Last active September 24, 2019 10:55
Show Gist options
  • Save JackNoordhuis/5c4790a7bfcab7b7dd3d861c713406c3 to your computer and use it in GitHub Desktop.
Save JackNoordhuis/5c4790a7bfcab7b7dd3d861c713406c3 to your computer and use it in GitHub Desktop.
Info on how to compile pmmp's php scripts with pdo enabled
diff --git a/compile.sh b/compile.sh
index 0b8fc71..95d09c5 100755
--- a/compile.sh
+++ b/compile.sh
@@ -809,11 +809,10 @@ $HAS_POCKETMINE_CHUNKUTILS \
--disable-xmlwriter \
--disable-cgi \
--disable-session \
---disable-pdo \
--without-pear \
--without-iconv \
---without-pdo-sqlite \
--with-pic \
+--with-pdo-mysql \
--enable-phar \
--enable-ctype \
--enable-sockets \

Instructions

  1. Clone the php-build-scripts repo (make sure you have git installed and run git clone https://github.com/pmmp/php-build-scripts)
  2. Move into the cloned directory (cd php-build-scripts)
  3. Reinitialize the git repo (git init)
  4. Download or save the diff provided (curl -O https://gist.githubusercontent.com/JackNoordhuis/5c4790a7bfcab7b7dd3d861c713406c3/raw/5731469600fef0c6b163ace65138977125cb1be1/enable-pdo.patch)
  5. Apply the diff/patch (git apply enable-pdo.patch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment