Problem:
# snmpwalk -V
ld.so.1: snmpwalk: fatal: libgcc_s.so.1: open failed: No such file or directory
Killed
#
Solution:
1. I ran a search to try and find this library, and yes libgcc was already installed on my server:
# find / -name libgcc*
/usr/local/lib/libgcc_s.so
/usr/local/lib/libgcc_s.so.1
2. So i checked my library PATH, and the path to libgcc wasn't there:
# echo $LD_LIBRARY_PATH
/usr/openwin/lib
#
3. I added it:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
4. Check again:
# echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/openwin/lib
#
5. Test snmpwalk again:
# snmpwalk -V
NET-SNMP version: 5.4.4
6. To make the library PATH persistent, do the following:
Edit the /etc/profile file:
- vi /etc/profile
- LD_LIBRARY_PATH=/usr/local/lib:/usr/openwin/lib
- source /etc/profile
- #echo $LD_LIBRARY_PATH
No comments:
Post a Comment