yum install cacti error in centos

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
webmaniac
Posts: 2
Joined: Fri Aug 06, 2010 11:46 am

yum install cacti error in centos

Post by webmaniac »

I try to install Cacti but i take the follow error

root@lsrv2 [~]# yum install cacti
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.otenet.gr
* base: ftp.otenet.gr
* epel: ftp.ntua.gr
* extras: ftp.otenet.gr
* updates: ftp.otenet.gr
addons | 951 B 00:00
base | 2.1 kB 00:00
dag | 1.1 kB 00:00
dag/primary | 2.1 MB 00:00
dag 10238/10238
epel | 3.4 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 508 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cacti.noarch 0:0.8.7g-1.el5.rf set to be updated
--> Processing Dependency: php-snmp for package: cacti
--> Processing Dependency: php for package: cacti
--> Processing Dependency: webserver for package: cacti
--> Processing Dependency: php-mysql for package: cacti
--> Running transaction check
---> Package cacti.noarch 0:0.8.7g-1.el5.rf set to be updated
--> Processing Dependency: php-snmp for package: cacti
--> Processing Dependency: php for package: cacti
--> Processing Dependency: php-mysql for package: cacti
---> Package lighttpd.x86_64 0:1.4.26-2.el5 set to be updated
--> Processing Dependency: liblua-5.1.so()(64bit) for package: lighttpd
--> Finished Dependency Resolution
cacti-0.8.7g-1.el5.rf.noarch from dag has depsolving problems
--> Missing Dependency: php-snmp is needed by package cacti-0.8.7g-1.el5.rf.noarch (dag)
lighttpd-1.4.26-2.el5.x86_64 from epel has depsolving problems
--> Missing Dependency: liblua-5.1.so()(64bit) is needed by package lighttpd-1.4.26-2.el5.x86_64 (epel)
cacti-0.8.7g-1.el5.rf.noarch from dag has depsolving problems
--> Missing Dependency: php is needed by package cacti-0.8.7g-1.el5.rf.noarch (dag)
cacti-0.8.7g-1.el5.rf.noarch from dag has depsolving problems
--> Missing Dependency: php-mysql is needed by package cacti-0.8.7g-1.el5.rf.noarch (dag)
Error: Missing Dependency: liblua-5.1.so()(64bit) is needed by package lighttpd-1.4.26-2.el5.x86_64 (epel)
Error: Missing Dependency: php-snmp is needed by package cacti-0.8.7g-1.el5.rf.noarch (dag)
Error: Missing Dependency: php-mysql is needed by package cacti-0.8.7g-1.el5.rf.noarch (dag)
Error: Missing Dependency: php is needed by package cacti-0.8.7g-1.el5.rf.noarch (dag)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

I try to install net-snmp
root@lsrv2 [~]# yum install net-snmp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.otenet.gr
* base: ftp.otenet.gr
* epel: ftp.ntua.gr
* extras: ftp.otenet.gr
* updates: ftp.otenet.gr
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package 1:net-snmp-5.3.2.2-9.el5_5.1.x86_64 already installed and latest version
Nothing to do
add php-snmp
root@lsrv2 [~]# yum install php-snmp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.otenet.gr
* base: ftp.otenet.gr
* epel: ftp.ntua.gr
* extras: ftp.otenet.gr
* updates: ftp.otenet.gr
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-snmp available.
Nothing to do
but the tell that No package php-snmp available.

What can I do?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm sorry, but that is a CentOS issue. You will have to contact the distro maintainers
R.
webmaniac
Posts: 2
Joined: Fri Aug 06, 2010 11:46 am

Post by webmaniac »

thanks
i ask to reinstall centos and I'll try again.
User avatar
bmote
Cacti User
Posts: 50
Joined: Thu Jul 15, 2010 1:12 pm
Location: Cincinnati, OH
Contact:

Post by bmote »

Installing Cacti from the tarball is just as easy as using the package. In fact, you'll end up with the files in the "right" location if you do it manually.

In CentOS you have to install all the dependencies for Cacti manually anyway. So, do the following if you just want Cacti (without Spine):

Code: Select all

sudo yum install httpd php php-mysql php-snmp php-xml mysql mysql-server net-snmp net-snmp-utils rrdtool
If you plan on using Spine you'll need all those plus:

Code: Select all

sudo yum install gcc mysql-devel net-snmp-devel
That's based on a CentOS 5.5 installing with EVERYTHING except the 'Server Configuration Tools' removed at the time of installation.
Bill Mote
blog: http://ThingsThatMakeMeMadAndHowToFixThem.blogspot.com
User avatar
bmote
Cacti User
Posts: 50
Joined: Thu Jul 15, 2010 1:12 pm
Location: Cincinnati, OH
Contact:

Post by bmote »

I was searching for a fix to my spine.conf problem and found a site that is relevant to yours ... http://www.linuxismybff.com/category/howto/

That site has the most straightforward click-for-click how-to I've seen.
Bill Mote
blog: http://ThingsThatMakeMeMadAndHowToFixThem.blogspot.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests