Instalación de GD para PHP, no puede compilar las bibliotecas JPEG en OS X

  • MacLuv
  • Novice
  • Novice
  • No Avatar
  • Registrado: Jul 16, 2003
  • Mensajes: 19
  • Status: Offline

Nota Agosto 22nd, 2003, 4:04 am

Hola, soy de instalar GD de PHP en mi sistema OS X, que es BSD Unix o lo que sea...Tengo una guía fácil de seguir en esta ubicación:

http://www.stepwise.com/Articles/Workbe ... 12.01.html

Im intentando instalar las bibliotecas JPEG que necesito, pero no se complie en mi sistema. Im no seguro qué más necesito. Please advise. Aquí está el código de la ventana de terminal cuando corro "compilar":

Código: [ Select ]
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E -traditional-cpp
checking for function prototypes... yes
checking for stddef.h... no
checking for stdlib.h... no
checking for string.h... no
checking for size_t... not ANSI, perhaps it is in sys/types.h
checking for sys/types.h... no
no
Type size_t is not defined in any of the usual places.
Try putting "typedef unsigned int size_t;" in jconfig.h.
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... no
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
[meowith:/build-gd/jpeg-6b] chocky% make
gcc -O2 -I.  -c -o jcapimin.o jcapimin.c
jinclude.h:46: header file 'stdio.h' not found
jinclude.h:60: header file 'strings.h' not found
jpeglib.h:715: undefined type, found `size_t'
jpeglib.h:727: undefined type, found `size_t'
jpeglib.h:758: undefined type, found `size_t'
jpeglib.h:760: undefined type, found `size_t'
jpeglib.h:900: undefined type, found `size_t'
jpeglib.h:902: undefined type, found `size_t'
jpeglib.h:910: undefined type, found `FILE'
jpeglib.h:911: undefined type, found `FILE'
jpegint.h:378: undefined type, found `size_t'
jcapimin.c:30: undefined type, found `size_t'
jcapimin.c:38: illegal statement, missing `)' after `)'
jcapimin.c:51: illegal function call, found `sizeof'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [jcapimin.o] Error 1
  1. checking for gcc... gcc
  2. checking whether the C compiler (gcc ) works... yes
  3. checking whether the C compiler (gcc ) is a cross-compiler... no
  4. checking whether we are using GNU C... yes
  5. checking how to run the C preprocessor... gcc -E -traditional-cpp
  6. checking for function prototypes... yes
  7. checking for stddef.h... no
  8. checking for stdlib.h... no
  9. checking for string.h... no
  10. checking for size_t... not ANSI, perhaps it is in sys/types.h
  11. checking for sys/types.h... no
  12. no
  13. Type size_t is not defined in any of the usual places.
  14. Try putting "typedef unsigned int size_t;" in jconfig.h.
  15. checking for type unsigned char... yes
  16. checking for type unsigned short... yes
  17. checking for type void... yes
  18. checking for working const... yes
  19. checking for inline... __inline__
  20. checking for broken incomplete types... ok
  21. checking for short external names... ok
  22. checking to see if char is signed... yes
  23. checking to see if right shift is signed... yes
  24. checking to see if fopen accepts b spec... no
  25. checking for a BSD compatible install... /usr/bin/install -c
  26. checking for ranlib... ranlib
  27. checking libjpeg version number... 62
  28. creating ./config.status
  29. creating Makefile
  30. creating jconfig.h
  31. [meowith:/build-gd/jpeg-6b] chocky% make
  32. gcc -O2 -I.  -c -o jcapimin.o jcapimin.c
  33. jinclude.h:46: header file 'stdio.h' not found
  34. jinclude.h:60: header file 'strings.h' not found
  35. jpeglib.h:715: undefined type, found `size_t'
  36. jpeglib.h:727: undefined type, found `size_t'
  37. jpeglib.h:758: undefined type, found `size_t'
  38. jpeglib.h:760: undefined type, found `size_t'
  39. jpeglib.h:900: undefined type, found `size_t'
  40. jpeglib.h:902: undefined type, found `size_t'
  41. jpeglib.h:910: undefined type, found `FILE'
  42. jpeglib.h:911: undefined type, found `FILE'
  43. jpegint.h:378: undefined type, found `size_t'
  44. jcapimin.c:30: undefined type, found `size_t'
  45. jcapimin.c:38: illegal statement, missing `)' after `)'
  46. jcapimin.c:51: illegal function call, found `sizeof'
  47. cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
  48. make: *** [jcapimin.o] Error 1


Me imagino que necesito algo de compilación de las bibliotecas, pero no sé por dónde empezar a buscar o que los que necesito. Cualquier ayuda apreciada.

:)
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Agosto 22nd, 2003, 4:04 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • Avatar de Usuario
  • Registrado: Dic 20, 2002
  • Mensajes: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Nota Agosto 22nd, 2003, 2:16 pm

No estoy seguro de si esto va a ayudar, pero usted puede ser que asegúrese de que tiene libstdc + + instalado en el sistema.

http://gcc.gnu.org/libstdc++/

Además no estoy seguro de qué edad es su GCC, pero usted debería obtener la última allí también:

http://gcc.gnu.org/
Ozzu Hosting - Want your website on a fast server like Ozzu?

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 120 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC