Re: Unable to install GDCHART in PHP 5.3
| From: | Abdul Rahman Riza | Date: | Sat, 17 Oct 2009 04:27:37 +0000 |
| Subject: | Re: Unable to install GDCHART in PHP 5.3 | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6702@lists.php.net to get a copy of this message | ||
Thank you Mark!
I am newbie in PHP and I need engine to generate chart and graph easily. Can
you suggest another package instead of GDCHART or I should intall an old
version of PHP?
Regards,
Riza
On Sat, Oct 17, 2009 at 11:46 AM, M. <karpeles@ookoo.org> wrote:
> Hi,
>
> http://pecl.php.net/package/GDChart
>
> Considering gdchart 0.2.0 is from 2006-01-03 and most recent change in
> repository is 18 months old, the fact that this ext doesn't compile with
> PHP 5.3 is not surprising.
>
> By the way the gdchart lib itself has no news since 2004, maybe you
> should consider using something else?
>
>
> Mark
>
>
> Le samedi 17 octobre 2009 à 11:28 +0800, Abdul Rahman Riza a écrit :
> > Dear All!
> >
> > Unable to install GDCHART in PHP 5.3 in ubuntu 9.04 as following
> >
> > root@ariza-laptop:/etc/apache2/mods-available# pecl install gdchart
> > downloading gdchart-0.2.0.tgz ...
> > Starting to download gdchart-0.2.0.tgz (52,417 bytes)
> > .............done: 52,417 bytes
> > 14 source files, building
> > running: phpize
> > Configuring for:
> > PHP Api Version: 20090626
> > Zend Module Api No: 20090626
> > Zend Extension Api No: 220090626
> > configure.in:150: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
> ...):
> > suspicious cache-id, must contain _cv_ to be cached
> > ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
> > ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
> > aclocal.m4:3555: AC_LIBTOOL_LINKER_OPTION is expanded from...
> > aclocal.m4:5493: _LT_AC_LANG_C_CONFIG is expanded from...
> > aclocal.m4:5492: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
> > aclocal.m4:2972: AC_LIBTOOL_SETUP is expanded from...
> > aclocal.m4:2952: _AC_PROG_LIBTOOL is expanded from...
> > aclocal.m4:2915: AC_PROG_LIBTOOL is expanded from...
> > configure.in:150: the top level
> > configure.in:150: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works,
> ...):
> > suspicious cache-id, must contain _cv_ to be cached
> > aclocal.m4:3510: AC_LIBTOOL_COMPILER_OPTION is expanded from...
> > aclocal.m4:7620: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
> > configure.in:150: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX,
> > ...): suspicious cache-id, must contain _cv_ to be cached
> > aclocal.m4:5606: _LT_AC_LANG_CXX_CONFIG is expanded from...
> > aclocal.m4:5605: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
> > aclocal.m4:4641: _LT_AC_TAGCONFIG is expanded from...
> > configure.in:150: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
> ...):
> > suspicious cache-id, must contain _cv_ to be cached
> > ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
> > ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
> > aclocal.m4:3555: AC_LIBTOOL_LINKER_OPTION is expanded from...
> > aclocal.m4:5493: _LT_AC_LANG_C_CONFIG is expanded from...
> > aclocal.m4:5492: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
> > aclocal.m4:2972: AC_LIBTOOL_SETUP is expanded from...
> > aclocal.m4:2952: _AC_PROG_LIBTOOL is expanded from...
> > aclocal.m4:2915: AC_PROG_LIBTOOL is expanded from...
> > configure.in:150: the top level
> > configure.in:150: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works,
> ...):
> > suspicious cache-id, must contain _cv_ to be cached
> > aclocal.m4:3510: AC_LIBTOOL_COMPILER_OPTION is expanded from...
> > aclocal.m4:7620: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
> > configure.in:150: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX,
> > ...): suspicious cache-id, must contain _cv_ to be cached
> > aclocal.m4:5606: _LT_AC_LANG_CXX_CONFIG is expanded from...
> > aclocal.m4:5605: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
> > aclocal.m4:4641: _LT_AC_TAGCONFIG is expanded from...
> > building in /var/tmp/pear-build-root/gdchart-0.2.0
> > running: /tmp/pear/temp/gdchart/configure
> > 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 for C compiler default output file name... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables...
> > 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... i686-pc-linux-gnu
> > checking host system type... i686-pc-linux-gnu
> > checking target system type... i686-pc-linux-gnu
> > checking for PHP prefix... /usr/local
> > checking for PHP includes... -I/usr/local/include/php
> > -I/usr/local/include/php/main -I/usr/local/include/php/TSRM
> > -I/usr/local/include/php/Zend -I/usr/local/include/php/ext
> > -I/usr/local/include/php/ext/date/lib
> > checking for PHP extension directory...
> > /usr/local/lib/php/extensions/no-debug-non-zts-20090626
> > checking for PHP installed headers prefix... /usr/local/include/php
> > checking if debug is enabled... no
> > checking if zts is enabled... no
> > checking for re2c... re2c
> > checking for re2c version... 0.13.5 (ok)
> > checking for gawk... no
> > checking for nawk... nawk
> > checking if nawk is broken... no
> > checking whether to enable gdchart support... yes, shared
> > /tmp/pear/temp/gdchart/configure: line 4499: cd: ext/gd: No such file or
> > directory
> > checking for ld used by cc... /usr/bin/ld
> > checking if the linker (/usr/bin/ld) is GNU ld... yes
> > checking for /usr/bin/ld option to reload object files... -r
> > checking for BSD-compatible nm... /usr/bin/nm -B
> > checking whether ln -s works... yes
> > checking how to recognise dependent libraries... pass_all
> > checking for ANSI C header files... yes
> > checking for sys/types.h... yes
> > checking for sys/stat.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for memory.h... yes
> > checking for strings.h... yes
> > checking for inttypes.h... yes
> > checking for stdint.h... yes
> > checking for unistd.h... yes
> > checking dlfcn.h usability... yes
> > checking dlfcn.h presence... yes
> > checking for dlfcn.h... yes
> > checking the maximum length of command line arguments... 32768
> > checking command to parse /usr/bin/nm -B output from cc object... ok
> > checking for objdir... .libs
> > checking for ar... ar
> > checking for ranlib... ranlib
> > checking for strip... strip
> > checking if cc static flag works... yes
> > checking if cc supports -fno-rtti -fno-exceptions... no
> > checking for cc option to produce PIC... -fPIC
> > checking if cc PIC flag -fPIC works... yes
> > checking if cc supports -c -o file.o... yes
> > checking whether the cc linker (/usr/bin/ld) supports shared libraries....
> > yes
> > checking whether -lc should be explicitly linked in... no
> > checking dynamic linker characteristics... GNU/Linux ld.so
> > checking how to hardcode library paths into programs... immediate
> > checking whether stripping libraries is possible... yes
> > checking if libtool supports shared libraries... yes
> > checking whether to build shared libraries... yes
> > checking whether to build static libraries... no
> >
> > creating libtool
> > appending configuration tag "CXX" to libtool
> > configure: creating ./config.status
> > config.status: creating config.h
> > running: make
> > /bin/bash /var/tmp/pear-build-root/gdchart-0.2.0/libtool --mode=compile
> cc
> > -I. -I/tmp/pear/temp/gdchart -DPHP_ATOM_INC
> > -I/var/tmp/pear-build-root/gdchart-0.2.0/include
> > -I/var/tmp/pear-build-root/gdchart-0.2.0/main -I/tmp/pear/temp/gdchart
> > -I/usr/local/include/php -I/usr/local/include/php/main
> > -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
> > -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
> -I/libgd
> > -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/gdchart/gdchart.c -o
> gdchart.lo
> > mkdir .libs
> > cc -I. -I/tmp/pear/temp/gdchart -DPHP_ATOM_INC
> > -I/var/tmp/pear-build-root/gdchart-0.2.0/include
> > -I/var/tmp/pear-build-root/gdchart-0.2.0/main -I/tmp/pear/temp/gdchart
> > -I/usr/local/include/php -I/usr/local/include/php/main
> > -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
> > -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
> -I/libgd
> > -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/gdchart/gdchart.c -fPIC -DPIC
> -o
> > .libs/gdchart.o
> > In file included from /tmp/pear/temp/gdchart/gdchart.c:35:
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:27:16: error: gd.h: No such file
> or
> > directory
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:28:21: error: gdfonts.h: No such
> > file or directory
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:29:21: error: gdfontt.h: No such
> > file or directory
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:30:22: error: gdfontmb.h: No
> such
> > file or directory
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:31:21: error: gdfontg.h: No such
> > file or directory
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:32:21: error: gdfontl.h: No such
> > file or directory
> > In file included from /tmp/pear/temp/gdchart/gdchart-src/gdc.h:33,
> > from /tmp/pear/temp/gdchart/gdchart.c:35:
> > /tmp/pear/temp/gdchart/gdchart-src/gifencode.h:7: error: expected ')'
> before
> > 'im'
> > /tmp/pear/temp/gdchart/gdchart-src/gifencode.h:8: error: expected '=',
> ',',
> > ';', 'asm' or '__attribute__' before
> > 'php_gd_gdImageCreateFromGif'
> > In file included from /tmp/pear/temp/gdchart/gdchart.c:35:
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:143: error: expected declaration
> > specifiers or '...' before 'gdIOCtx'
> > /tmp/pear/temp/gdchart/gdchart-src/gdc.h:148: error: expected ')' before
> > 'im'
> > make: *** [gdchart.lo] Error 1
> > ERROR: `make' failed
> > root@ariza-laptop:/etc/apache2/mods-available# /etc/init.d/apache2
> restart
> > * Restarting web server
> > apache2
> > apache2: Could not reliably determine the server's fully qualified domain
> > name, using 127.0.1.1 for ServerName
> > ... waiting apache2: Could not reliably determine the server's fully
> > qualified domain name, using 127.0.1.1 for ServerName
> >
> > [ OK ]
> > root@ariza-laptop:/etc/apache2/mods-available#
> >
> >
> > Please advise,
> > Riza
>
>