🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #232511

Re: błedy polecenia pecl install cairo-0.3.2

#232511
From: RM
Date: Thu, 31 Oct 2019 14:39
91 lines
5348 bytes
W dniu 31.10.2019 o 15:02, RM pisze:
> W dniu 30.10.2019 o 23:42, Borys Pogoreło pisze:
>> Dnia Wed, 30 Oct 2019 17:52:23 +0100, RM napisał(a):
>>
>>>> Wygląda jakbyś potrzebował pakietu w rodzaju php-dev.
>>>>
>>> Zainstalowałem php-dev, php-all-dev, php7.0-dev. Nie pomogło. Jak
>>> sprawdzić którego pakietu brakuje?
>>
>> Wrzuciłem ten błąd w Google i wygląda jakbyś próbował skompilować pakiet
>> dla PHP 5 pod PHP 7 albo odwrotnie.
>>
> Ściągnąłem źródła cairo-php7 i mam w katalogu cairo-php7:
> 
> appveyor.yml  config.m4   CREDITS  examples  README.md  tests
> CHANGELOG     config.w32  docs     LICENSE   src
> 
> W katalogu cairo-php7/src są pliki:
> 
> cairo.c      font_options.c   php_cairo_api.h       region.c
> cairo_jpg.c  ft_font.c        php_cairo.h           scaled_font.c
> cairo_jpg.h  image_surface.c  php_cairo_internal.h  sub_surface.c
> context.c    matrix.c         ps_surface.c          surface.c
> exception.c  path.c           quartz_font.c         svg_surface.c
> font.c       pattern.c        recording_surface.c   win32_font.c
> font_face.c  pdf_surface.c    rectangle.c
> 
> Jak mam to skompilować? Nie ma makefile.
Poradziłem sobie: skompilowałem, zainstalowałem, przebootoweałem. Mam 
cairo w phpinfo.
Jednak przy configure dla PHP-GTK mam:

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-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20151012 
-I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM 
-I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext 
-I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... gawk
checking for PHP-GTK support... yes, shared
checking for PHP executable... found version 7.0.33-0ubuntu0.16.04.6
checking for gawk... (cached) gawk
checking whether to include debugging symbols... no
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.6.0... yes (version 2.48.2)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.6.0... yes (version 2.24.30)
checking for atk >= 1.9.0... yes
checking ATK_CFLAGS... -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
checking ATK_LIBS... -latk-1.0 -lgobject-2.0 -lglib-2.0
checking for pango >= 1.8.0... yes
checking PANGO_CFLAGS... -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
checking PANGO_LIBS... -lpango-1.0 -lgobject-2.0 -lglib-2.0
checking for cairo >= 1.4.0... yes
checking CAIRO_CFLAGS... -I/usr/include/cairo -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12
checking CAIRO_LIBS... -lcairo
checking for cairo php extension... no
configure: error: cairo php extension not found.

Nie wiem co zrobić.
Technical Details
Message-ID: <qpernr$3ss0q$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-153-241.play-internet.pl!not-for-mail
References: <qp9b2o$2i2i1$1@portraits.wsisiz.edu.pl> <1id7ogoyvnn05.8qioedmta2lv.dlg@40tude.net> <qpcf48$37k59$1@portraits.wsisiz.edu.pl> <f2s1mgx5y5f8.lb8f0mayi5uw.dlg@40tude.net> <qpephb$3spf8$1@portraits.wsisiz.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-153-241.play-internet.pl!not-for-mail
From: RM <robert_magdziarz@wp.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: błedy polecenia pecl install cairo-0.3.2
Date: Thu, 31 Oct 2019 15:39:54 +0100
Organization: http://www.wit.edu.pl
Message-ID: <qpernr$3ss0q$1@portraits.wsisiz.edu.pl>
References: <qp9b2o$2i2i1$1@portraits.wsisiz.edu.pl> <1id7ogoyvnn05.8qioedmta2lv.dlg@40tude.net> <qpcf48$37k59$1@portraits.wsisiz.edu.pl> <f2s1mgx5y5f8.lb8f0mayi5uw.dlg@40tude.net> <qpephb$3spf8$1@portraits.wsisiz.edu.pl>
Mime-Version: 1.0
Injection-Date: Thu, 31 Oct 2019 14:39:55 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="user-5-173-153-241.play-internet.pl:5.173.153.241"; logging-data="4091930"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
In-Reply-To: <qpephb$3spf8$1@portraits.wsisiz.edu.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit