How to install libgd-dev on Ubuntu

GD Graphics Library (development version)

Vendor: GetPageSpeed https://libgd.github.io/

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel amd64 arm64 Version
Ubuntu 24.04 (noble) Base 2.3.3

Description

GD is a graphics library. It allows your code to quickly draw images complete with lines, arcs, text, multiple colours, cut and paste from other images, flood fills, and write out the result as a PNG file. This is particularly useful in World Wide Web applications, where PNG is one of the formats accepted for inline images by most browsers. This is the full development version of the library.

Built for Ubuntu.

Install

Base Ubuntu 24.04

libgd-dev on Ubuntu 24.04 (noble)

curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb
sudo apt-get install -y /tmp/getpagespeed-release.deb
rm /tmp/getpagespeed-release.deb
sudo apt-get update
sudo apt-get install -y libgd-dev

Package downloads require an active GetPageSpeed subscription — one repository for libgd-dev and thousands more packages for Ubuntu.

Subscribe — from $10/mo

Other releases and channels: use the setup wizard.

Frequently asked questions

How do I install libgd-dev on Ubuntu?

Add the GetPageSpeed repository, then install the libgd-dev package with your system package manager.

Which Ubuntu versions is libgd-dev available for?

libgd-dev is available for Ubuntu 24.04.

Subscribe