Visualizzazione dei risultati da 1 a 8 su 8

Discussione: php e librerie gd

  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    55

    php e librerie gd

    Ciao , ho un server linux con redhat 9.0 con php-4.2.2-17.2 installato via rpm, vorrei aggiungere le librerie GD 2 ma nelle info che ho trovato parla di dare le impostazione quando si fa ./configure.

    potrei eliminare php e reinstallarlo compilando i sorgenti ma non essendo esperto ho paura di fare dei casini , sopratutto perchè il server ospita alcuni siti che sono online


    grazie
    esiste un modo semplice e sicuro per installare le GD?

  2. #2
    ma senza reinstallare tutto nn puoi aggiungerle e via?

  3. #3
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    55
    si sarebbe bello ma come si fa ?

    grazie

  4. #4
    ma nelle info che ho trovato parla di dare le impostazione quando si fa ./configure.

    cioè?

  5. #5
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    55
    ho provato a compilare le gd e questo è il ridsultato del ./configure

    -bash: ./confgure: No such file or directory
    [root@efesto gd-2.0.22]# ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output... 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 gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ANSI C... none needed
    checking for a BSD-compatible install... /usr/bin/install -c
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for ld used by GCC... /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 for a sed that does not truncate output... /bin/sed
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking command to parse /usr/bin/nm -B output... ok
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    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 for ranlib... ranlib
    checking for strip... strip
    checking for objdir... .libs
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.lo... yes
    checking if gcc supports -fno-rtti -fno-exceptions... yes
    checking whether the linker (/usr/bin/ld) supports shared libraries... yes
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking whether -lc should be explicitly linked in... no
    creating libtool
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ranlib... (cached) ranlib
    checking for X... no
    checking for ANSI C header files... (cached) yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for ld used by GCC... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for iconv... yes
    checking for iconv declaration...
    extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
    checking iconv.h usability... yes
    checking iconv.h presence... yes
    checking for iconv.h... yes
    checking whether iconv.h defines iconv_t... yes
    checking for sin... no
    checking for sin in -lm... yes
    checking for deflate in -lz... no
    configure: WARNING: zlib is required - see http://www.gzip.org/zlib/
    checking for libpng12-config... no
    checking for libpng-config... no
    checking png.h usability... no
    checking png.h presence... no
    checking for png.h... no
    checking libpng/png.h usability... no
    checking libpng/png.h presence... no
    checking for libpng/png.h... no
    checking for png_create_read_struct in -lpng... no
    configure: WARNING: libpng is required - see http://www.libpng.org/pub/png/
    checking for freetype-config... no
    checking for FT_Init_FreeType in -lfreetype... no
    configure: WARNING: not found - disabling freetype support
    checking freetype/freetype.h usability... no
    checking freetype/freetype.h presence... no
    checking for freetype/freetype.h... no
    checking for jpeg_set_defaults in -ljpeg... no
    checking for XpmReadFileToXpmImage in -lXpm... no
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for cc_r... gcc

    ** Configuration summary for gd 2.0.22:

    Support for PNG library: no
    Support for JPEG library: no
    Support for Freetype 2.x library: no
    Support for Xpm library: no
    Support for pthreads: yes

    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config/Makefile
    config.status: creating config/gdlib-config
    config.status: creating test/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    questo invece è il risultato del make

    make all-recursive
    make[1]: Entering directory `/downloads/gd-2.0.22'
    Making all in config
    make[2]: Entering directory `/downloads/gd-2.0.22/config'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/downloads/gd-2.0.22/config'
    Making all in test
    make[2]: Entering directory `/downloads/gd-2.0.22/test'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/downloads/gd-2.0.22/test'
    make[2]: Entering directory `/downloads/gd-2.0.22'
    /bin/sh ./libtool --mode=link gcc -g -O2 -o gdparttopng gdparttopng.o ./libgd.la -lm
    gcc -g -O2 -o .libs/gdparttopng gdparttopng.o ./.libs/libgd.so -lm -Wl,--rpath -Wl,/usr/local/lib
    gdparttopng.o(.text+0xac): In function `main':
    /downloads/gd-2.0.22/gdparttopng.c:42: undefined reference to `gdImageCreateFromGd2Part'
    collect2: ld returned 1 exit status
    make[2]: *** [gdparttopng] Error 1
    make[2]: Leaving directory `/downloads/gd-2.0.22'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/downloads/gd-2.0.22'
    make: *** [all] Error 2
    e questo del make install

    Making install in config
    make[1]: Entering directory `/downloads/gd-2.0.22/config'
    make[2]: Entering directory `/downloads/gd-2.0.22/config'
    /bin/sh ../config/mkinstalldirs /usr/local/bin
    /usr/bin/install -c gdlib-config /usr/local/bin/gdlib-config
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/downloads/gd-2.0.22/config'
    make[1]: Leaving directory `/downloads/gd-2.0.22/config'
    Making install in test
    make[1]: Entering directory `/downloads/gd-2.0.22/test'
    make[2]: Entering directory `/downloads/gd-2.0.22/test'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/downloads/gd-2.0.22/test'
    make[1]: Leaving directory `/downloads/gd-2.0.22/test'
    make[1]: Entering directory `/downloads/gd-2.0.22'
    /bin/sh ./libtool --mode=link gcc -g -O2 -o gdparttopng gdparttopng.o ./libgd.la -lm
    gcc -g -O2 -o .libs/gdparttopng gdparttopng.o ./.libs/libgd.so -lm -Wl,--rpath -Wl,/usr/local/lib
    gdparttopng.o(.text+0xac): In function `main':
    /downloads/gd-2.0.22/gdparttopng.c:42: undefined reference to `gdImageCreateFromGd2Part'
    collect2: ld returned 1 exit status
    make[1]: *** [gdparttopng] Error 1
    make[1]: Leaving directory `/downloads/gd-2.0.22'
    make: *** [install-recursive] Error 1

    grazie

  6. #6
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    55
    i pacchetti che nel configure mi dece "is required" se tento di installarli mi dice che sono già installati....

  7. #7
    azz nn so come iutatarti m spiace :\

  8. #8
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    55
    ok , grazie comunque

    nessuno sa darmi qualche sonsiglio?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.