I want to produce graphic (pixel) files so I decided to install GD and got it from CPAN.
I noticed it needed the gd graphics library, so I started to install that. I noticed that this needed the PNG graphics library, the zlib compression and (optionally, but what the heck -- I was warming up!) the FreeType rendering library as well as the JPEG library. So I installed these. (But I decided to give XPM and X Windows a miss.) I noticed that to install FreeType I needed GNU make, so I installed it too. Back to GD and tried to compile it, but I was missing include files for FreeType and jpeg, so I copied them by hand (I thought 'make install' did those things?). I got that working but now it needs malloc.h! I knew it must be somewhere and sure, there are several: /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/malloc.h, /usr/include/objc/malloc.h and /usr/include/sys/malloc.h. I don't know Unix very well (but I've learned a lot today!), I know that malloc is part of ANSI C -- why doesn't GD see it? [localhost:libs/GD/gd-1.8.4] peder% make cc -I. -I/usr/include/freetype2 -I/usr/local/include -O -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBTTF -c -o gdft.o gdft.c gdcache.h:43: header file 'malloc.h' not found cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make: *** [gdft.o] Error 1 Since I had just installed gnumake I tried it too, but with the same result. Second question: are these instalments safe for future System upgrades in /usr/local/ or should I have them somewhere else? Any advice is most welcome. -- /Peder Axensten Phone: +46-90-32344 (home), +46-90-786.7719 (work) Fax: +46-90-786.5121 (work)
