Skip to content

Instantly share code, notes, and snippets.

@euberdeveloper
Last active September 25, 2021 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save euberdeveloper/77bb33b35c99bd90426197a61938919e to your computer and use it in GitHub Desktop.
Save euberdeveloper/77bb33b35c99bd90426197a61938919e to your computer and use it in GitHub Desktop.
# Install phpenv
curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer \
| bash
# --- COPY WHAT IS DISPLAYED ON THE CONSOLE IN THE END OF YOUR BASHRC ---
# Install missing libraries used to install various php versions by phpenv
apt install libxml2-dev
apt install libjpeg-dev
apt install libonig-dev
apt install libtidy-dev
apt install libxslt1-dev
apt install libzip-dev
apt install autoconf
apt install bison
apt install libbison-dev
apt install libcurl4-openssl-dev && cd /usr/include && ln -s x86_64-linux-gnu/curl
https://blog.hanhans.net/2020/06/08/php-compile-with-focal/
apt install re2c
https://i-mscp.net/thread/19846-error-compiling-php-versions-for-php-switcher/?postID=61322#post61322
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment