LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-01-2011, 09:14 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
can't configure mrtg-2.17 slackbuild on slack13.1


Hello everyone,
I am on a slackware13.0 machine, that I just finished upgrading to 13.1 with slackpkg.
(did slackpkg update; slackpkg upgrade-all; slackpkg install-new. I did not restart the machine).

Now im attempting to run the mrtg slackbuild but I get the following during the configure stage:

Quote:
...
... [ alot of configure output omitted ]
...
checking for gd.h... yes

** 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.

d) You have gd library installed and also it's headers, but you are
missing libpng (and headers) or freetype (and headers)
(mrtg does not use freetype, but if your copy of gd is precompiled
against it, you have to install it ...

Consider following the instructions in doc/mrtg-unix-guide.txt
root@stardust:/tmp/slackbuilds/mrtg/mrtg#
-I went ahead and removed libgd.so* from /usr/lib/ , but the same msg popped up.
- I could try and re-compile libgd manually, but I prefer to do things the 'slackbuild' way. Additionally, If something needed tweaking I suspect that the mrtg slackbuild page would give info about it....

Anyone else have this problem? Am i missing something?

Thank you for your help
 
Old 02-01-2011, 12:41 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

I've had that problem before, here's basically what I did;

1) I grabed the source for libgd, and compiled a static version.
I used "--prefix=/usr/local/libgb-x.y.z-ddmmmyy" when I ran ./configure so it would throw it all in one directory.

2) When I started messing with mrtg, I set a shell environment that overrides where the linker looks for libraries.
LD_LIBRARY_PATH=/usr/local/libgb-x.y.z-ddmmmyy:/lib:/usr/lib

3) Bam, solved a few other minor building woes.

Hope this helps! (If this post, or any other helps, hit "Yes" to "This post helpful?" in the bottom-right corner of that post. Would also be nice if the thread is marked [SOLVED]).

P.S:
Quote:
went ahead and removed libgd.so*
I hope you can undo that....something else will break on you if you start messing with libraries like that.
 
1 members found this post helpful.
Old 02-02-2011, 03:07 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
Quote:
P.S:
Quote:
went ahead and removed libgd.so*
I hope you can undo that....something else will break on you if you start messing with libraries like that.
yes yes, always be able to retrack your steps.. I merely moved the libgd out of /usr/lib/.. no permanent deletion stuff.

I shall try building a static version tonight and let you know how it went.
Thanks!
 
Old 02-07-2011, 06:40 AM   #4
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
finally!
I did pretty much as you said.
-compiled a static version of libgd in a separate folder.
- instead of 2) I altered the slackbuild and added specific libgd locations for static lib and headers:

Quote:
CFLAGS="$SLKCFLAGS" \
CPPFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--with-gd=/tmp/compiles/gd/gd-2.0.35/build/lib \
--with-gd-inc=/tmp/compiles/gd/gd-2.0.35/build/include \

--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
the slackbuild run fine then without any complaints.!

thank you for the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Configure MRTG to Monitor Network asraful islam Linux - Newbie 2 05-20-2009 01:20 PM
slackbuild vrs configure-make-make install garyg007 Slackware 12 12-21-2008 10:27 PM
SlackBuild Problem: "configure.in" gregkedro Linux - Software 11 05-26-2008 09:30 AM
inastall & configure mrtg in fedora distro alnmostafa Linux - Networking 1 01-17-2007 11:25 AM
SlackBuild / ./configure questions shilo Slackware 18 10-04-2005 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration