Nmap Development mailing list archives

Re: Zenmap Assistance


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 28 Jul 2014 21:59:24 -0500

Aaron and other bug reporters,

Thanks for following up on this. We are aware of the issues with Zenmap on
Mavericks and are working on retooling our Mac build system to release an
updated .dmg package. In the meantime, the nmap command itself ought to
work as expected, and the XML it produces will be able to be imported into
Zenmap on another supported platform. Alternatively, you can build Nmap and
Zenmap from source[1]. Also, the last 6.40 release [2] should install
cleanly, though it is missing some of the latest features. We apologize for
the inconvenience, and look forward to better OS X support in the very near
future.

Dan

[1] http://nmap.org/book/inst-macosx.html#inst-macosx-source
[2] http://nmap.org/dist/nmap-6.40-2.dmg


On Mon, Jul 28, 2014 at 9:23 PM, Aaron Stone <alstone () sbcglobal net> wrote:

My apologies for the direct approach, but I posted this to the nmap
development threads and have yet to receive any responses. I am having some
issues getting Zenmap to launch and was hopingsomeone could point me in the
right direction.

I generally use NMAP at work on a windows computer, but I at home I have
been using it on my MacPro. I haven't used it for a while, and needed to do
an external scan of my network at work so I fired the Zenmap GUI app up. It
started up as  normal, asked me to authenticate and then exited. I poked
around for a while on the threads and saw the fix for the OS X 10.9 issue,
which required deletion of a libxml2.2.dylib from the package. I dug into
the package contents, down the specified path and found, that package was
not there so I figured that I may have the fixed build that was mentioned.

I have Version 6.46 of the Zenmap app running with System 10.9.4 build
13E28, with Darwin Kernel Version 13.3.0. While the symptoms are the same,
the output when zenmap.bin is run from the terminal is the following:

/Applications/Zenmap.app/Contents/MacOS/zenmap.bin
/Applications/Zenmap.app/Contents/Resources/zenmap.py:179:
DeprecationWarning: BaseException.message has been
deprecated as of Python 2.6
Could not import the zenmapGUI.App module:
'dlopen(/Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-dynload/glib/_glib.so,
2): Library not loaded:
/Users/david/macports-10.5/lib/libffi.5.dylib\n  Referenced from:
/Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-dynload/glib/_glib.so\n
 Reason: image not found'.
I checked in these directories:
    /Applications/Zenmap.app/Contents/Resources/lib/python26.zip
    /Applications/Zenmap.app/Contents/Resources/lib/python2.6
    /Applications/Zenmap.app/Contents/Resources/lib/python2.6/plat-darwin
    /Applications/Zenmap.app/Contents/Resources/lib/python2.6/plat-mac

/Applications/Zenmap.app/Contents/Resources/lib/python2.6/plat-mac/lib-scriptpackages
    /Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-tk
    /Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-old
    /Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-dynload

/Applications/Zenmap.app/Contents/Resources/lib/python2.6/site-packages.zip
    /Applications/Zenmap.app/Contents/Resources/lib/python2.6/site-packages
If you installed Zenmap in another directory, you may have to add the
modules directory to the PYTHONPATH environment variable.

It would appear that:


/Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-dynload/glib/_glib.so

is attempting to access a library located in a local directory called:

/Users/david/macports-10.5/lib/libffi.5.dylib\n

Some quick research* on the web suggests that running:

'sudo port selfupdate && sudo port upgrade outdated'

prior to build will "identify and the missing or mislinked files and
rebuild the required port". I may be way off, so if anyone could shed some
light on this it would be greatly appreciated.


-Aaron Stone

*
http://stackoverflow.com/questions/22586157/library-not-loaded-opt-local-lib-libffi-5-dylib
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

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


Current thread: