Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 1999 11:43:12 -0700
From:      Brian Bell <bmbell@primenet.com>
To:        Andrew Arensburger <arensb@cfar.umd.edu>
Cc:        questions@FreeBSD.ORG
Subject:   Re: gd 1.3 install
Message-ID:  <37A1F240.5F77AC14@primenet.com>
References:  <199907300607.CAA21761@glitnir.cfar.umd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <<EOF
#define $ac_tr_lib 1
EOF
 
  LIBS="-lpng $LIBS"
 
else
  echo "$ac_t""no" 1>&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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37A1F240.5F77AC14>