View Full Version : Installing MRTG on a RAQ 4i
I am trying to install the MRTG on my Raq 4i with no luck.
[admin mrtg]$ rpm -ivh mrtg-2.9.6-2.i386.rpm
failed to open /var/lib/rpm/packages.rpm: Permission denied
error: cannot open /var/lib/rpm/packages.rpm
Can someone tell me what I am doing wrong?
Matt
Pingu 03-17-2002, 07:22 PM Try and install it as root
I thought I was logged in as root? I am logged in as admin with my adminstration password. How do I change to root?
Matt
ffeingol 03-17-2002, 07:51 PM su -
You will then be prompted for a password. The root password is normally the admin password.
Frank
Sainthax 03-17-2002, 07:52 PM type su then hit enter
it will ask for the root password again
EDIT: beat me too it :cool:
ffeingol 03-17-2002, 07:59 PM well technicaly, you should type "su -" not "su". The "-" causes the roots profile to be executed. Otherwise you still have admin's profile.
Frank
Now I get:
[root mrtg]# rpm -ivh mrtg-2.9.6-2.i386.rpm
error: failed dependencies:
libpng.so.2 is needed by mrtg-2.9.6-2
Any ideas?
Matt
ffeingol 03-17-2002, 08:53 PM Yep,
You need libpng installed also. png is a graphics library.
Frank
I have:
libpng.so.3
It came with:
Webalizer Release 2.01.6-2
Why won't it work?
Thanks
Matt
ffeingol 03-18-2002, 08:25 AM Originally posted by hci
I have:
libpng.so.3
It came with:
Webalizer Release 2.01.6-2
Why won't it work?
Thanks
Matt
And
libpng.so.2 is needed by mrtg-2.9.6-2
No. The .3 and .2 in the extension are part of the version information. Since you are installing a RPM (precompiled version) it was compiled with a specific version of libpng. Normally that exact same version needs to be installed on your box in order for the RPM to work.
You could try to compile MRTG from source and then it should be able to use your current version of libpng.
Frank
You could try to compile MRTG from source and then it should be able to use your current version of libpng.
How do I do that? I downloaded the rpm with source then did:
rpm -ivh ..src.rpm
Either it installed very fast and I cannot find it or it did not work.
Mat
Pingu 03-18-2002, 01:37 PM It should be:
rpm --rebuild ..src.rpm
That will build an rpm, and it will end up in
/etc/src/redhat/somewhere.
Not sure about that path :)
Also, the rebuild may fail cause the compiler stuff on the raq is outdated. I stepped onto that funstuff when rebuilding mysql :rolleyes:
[root mrtg]# rpm --rebuild mrtg-2.9.17-4.src.rpm
Installing mrtg-2.9.17-4.src.rpm
Unable to open /usr/lib/rpm/macros.perl: No such file or directory
It just keeps getting better. Any idea what now?
Thanks
Matt
Originally posted by hci
It just keeps getting better. Any idea what now?
Thanks
Matt
Why not simply install MRTG from source instead of using an RPM not built for your system?
Why not simply install MRTG from source instead of using an RPM not built for your system?
It chokes on that too. Complains that some files are not up to date. I forget exactlly what but something it did not like. I think it was in dev folder that was out of date when using source.
Matt
Pingu 03-18-2002, 07:03 PM Ok then.
Where did you get that rpm from? Are there any other versions? Have you checked http://rpmfind.net for a version that IS compatible with your raq?
It's either that, or start updating who-knows-what to get that thing working.
I went to rpmfind.com and searched for mrtg. I then tried to build then install every single rpm they had that came with source. Some would build none would install.
I tried the latest rpm with source from mrtg.org website. It gave me this error towards the end of the build.
error: failed dependencies:
gd <= 1.3.9 is needed by mrtg-2.9.17-1.rh6
libgd.so.1 is needed by mrtg-2.9.17-1.rh6
Any suggestions? Perhaps if I threaten the Raq 4i with a big hammer?
Thanks
Matthew
Originally posted by hci
I went to rpmfind.com and searched for mrtg. I then tried to build then install every single rpm they had that came with source. Some would build none would install.
I tried the latest rpm with source from mrtg.org website. It gave me this error towards the end of the build.
Any suggestions? Perhaps if I threaten the Raq 4i with a big hammer?
Thanks
Matthew
I'll still say that installing from source is the easiest. I have done so on several RaQ4s without any problems.
I'll still say that installing from source is the easiest. I have done so on several RaQ4s without any problems.
Do you know what version MRTG you used?
Thanks
Matt
Originally posted by hci
Do you know what version MRTG you used?
Thanks
Matt
I normally use the newest one available... I just logged in to one of our RaQ4s, and it's running 2.9.17...
I normally use the newest one available... I just logged in to one of our RaQ4s, and it's running 2.9.17...
I was using the ...src.rpm version unstead of the complete source code. I got it to install now.
Thanks!
Matthew
|