Hi, I'm installing GD for PHP on my OS X system which is BSD Unix or whatever... I have a easy to follow guide at this location:
http://www.stepwise.com/Articles/Workbe ... 12.01.html
I'm trying to install the JPEG libraries that I need, but they won't complie on my system. I'm not sure what else I need. Please advise. Here is the code from the terminal window when I run "compile":
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
- 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
I imagine I need some compiling libraries but I don't know where to start looking or which ones I need. Any help appreciated.
