Skip to content
Blog

PECL Cairo with PHP 5.3

14 February 2012 | INGATE Team

The PECL Cairo extension enables the use of the Cairo graphics library in PHP. Here is a brief guide to installing it under PHP 5.3 on Debian.

Prerequisites

The following packages must be installed:

  • PHP 5.3 with development headers (php5-dev)
  • The Cairo library (libcairo2-dev)
  • PECL (php-pear)

Installation

Installation is done via PECL:

  1. Install the required dependencies
  2. Install the Cairo extension via PECL
  3. Enable the extension in php.ini

Known Issues

Under certain circumstances, compilation may fail if the Cairo development packages are not fully installed. Make sure all dependencies are present.

Use Cases

The Cairo extension is suitable for:

  • Dynamic image generation
  • PDF generation
  • SVG rendering

For questions about installing or configuring PHP extensions, contact our technical team at info@ingate.de.

Technology Partners & Memberships

Dell PartnerDirect
Equinix
EMC Home of Data
Juniper Networks
LiveConfig
Microsoft Cloud Solution Provider
Microsoft SPLA Partner
RIPE NCC Member