Question

I installed nmap on Debian 6 squeeze, 64 bit. When I run nmap it says:

nmap: error while loading shared libraries: libsvn_client-1.so.0: cannot open shared object >file: No such file or directory

so I googled it and found a solution which was.

ln -s /usr/lib/x86_64-linux-gnu/libsvn_client-1.so.1 /usr/lib/libsvn_client-1.so.0

I did that. but I'm still getting the same problem. It created the link successfully but it says nmap is still giving me the same error. Any Ideas?

Était-ce utile?

La solution

Nmap shouldn't be linked to libsvn_client, but it can be if it was built with support for "nmap-update", an experimental way of updating Nmap Scripting Engine (NSE) scripts. Most people should not build in this feature since it requires an account, and there is currently no way to obtain an account.

To build Nmap without the nmap-update feature, you should make clean, then run configure with the --without-nmap-update flag, like so:

sh-$ ./configure --without-nmap-update

The reason why the ln command didn't fix your problem is that it created a symlink to the wrong version of libsvn_client. The binary is looking for version 0, and you linked version 1. It won't have the same symbols and interfaces.

Autres conseils

the problem is solved very easy, open synaptic and download the required version of libsvn (mine wished libsvn1)

I used

ln -s /usr/lib/i386-linux-gnu/libsvn_client-1.so.0 /usr/lib/i386-linux-gnu/libsvn_client-1.so.0 

... and it worked. It seemed the original command

ln -s /usr/lib/x86_64-linux-gnu/libsvn_client-1.so.0 /usr/lib/libsvn_client-1.so.0

... that I have seen is missing the one part in the second root.

installing subversion solved this problem for me in SUSE

#zypper in subversion

or in Debian:

#apt-get install subversion

sudo dnf install subversion -y solved the problem in Fedora 32

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top