[BLUG] Env. variables for software install
Steven Black
blug_at_mailman.cs.indiana.edu
Tue, 27 Feb 2007 15:58:25 -0500
The other thing to remember is that the configure process executes test
cases that it builds with those flags.
Since the files in listed in /usr/sfw/lib are shared libraries, you need
to set LD_LIBRARY_PATH (or equivalent) so that the shared libraries are
found by the test cases when they are run. (Note: The environment
variable LD_LIBRARY_PATH or /etc/ld.so.conf is used in Linux. I do not
know what is used in recent versions of Solaris.)
This seems to be the problem as it doesn't say it can't find the
library. It says it can't find a *usable* copy of the library. That
implies a problem at the execute step, not at the link step.
Cheers,
Steven Black
On Tue, 2007-02-20 at 14:56 +0000, Jeff Welty wrote:
> Wow, that was fast... I haven't even gotten my own email to the list in
> my inbox :P
> I will try what you suggest Brian.
> Thanks,
> Jeff
>
> Brian Wheeler wrote:
> > There's a config.status file which contains the test programs and
> > results used by configure. Start reading in there (to make it easy,
> > search for some of the text output by configure that is near where you
> > fail) and see why its failing. Then modify configure to "do the right
> > thing" when it comes to that :) I had to do it a while back with some
> > crappy software that didn't include -lz when including -lpng and would
> > say I didn't have png support.
> >
> > Brian
> >
> >
> > On Tue, 2007-02-20 at 14:49 +0000, Jeff Welty wrote:
> >> Greetings BLUG,
> >> I'm having some difficulties setting the right environment variables for
> >> installing RRDtool on a SunOS box; the configuration step keeps missing
> >> the freetype libraries. Here's some background info:
> >> ~$ which freetype-config
> >> /usr/sfw/bin/freetype-config
> >>
> >> ~$ /usr/sfw/bin/freetype-config --libs
> >> -L/usr/sfw/lib -R/usr/sfw/lib -lfreetype
> >>
> >> I've tried a number of env var settings, such as:
> >> BUILD_DIR=/tmp/rrdbuild
> >> INSTALL_DIR=/home/jtwelty/rrdtool
> >> IR=-I/usr/sfw/lib
> >> CPPFLAGS="$IR $IR/freetype2"
> >> LDFLAGS="-L/usr/sfw/lib"
> >> CFLAGS=-O3
> >> export CPPFLAGS LDFLAGS CFLAGS
> >>
> >> Which I know is wrong somewhere... Then I did:
> >> mkdir -p $BUILD_DIR
> >> cd $BUILD_DIR
> >> /home/jtwelty/rrdtool/configure --prefix=$INSTALL_DIR \
> >> --disable-python --disable-tcl
> >>
> >> Then it will stop configuring and complain that it can't find "a working
> >> copy of freetype2" and that "Maybe I need to set LDFLAGS and CPPFLAGS
> >> appropriately so that compiler and the linker can find libfreetype and
> >> its header files" and then spits out this:
> >> LIBS=-lpng -lz -lart_lgpl_2 -lm -lfreetype
> >> LDFLAGS=-L/usr/sfw/lib -L/usr/sfw/lib -R/usr/sfw/lib
> >> CPPFLAGS=-I/usr/sfw/lib -I/usr/sfw/lib/freetype2
> >> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0
> >> -I/usr/include/freetype2 -I/usr/sfw/include/freetype2
> >>
> >> Of course /usr/sfw/lib includes libfreetype.so, libfreetype.so.6 and
> >> libfreetype.so.6.3.7
> >>
> >> Please help. Thanks in advance,
> >> Jeff
> >>
> >> _______________________________________________
> >> BLUG mailing list
> >> BLUG_at_linuxfan.com
> >> http://mailman.cs.indiana.edu/mailman/listinfo/blug
> >
> > _______________________________________________
> > BLUG mailing list
> > BLUG_at_linuxfan.com
> > http://mailman.cs.indiana.edu/mailman/listinfo/blug
>
>