I'm not using the ports collection, because I prefer to keep things as "pure" as possible. As much as I like the convenience, I don't like tinkering with the ports files to get them to work the way I want them to. (Apache comes to mind immediately, with the directory structure differences between the BSD ported version, and the tarball straight from Apache)
I tried installing from the ports collection, but it seems to want gd-1.8.4_6. From what I understand, gd-2.x doesn't coexist well with previous versions. Here's the output : ===> Generating temporary packing list install -o root -g wheel -m 444 /usr/ports/graphics/gd/work/gd-1.8.4/index.html /usr/local/share/doc/gd ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for gd-1.8.4_6 ===> Returning to build of mrtg-2.9.29_2,1 Error: shared library "gd1.2" does not exist *** Error code 1 At this point, I suppose I'm willing to let go of the few applications that require later versions of gd, but I'd really prefer not to. -Kevin -----Original Message----- From: Corey Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 10:24 AM To: Kevin Nicholls Cc: [EMAIL PROTECTED] Subject: Re: [mrtg] MRTG configuration breaks at GD (FreeBSD 5.1 /mrtg-2.9.29 / gd-2.0.15) Why are you not using the ports collection? The ports collection uses: ./configure --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include I have a 5.1-RELEASE box I can test on if you want to go into more detail... Corey Smith On Tue, 2003-07-22 at 09:47, Kevin Nicholls wrote: I'm running a vanilla installation of FreeBSD 5.1, and have been unable to get MRTG to compile properly. I have followed the instructions, and have installed the prerequisite packages without issue, and as clean compiles, rather than installations from the FreeBSD port tree. I've also successfully managed to install MRTG on a FreeBSD 4.7 system, so this isn't my first attempt. The problem I'm having appears in the configuration script at this point (complete output is at the bottom of this message): checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... no checking for gdImagePng_jpg in -lgd... no checking for gdImagePng_jpg_ft in -lgd... no checking for gdImageGd in -lgd... no checking gd.h usability... no checking gd.h presence... no checking for gd.h... no >From here, the configuration script dies, and I'm given instructions to fix GD. I've tried all of the suggested instructions, and am at a loss. Even when I explicitly tell the configuration script where to find GD, the results are the same. I've noticed on some web forums that several people have posted similar problems when trying to install MRTG on OSX, but a solution was never posted. I'm wondering if anyone else has had similar issues, and if so, how they were resolved. From what I understand, the "fix GD" message can actually point to several things other than GD. Unfortunately, I've not been able to find another culprit. I'd be most appreciative for any solutions, or guidance towards getting MRTG up and running on this system. -Kevin rufus# ./configure 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 how to run the C preprocessor... gcc -E checking whether make sets ${MAKE}... yes checking for a BSD-compatible install... /usr/bin/install -c checking for perl... /usr/bin/perl checking for groff... /usr/bin/groff 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 for inttypes.h... (cached) yes checking for unsigned long long... yes checking for long long... yes checking for strtoll... yes checking for __strtoll... no checking for pow in -lm... yes checking if long long works here... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... no checking for gdImagePng_jpg in -lgd... no checking for gdImagePng_jpg_ft in -lgd... no checking for gdImageGd in -lgd... no checking gd.h usability... no checking gd.h presence... no checking for gd.h... no ** Ooops, one of many bad things happened: a) You don't have the GD library installed. Get it from http://www.boutell.com, compile it and use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify its location. You might also have to use --with-z-inc, --with-z-lib and --with-png-inc, --with-png-lib for gd versions 1.6 and higher. Check config.log for more information on the problem. b) You have the GD library installed, but not the gd.h header file. Download the source (see above) and use --with-gd-inc=DIR to specify where the file can be found. c) You have the library and the header file installed, but you also have a shared GD library in the same directory. Remove the shared library files and/or links (e.g. libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially likely if you're using a recent (post 1.8.4) version of GD and didn't configure it with --disable-shared. Consider following the instructions in doc/unix-guide.txt -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
