Nmap Development mailing list archives

Re: Error on Nmap 6.47


From: Daniel Miller <bonsaiviking () gmail com>
Date: Fri, 29 Aug 2014 14:01:59 -0500

On Thu, Aug 28, 2014 at 8:11 PM, Mr. Doel <doel () mc-crew or id> wrote:

I install Nmap 6.47 on my Ubuntu Desktop 14.04, when i try command "nmap
--script-updatedb" i got error like this :

root@mrrwx:~# nmap --script-updatedb

Starting Nmap 6.47 ( http://nmap.org ) at 2014-08-29 08:09 WIB
NSE: Updating rule database.
NSE: Failed to load
/usr/local/bin/../share/nmap/scripts//ssh-auth-methods.nse:
/usr/local/bin/../share/nmap/scripts//ssh-auth-methods.nse:3: module
'libssh2' not found:


Thanks for this bug report! The ssh-auth-methods.nse script was part of our
SVN development trunk for a while before the libssh2 integration was
reverted. Unfortunately, the feature was not ready for prime-time. It looks
like you installed from SVN, then rolled back to the 6.47 release, which
left some scripts in place.

I've addressed this in SVN by bumping the version number: prior to r33623,
SVN was showing Nmap 6.46, but was actually *ahead* of the 6.47 release.
Now it shows 6.47SVN.

To fix your installation, the cleanest way would be to remove all the
installed files and reinstall. Our Makefiles should support the "uninstall"
target, but some stuff may get missed; be sure to "rm -rf
/usr/local/share/nmap" before reinstalling.

Generally, I recommend only using one method or another for installing.
That is to say, don't install from SVN, and then install from the release
tarball or RPMs. If you compile from source, use a package manager to allow
you to remove or upgrade Nmap cleanly. On Ubuntu, I like to use
checkinstall:

$ svn co https://svn.nmap.org/nmap
$ cd nmap
$ ./configure && make && make check
$ cd ..
$ mv nmap nmap-$(./nmap/nmap --version | awk '/^Nmap version/{print $3}')
$ cd nmap-*
$ sudo checkinstall

Then follow the prompts.

Dan
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: