Doc #77078 [Opn->Nab]: Trying to install cairo, says cairo not found

From: Date: Mon, 29 Oct 2018 15:05:45 +0000
Subject: Doc #77078 [Opn->Nab]: Trying to install cairo, says cairo not found
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16107@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77078&edit=1 ID: 77078 Updated by: salathe@php.net Reported by: teo8976 at gmail dot com Summary: Trying to install cairo, says cairo not found -Status: Open +Status: Not a bug Type: Documentation Problem Package: cairo PHP Version: 7.2.11 Block user comment: N Private report: N New Comment: The PECL cairo package depends on the cairo graphics library. Instructions for installing the latter can be found at https://www.cairographics.org/download/ Previous Comments: ------------------------------------------------------------------------ [2018-10-29 12:10:45] teo8976 at gmail dot com Description: ------------ I'm trying to install pecl/cairo with # pecl install cairo-0.3.2 and I get an error that says that cairo is not found in the system. Brilliant. Test script: --------------- From the command line: # pecl install cairo-0.3.2 Expected result: ---------------- should either install, or tell me exactly what's wrong that causes the installation to fail Actual result: -------------- The output ends with this error: checking for cairo... not found configure: error: Ooops ! no cairo detected in the system ERROR: `/tmp/pear/temp/Cairo/configure --with-php-config=/usr/bin/php-config --with-cairo' failed Yeah, of course no cairo detected in the system, that's the very thing I'm trying to install, you idiot!! Full output below: # pecl install cairo-0.3.2 WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading Cairo-0.3.2.tgz ... Starting to download Cairo-0.3.2.tgz (173,203 bytes) .....................................done: 173,203 bytes 23 source files, building running: phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Please provide the prefix of the Cairo installation [autodetect] : building in /tmp/pear/temp/pear-build-rootHMTcLo/Cairo-0.3.2 running: /tmp/pear/temp/Cairo/configure --with-php-config=/usr/bin/php-config --with-cairo checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib checking for PHP extension directory... /usr/lib/php5/20131226 checking for PHP installed headers prefix... /usr/include/php5 checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... no checking for nawk... nawk checking if nawk is broken... no checking for Cairo graphics library support... yes, shared checking PHP version... ok checking for pkg-config... found checking for cairo... not found configure: error: Ooops ! no cairo detected in the system ERROR: `/tmp/pear/temp/Cairo/configure --with-php-config=/usr/bin/php-config --with-cairo' failed ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77078&edit=1

« previous php.doc.bugs (#16107) next »