From owner-freebsd-questions Fri Jul 30 11:41:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id C4D7A14CEC for ; Fri, 30 Jul 1999 11:41:32 -0700 (PDT) (envelope-from bmbell@primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id LAA11861; Fri, 30 Jul 1999 11:40:14 -0700 (MST) Received: from ip-55-036.scf.primenet.com(206.132.55.36), claiming to be "primenet.com" via SMTP by smtp02.primenet.com, id smtpd011840; Fri Jul 30 11:40:10 1999 Message-ID: <37A1F240.5F77AC14@primenet.com> Date: Fri, 30 Jul 1999 11:43:12 -0700 From: Brian Bell X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.7 i586) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Arensburger Cc: questions@FreeBSD.ORG Subject: Re: gd 1.3 install References: <199907300607.CAA21761@glitnir.cfar.umd.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi again, Okay I found libpng.so.3 and it was in /usr/local/lib which is in my $ldconfig tree. I rebooted to make sure $ldconfig was up to date. I will give here the exact error I get. *************************make error******************** checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking for main in -lm... yes checking for main in -lz... yes checking for main in -lpng... no configure: error: libpng not found. *** Error code 1 ************************************************************ So I know that the lib is there and $ldconfig knows about it. Here is the configure code that does the actual looking. ************ gd configure file ***************** fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 { echo "configure: error: libpng not found." 1>&2; exit 1; } fi ************************************************************** I find that editing this configure file just gets me into a bunch of problems. Anyone have some ideas as to how i can get configure to recognize the libpng.so.3. Thanks again for all your help. Brian > Andrew Arensburger wrote: > On Thu, 29 Jul 1999 16:50:47 PDT, Brian Bell wrote: > > I am trying to install gd. It says when it configures that libpng > > cannot be found. I have installed the package png and libpng.a was > > installed. (libpng-1.03) What do i need to do to successfully install gd > > 1.3? Thanks. > > When a port says that it requires some library foo, what it > really does is run 'ldconfig -r | grep foo' (well, not quite, but > that's the idea). > This will fail if either a) the shared library (libpng.so*) > wasn't installed, or b) 'ldconfig' wasn't told about it. > > (b) might happen if the libpng.so was installed in, say, > /opt/lib, but /opt/lib isn't in $ldconfig_paths in /etc/rc.conf . You > need to add /opt/lib to $ldconfig_paths, and rerun 'ldconfig' as per > /etc/rc (if you don't feel like deciphering that script, you can > reboot). > > If "libpng.a" was installed, but "libpng.so" wasn't, then you > should be able to comment out the dependency line in the Makefile for > the gd port. > However, I wouldn't recommend this: the png port should > install libpng.so; if it wasn't installed, then something went wrong. > I'd recommend rebuilding and reinstalling the png port. > > -- > Andrew Arensburger, Systems guy Center for Automation Research > arensb@cfar.umd.edu University of Maryland > I liked "Slaughterhouse 5," but I can't find the first four anywhere. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message