Help - Search - Members - Calendar
Full Version: MRTG install on Plesk 6
The Planet Forums > Control Panels > Plesk
McDuck
When trying to install MRTG on RedHat 9 with Plesk 6 i get this error:


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.

Consider following the instructions in doc/unix-guide.txt
[root@web mrtg-2.10.0pre9]#

Any ideas what i can do? i dont know anything about GD, or how to install it. its seems to hard.

Anyone have a how-to for this problem?

Thanks icon_smile.gif
McDuck
I just installed GD. I still get the same errors.

icon_sad.gif
SkyNet
QUOTE
Originally posted by McDuck
When trying to install MRTG on RedHat 9 with Plesk 6 i get this error:

checking for gd.h... yes

(error messages...)

Any ideas what i can do? i dont know anything about GD, or how to install it. its seems to hard.  

Anyone have a how-to for this problem?

Since you still have this problem, something with GD _is_ wrong. I run PHP 4.3.2 which have GD-support builtin. I can configure both MRTG 2.9.29 and the beta, 2.10.0pre9. Havn't tried to compile it yet, but that should not be a problem.

How did you install GD 2+ ?
bobk
Isn't MRTG installed by default on RH9? There's certainly an RPM available.

Try "rpm -q mrtg" and see what it says. Seems like that's a much better way to install a simple package like this.
SkyNet
QUOTE
Originally posted by bobk
Isn't MRTG installed by default on RH9?  There's certainly an RPM available.

Try "rpm -q mrtg" and see what it says.  Seems like that's a much better way to install a simple package like this.

You're right - mrtg-2.9.17-13 - is installed on my RH9/Plesk6 machine.
McDuck
Iv tried to install via up2date mprtg.

when i then try to start it i get this error out 100-200 times:

Malformed UTF-8 character (unexpected non-continuation byte 0x2e, immediately after start byte 0xe3) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 4051.
Malformed UTF-8 character (unexpected non-continuation byte 0x20, immediately after start byte 0xe2) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 4051.
McDuck
QUOTE
Originally posted by SkyNet
Since you still have this problem, something with GD _is_ wrong. I run PHP 4.3.2 which have GD-support builtin. I can configure both MRTG 2.9.29 and the beta, 2.10.0pre9. Havn't tried to compile it yet, but that should not be a problem.

How did you install GD 2+ ?


Yes, i installed gd 2.0.13
bobk
not to be rude, because I initially made the same mistake.... did you RTFM? mrtg.org has great docs.

The basic procedure is to create a config file and then execute that, and it creates a static html page.
McDuck
[root@web root]# rpm -q gd
gd-1.8.4-11
[root@web root]#

Looks like its not updated. How do i update easely?
McDuck
Iv read the manual for MRTG and GD.

I have also tired over 10 how-to`s and mailed mrtg.org and authors of GD.

No reponse so far.
bobk
Okay, just checking. Probably a gd problem then. I know I had trouble trying to install the gd2 rpm. So I removed it, and left the Red Hat version installed. I did an upgrade to PHP 4.3.2, and that provides gd2 support. Don't ask me how.

The problem might have been a confilct between gd2 and php-4.3.2, I can't remember the details.
dedi_ensim
QUOTE
Originally posted by McDuck
Iv tried to install via up2date mprtg.

when i then try to start it i get this error out 100-200 times:

Malformed UTF-8 character (unexpected non-continuation byte 0x2e, immediately after start byte 0xe3) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 4051.
Malformed UTF-8 character (unexpected non-continuation byte 0x20, immediately after start byte 0xe2) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 4051.


you need to recompile mrtg icon_smile.gif

I have had this problem previously, after a recompile it worked fine icon_smile.gif

Chris
(Just realised this thread hasn't been touched for over a month :o )
mtijssen
well I have got the same messages like

Malformed UTF-8 character (unexpected non-continuation byte 0x2e, immediately after start byte 0xe3) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 4051.
Malformed UTF-8 character (unexpected non-continuation byte 0x20, immediately after start byte 0xe2) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 4051

and you say i have to recompile mrtg. But can you tell me the steps you take for it to work without any messages.
dedi_ensim
to compile mrtg (if you dont have the files to compile already there or are unsure where they are)

# wget http://people.ee.ethz.ch/~oetiker/webtools...pub/mrtg.tar.gz

# tar -zxvf mrtg.tar.gz

# cd mrtg

# ./configure

# make

# make install

(thats the basic steps, configure lines etc can all be chnaged for different installs)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.