Nmap Development mailing list archives
Zenmap path problem
From: Chris Clements <cclements () flatearth net>
Date: Tue, 12 Jan 2010 13:03:41 -0600
It seems when I build nmap from svn on ubuntu9.10, zenmap installs correctly, but when I try to launch from command line or from gnome menu, I get a failure:
=================================== Error creating the per-user configuration directoryThere was an error creating the directory u'/root/.zenmap' or one of the files in it. The directory is created by copying the contents of '/ usr/share/zenmap/config'. The specific error was
"[Errno 2] No such file or directory: '/usr/share/zenmap/config'"Zenmap needs to create this directory to store information such as the list of scan profiles. Check for access to the directory and try again.
===================================Looking at /usr/local/lib/python2.6/dist-packages/zenmapCore/Paths.py, it seems that the config paths are being set incorrectly (should be / usr/local/share/zenmap/):
===================================# These lines are overwritten by the installer to hard-code the installed
# locations. CONFIG_DIR = '/usr/share/zenmap/config' LOCALE_DIR = '/usr/share/zenmap/locale' MISC_DIR = '/usr/share/zenmap/misc' PIXMAPS_DIR = '/usr/share/zenmap/pixmaps' DOCS_DIR = '/usr/share/zenmap/docs' ===================================The "make install" process seems to be correctly passing the /usr/ local directory to setup.py:
===================================cd zenmap && /usr/bin/python setup.py --quiet install --prefix "/usr/ local" --force
===================================Running "python setup.py install --prefix "/usr/local" --force" by hand completes without any recognizable error.
Of course, manually changing /usr/local/lib/python2.6/dist-packages/ zenmapCore/Paths.py to the correct zenmap paths (/usr/local/share/ zenmap) causes zenmap to work as expected, but I'm wondering why this isn't being set by the installer. Anyone have any ideas?
Chris Clements _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Zenmap path problem Chris Clements (Jan 13)
- Re: Zenmap path problem David Fifield (Jan 18)
- Re: Zenmap path problem Chris Clements (Jan 19)
- Re: Zenmap path problem David Fifield (Jan 19)
- Re: Zenmap path problem David Fifield (Jan 20)
- Re: Zenmap path problem David Fifield (Feb 01)
- Re: Zenmap path problem Chris Clements (Jan 19)
- Re: Zenmap path problem David Fifield (Jan 18)