Installing Nmap 7 RPMs on Centos/RHEL
by Eric on Dec.05, 2015, under Uncategorized
According to the nmap.org site, installation of Nmap 7.00 on a RPM-based system is this easy:
# rpm -vhU https://nmap.org/dist/nmap-7.00-1.x86_64.rpm
However, on a CentOS/RHEL system, nmap fails to run, throwing the following error:
nmap: error while loading shared libraries: libsvn_client-1.so.0: cannot open shared object file: No such file or directory
Turns out that the Nmap RPM dynamically links to files provided by the Subversion package. To get Nmap working, simply install it:
# yum -y install subversion
Nmap will now work properly.
# nmap -v
Starting Nmap 7.00 ( https://nmap.org ) at 2015-12-05 09:02 EST
Read data files from: /usr/bin/../share/nmap
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.09 seconds
Raw packets sent: 0 (0B) | Rcvd: 0 (0B)