LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-09-2007, 09:02 AM   #1
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Rep: Reputation: 15
snmpd failed: No such file or directory


Running an up to date RHEL4 system trying to get SNMP working

# /etc/init.d/snmpd start
Starting snmpd: //usr/sbin/snmpd: error while loading shared libraries: librpm-4.4.so: cannot open shared object file: No such file or directory
[FAILED]
# locate librpm-4
/usr/lib/librpm-4.3.so


I have searched the internet for days trying to figure out what rpm I need to install to upgrade librpm-4.3 to 4.4 but haven't found anything useful. What do I need to do? Please, I need help. My boss is getting adgitated at my lack of progress. I'm used to debian and red hat is unfamiliar to me
 
Old 04-09-2007, 10:24 AM   #2
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
http://rpm.pbone.net/index.php3/stat.../field%5B%5D/2
 
Old 04-09-2007, 10:37 AM   #3
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Original Poster
Rep: Reputation: 15
This is what happens when I try to install it. What do I do now?

# rpm -Uvh librpm4.4-4.4.2-15.2_60.el4.at.i386.rpm
warning: librpm4.4-4.4.2-15.2_60.el4.at.i386.rpm: V3 DSA signature: NOKEY, key ID 66534c2b
error: Failed dependencies:
libsqlite3.so.0 is needed by librpm4.4-4.4.2-15.2_60.el4.at.i386
librpm-4.3.so is needed by (installed) rpm-4.3.3-18_nonptl.i386
librpm-4.3.so is needed by (installed) rpm-python-4.3.3-18_nonptl.i386
librpm-4.3.so is needed by (installed) rpm-build-4.3.3-18_nonptl.i386
librpm-4.3.so is needed by (installed) rpm-devel-4.3.3-18_nonptl.i386
librpmbuild-4.3.so is needed by (installed) rpm-4.3.3-18_nonptl.i386
librpmbuild-4.3.so is needed by (installed) rpm-build-4.3.3-18_nonptl.i386
librpmdb-4.3.so is needed by (installed) rpm-4.3.3-18_nonptl.i386
librpmdb-4.3.so is needed by (installed) rpm-python-4.3.3-18_nonptl.i386
librpmdb-4.3.so is needed by (installed) rpm-build-4.3.3-18_nonptl.i386
librpmdb-4.3.so is needed by (installed) rpm-devel-4.3.3-18_nonptl.i386
librpmio-4.3.so is needed by (installed) rpm-4.3.3-18_nonptl.i386
librpmio-4.3.so is needed by (installed) rpm-python-4.3.3-18_nonptl.i386
librpmio-4.3.so is needed by (installed) rpm-build-4.3.3-18_nonptl.i386
librpmio-4.3.so is needed by (installed) rpm-devel-4.3.3-18_nonptl.i386
 
Old 04-09-2007, 12:08 PM   #4
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
1)) It means the existing shared libraries are required by other rpm packages. I guess better idea is to get back the previous version of snmp version which can run using the existing libraries.

rpm -a |grep -i snmp

ldd /usr/sbin/snmpd

2)) or upgrade all the rpm pkgs with new shared libraries. i guess that's something requires more work and have large impact.
 
Old 04-09-2007, 12:26 PM   #5
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Original Poster
Rep: Reputation: 15
Let's say I want option 1) roll back snmp.

rpm -a doesn't return anything at all, even without the grep

here is the output of ldd:

]# ldd /usr/sbin/snmpd
/usr/sbin/snmpd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/sbin/snmpd)
/usr/sbin/snmpd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/libnetsnmpmibs.so.15)
/usr/sbin/snmpd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/libnetsnmpagent.so.15)
/usr/sbin/snmpd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/libnetsnmphelpers.so.15)
/usr/sbin/snmpd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/libnetsnmp.so.15)
libnetsnmpmibs.so.15 => /usr/lib/libnetsnmpmibs.so.15 (0x00316000)
libnetsnmpagent.so.15 => /usr/lib/libnetsnmpagent.so.15 (0x00f51000)
libnetsnmphelpers.so.15 => /usr/lib/libnetsnmphelpers.so.15 (0x00566000)
libnetsnmp.so.15 => /usr/lib/libnetsnmp.so.15 (0x00111000)
librpm-4.4.so => not found
librpmio-4.4.so => not found
libpopt.so.0 => /usr/lib/libpopt.so.0 (0x00cfc000)
libz.so.1 => /usr/lib/libz.so.1 (0x009ca000)
libcrypto.so.6 => not found
libperl.so => not found
libresolv.so.2 => /lib/libresolv.so.2 (0x009dc000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00c8c000)
libdl.so.2 => /lib/libdl.so.2 (0x0089a000)
libm.so.6 => /lib/tls/libm.so.6 (0x00875000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00639000)
libutil.so.1 => /lib/libutil.so.1 (0x00df7000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00981000)
libc.so.6 => /lib/tls/libc.so.6 (0x00748000)
/lib/ld-linux.so.2 (0x0072a000)

You are being very helpful, thank you. How should I proceed now?
 
Old 04-09-2007, 12:32 PM   #6
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
sorry that command is

rpm -qa |grep -i snmp
 
Old 04-09-2007, 12:41 PM   #7
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Original Poster
Rep: Reputation: 15
that returned this

net-snmp-5.4-1
net-snmp-libs-5.1.2-11.EL4.7
 
Old 04-09-2007, 12:47 PM   #8
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
Remove the snmp package from the system
rpm -ve net-snmp-5.4-1

and install the lower version of snmp , net-snmp-5.1.3.1-1.el4.i386.rpm

http://rpm.pbone.net/index.php3?stat...=net-snmp&dist[]=42&field[]=1&field[]=2

I guess snmp-lib need to be as its.

give a try and let us see.
 
Old 04-09-2007, 01:16 PM   #9
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Original Poster
Rep: Reputation: 15
]# rpm -Uvh net-snmp-5.3-1.el4.i386.rpm
Preparing... ########################################### [100%]
1:net-snmp ########################################### [100%]

# /etc/init.d/snmpd start
Starting snmpd: [ OK ]


And there you have it my friend. Interestingly enough, after reviewing the dependencies of the version of snmp I was removing before installing this one is that it was required by zenoss. I'm positive I upgraded that file just to get zenoss installed. So doesn't that make it ironic that installing the software actually broke it's own primary means of data gathering?

And to think that damn program was the only reason I went through the painfull process of forcing MySQL 5 to install rather than using the version included.

I've had enough of zenoss, I'm trying zabbix. The boss probly won't know the difference.

Thanks a lot for your help freeindia. I now have a slightly better understanding of how to use rpm and where to get them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
alsamixer: function snd_ctl_open failed for default: No such file or directory agts Linux - Newbie 16 04-01-2011 08:12 AM
fatal: libncurses.so.5: open failed: No such file or directory xpucto Solaris / OpenSolaris 8 09-08-2007 01:26 AM
debian installation failed: debootstrap/functions no such file or directory lixy Linux - General 1 01-25-2005 05:55 PM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 12:29 AM
snmpd installed, see file, but get error file not found PCHelper Slackware 0 11-06-2003 12:44 PM


All times are GMT -5. The time now is 08:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration