[SOLVED] can't configure mrtg-2.17 slackbuild on slack13.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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!
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.