Skip to content

Instantly share code, notes, and snippets.

@e7d
Last active November 11, 2024 09:56
Show Gist options
  • Save e7d/8310e938cad505c358a6ce511a0f3739 to your computer and use it in GitHub Desktop.
Save e7d/8310e938cad505c358a6ce511a0f3739 to your computer and use it in GitHub Desktop.
PHP dependencies for ASDF install on Ubuntu 24.04
#!/bin/bash
sudo apt install autoconf \
bison \
libcurl4-openssl-dev \
libgd-dev \
libonig-dev \
libpq-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libzip-dev \
locate \
openssl \
re2c \
zlib1g-dev
@e7d
Copy link
Author

e7d commented Nov 11, 2024

As of: 11/11/2024

Tested with: Ubuntu "Noble Numbat" 24.04.1 LTS.

Working for every supported versions and currently developped version of PHP:

  • 8.1
  • 8.2
  • 8.3
  • 8.4-RC

Resolved dependency tree:

The following additional packages will be installed:
  automake autotools-dev fontconfig-config fonts-dejavu-core fonts-dejavu-mono icu-devtools libaom-dev libaom3 libbrotli-dev libbz2-dev libdav1d-dev
  libdav1d7 libde265-0 libde265-dev libdeflate-dev libdeflate0 libexpat1-dev libfontconfig-dev libfontconfig1 libfreetype-dev libfreetype6 libgd3 libheif-dev
  libheif-plugin-aomdec libheif-plugin-aomenc libheif-plugin-libde265 libheif1 libicu-dev libicu74 libjbig-dev libjbig0 libjpeg-dev libjpeg-turbo8
  libjpeg-turbo8-dev libjpeg8 libjpeg8-dev liblerc-dev liblerc4 liblzma-dev libncurses-dev libonig5 libpng-dev libpng-tools libpq5 libpthread-stubs0-dev
  libsharpyuv-dev libsharpyuv0 libtiff-dev libtiff6 libtiffxx6 libvpx-dev libvpx9 libwebp-dev libwebp7 libwebpdecoder3 libwebpdemux2 libwebpmux3 libx11-dev
  libx265-199 libx265-dev libxau-dev libxcb1-dev libxdmcp-dev libxml2 libxpm-dev libxpm4 libzip4t64 libzstd-dev m4 uuid-dev x11proto-dev xorg-sgml-doctools
  xtrans-dev
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc libtool gettext bison-doc libcurl4-doc libidn-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev
  freetype2-doc libgd-tools libheif-plugin-x265 libheif-plugin-ffmpegdec libheif-plugin-jpegdec libheif-plugin-jpegenc libheif-plugin-j2kdec
  libheif-plugin-j2kenc libheif-plugin-rav1e libheif-plugin-svtenc icu-doc liblzma-doc ncurses-doc postgresql-doc-16 readline-doc sqlite3-doc libssl-doc
  libx11-doc libx265-doc libxcb-doc m4-doc ca-certificates
The following NEW packages will be installed:
  autoconf automake autotools-dev bison fontconfig-config fonts-dejavu-core fonts-dejavu-mono icu-devtools libaom-dev libaom3 libbrotli-dev libbz2-dev
  libcurl4-openssl-dev libdav1d-dev libdav1d7 libde265-0 libde265-dev libdeflate-dev libdeflate0 libexpat1-dev libfontconfig-dev libfontconfig1
  libfreetype-dev libfreetype6 libgd-dev libgd3 libheif-dev libheif-plugin-aomdec libheif-plugin-aomenc libheif-plugin-libde265 libheif1 libicu-dev libicu74
  libjbig-dev libjbig0 libjpeg-dev libjpeg-turbo8 libjpeg-turbo8-dev libjpeg8 libjpeg8-dev liblerc-dev liblerc4 liblzma-dev libncurses-dev libonig-dev
  libonig5 libpng-dev libpng-tools libpq-dev libpq5 libpthread-stubs0-dev libreadline-dev libsharpyuv-dev libsharpyuv0 libsqlite3-dev libssl-dev libtiff-dev
  libtiff6 libtiffxx6 libvpx-dev libvpx9 libwebp-dev libwebp7 libwebpdecoder3 libwebpdemux2 libwebpmux3 libx11-dev libx265-199 libx265-dev libxau-dev
  libxcb1-dev libxdmcp-dev libxml2 libxml2-dev libxpm-dev libxpm4 libzip-dev libzip4t64 libzstd-dev locate m4 openssl re2c uuid-dev x11proto-dev
  xorg-sgml-doctools xtrans-dev zlib1g-dev
0 upgraded, 88 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.7 MB of archives.
After this operation, 223 MB of additional disk space will be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment