Tuesday, March 11, 2014

Cisco WCS7.0.240.0 httpd version

[root@localhost ~]# cd /opt/WCS7.0.240.0/webnms/apache/bin
[root@localhost bin]# pwd
/opt/WCS7.0.240.0/webnms/apache/bin
[root@localhost bin]# 
[root@localhost bin]# ./httpd -v
./httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
[root@localhost bin]# 
[root@localhost bin]# ldd httpd
        linux-gate.so.1 =>  (0x00ba4000)
        libz.so.1 => /lib/libz.so.1 (0x00abe000)
        libm.so.6 => /lib/libm.so.6 (0x00a8c000)
        libaprutil-1.so.0 => not found
        libexpat.so.0 => /lib/libexpat.so.0 (0x00d81000)
        libapr-1.so.0 => not found
        libuuid.so.1 => /lib/libuuid.so.1 (0x03c59000)
        librt.so.1 => /lib/librt.so.1 (0x00aef000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x042b0000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00ad3000)
        libdl.so.2 => /lib/libdl.so.2 (0x00ab7000)
        libc.so.6 => /lib/libc.so.6 (0x00930000)
        /lib/ld-linux.so.2 (0x00911000)
[root@localhost bin]# 
[root@localhost bin]# find / -name libapr*
/opt/WCS7.0.240.0/webnms/apache/lib/libapr-1.so.0
/opt/WCS7.0.240.0/webnms/apache/lib/libapr-1.so.0.4.5
/opt/WCS7.0.240.0/webnms/apache/lib/libapr-1.a
/opt/WCS7.0.240.0/webnms/apache/lib/libapr-1.so
/opt/WCS7.0.240.0/webnms/apache/lib/libaprutil-1.so
/opt/WCS7.0.240.0/webnms/apache/lib/libapr-1.la
/opt/WCS7.0.240.0/webnms/apache/lib/libaprutil-1.la
/opt/WCS7.0.240.0/webnms/apache/lib/libaprutil-1.so.0
/opt/WCS7.0.240.0/webnms/apache/lib/libaprutil-1.so.0.3.12
/opt/WCS7.0.240.0/webnms/apache/lib/libaprutil-1.a
[root@localhost bin]# 
[root@localhost bin]# cd /etc/ld.so.conf.d/
[root@localhost ld.so.conf.d]# echo /opt/WCS7.0.240.0/webnms/apache/lib > httpd-lib.conf
[root@localhost ld.so.conf.d]# rm /etc/ld.so.cache
rm: remove regular file `/etc/ld.so.cache'? y
[root@localhost ld.so.conf.d]# 
[root@localhost ld.so.conf.d]# /sbin/ldconfig
/sbin/ldconfig: /opt/WCS7.0.240.0/webnms/apache/lib/libaprutil-1.so.0 is not a symbolic link

/sbin/ldconfig: /opt/WCS7.0.240.0/webnms/apache/lib/libapr-1.so.0 is not a symbolic link

[root@localhost ld.so.conf.d]# 
[root@localhost ld.so.conf.d]# /opt/WCS7.0.240.0/webnms/apache/bin/httpd -v
Server version: Apache/2.2.21 (Unix)
Server built:   Sep 20 2011 11:25:33
[root@localhost ld.so.conf.d]# 

1 comment: