rrdtool

Issues related to software problems
variable
Posts: 14
Joined: 2005/04/11 01:56:32

rrdtool

Post by variable » 2005/06/25 06:43:01

i am running centos4 and am trying to get cacti running, i got cacti going except for it says it cant find rrdtool. where is rrdtool on centos?

theorist
Posts: 121
Joined: 2005/05/19 15:09:45

Re: rrdtool

Post by theorist » 2005/06/25 07:32:44

It is in the dag repository:

http://dag.wieers.com/packages/rrdtool/

You just need to add dag to your yum repository list (http://dag.wieers.com/home-made/apt/FAQ.php#B) and then do

yum install rrdtool

variable
Posts: 14
Joined: 2005/04/11 01:56:32

Re: rrdtool

Post by variable » 2005/06/25 17:11:55

i think i destroyed my yum.conf

do you think you could post yours so i could fix mine.?

theorist
Posts: 121
Joined: 2005/05/19 15:09:45

Re: rrdtool

Post by theorist » 2005/06/25 22:25:56

You shouldn't have been editing the yum.conf if you were adding a new repo. Here is the original
/etc/yum.conf (just the standard centos4.1)
----------begin /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
-------------end /etc/yum.conf

All my repositories are in /etc/yum.repos.d. All I was suggesting was adding the dag one: /etc/yum.repos.d/dag.repo
------------ begin /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
------------ end /etc/yum.repos.d/dag.repo
You will need to add the gpg key for dag and that is described on the original link I gave.

variable
Posts: 14
Joined: 2005/04/11 01:56:32

Re: rrdtool

Post by variable » 2005/06/25 22:42:01

thanks, at least now it sees it, but now it says:
Cannot find a valid baseurl for repo: dag

theorist
Posts: 121
Joined: 2005/05/19 15:09:45

Re: rrdtool

Post by theorist » 2005/06/26 12:51:55

Curious - that should work. Perhaps some of the variables are not being set up correctly. You could try replacing the base url in the dap.repo file with
baseurl=http://apt.sw.be/redhat/el4/en/i386/dag
to see if that works.

This assumes of course that you are runing CentOS4 and you are working on an i386 machine - otherwise use your broswer to locate the repo by hand that you want and put that in as the baseurl.

variable
Posts: 14
Joined: 2005/04/11 01:56:32

Re: rrdtool

Post by variable » 2005/06/27 07:24:20

when i changed it same problem

my repo.dag looks like
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el4/en/i386/dag
gpgcheck=1
enabled=1

theorist
Posts: 121
Joined: 2005/05/19 15:09:45

Re: rrdtool

Post by theorist » 2005/06/27 08:33:16

[quote]
my repo.dag looks like
[/quote]
The file should be dag.repo
Assuming this was a typo then if I were you I would force a reinstall of yum by :
rpm --force -Uvh http://mirror.centos.org/centos-4/4.1/os/i386/CentOS/RPMS/yum-2.2.1-1.centos4.noarch.rpm

and then try again with the dag.repo file.
If all else fails you can always download the rrftool rpm directly from the repositiory and install it manually with rpm. You can find the rpm in
http://dag.wieers.com/packages/rrdtool/

variable
Posts: 14
Joined: 2005/04/11 01:56:32

Re: rrdtool

Post by variable » 2005/06/27 19:45:01

same problem even after the reinstall of yum

i donwloaded the rpm, but dont know enough to install if the name of the file is
perl-rrdtool-1.2.2-1.2.el4.test.i386.rpm
then what command do i use to execture the rpm?

thanks

theorist
Posts: 121
Joined: 2005/05/19 15:09:45

Re: rrdtool

Post by theorist » 2005/06/27 21:28:16

I don't know anything about the particular software you are trying to install, but my guess is that the package you want is: rrdtool-1.2.9-1.2.el4.test.i386.rpm
The ones called perl-rrdtool and python-rrdtool are probably modules that allow you to write code for rrdtool in perl or python, which I suspect you don't want.
So download rrdtool-1.2.9-1.2.el4.test.i386.rpm from the site and execute the following command as root (in the directory you downloaded the file to):

rpm -Uvh rrdtool-1.2.9-1.2.el4.test.i386.rpm

(-Uvh means "U" upgrade or install, "v" means verbose and "h" means show hash marks to indicate progress)
Hopefully this will install it. The danger is it may depend on some other packages being installed first - in which case the above command will fail with a warning. These dependency issues are usually sorted out by yum automatically, and you lose this feature if you install directly using the command above. See how you get on.

Post Reply

Return to “CentOS 4 - Software Support”