On Tue, Jan 12, 2010 at 01:03:41PM -0600, Chris Clements wrote:
> 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 directory
> There was an error creating the directory u'/root/.zenmap' or one
> 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
> list of scan profiles. Check for access to the directory and try
> Looking at /usr/local/lib/python2.6/dist-packages/zenmapCore/
> it seems that the config paths are being set incorrectly (should
> # These lines are overwritten by the installer to hard-code the
> # 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/
> directory to setup.py:
> cd zenmap && /usr/bin/python setup.py --quiet install --prefix "/
> local" --force
I just tried installing on Ubuntu 9.10 and I hit what might be a
different problem: the Zenmap (and Ndiff) files were installed under
/usr/local/local. 9.10 released with this bug:
"distutils tries to install in /usr/local/local/ when --prefix=/usr/
local is set"
Is that happening to you? Do you have files
/usr/local/local/share/zenamp and others?