Nmap Development mailing list archives
Re: shtool script syntax error.
From: Jamie Komodo <jamie.komodo () gmail com>
Date: Sat, 25 Jul 2009 09:27:28 -0700
On Sat, 2009-07-25 at 10:08 -0600, David Fifield wrote:
On Sat, Jul 25, 2009 at 04:01:39AM -0700, Jamie Komodo wrote:When installing nmap 5.00 from bzip source (on Ubuntu 8.04.3 ), I get an installation error when it tries to install ncat: Installing Ncat ./shtool mkdir -f -p -m 755 /usr/local/bin /usr/local/share/ncat /usr/local/share/man/man1 chmod: changing permissions of `/usr/local/share/ncat': No such file or directory make[1]: *** [install] Error 1 make[1]: Leaving directory `/home/waydaws/downloads/build/Nmap/nmap-5.00/ncat' make: *** [install-ncat] Error 2 **** Installation failed. Aborting package creation. There seems to be a syntax error in shtool. My man page for mkdir has no "-f" option. -p and -m make sense, of course, but -f?Thank you for your report. As you found out, -f is an option to shtool. shtool is a shell script wrapper that emulates other command line utilities like mkdir, in order to provide a consistent behavior across systems where those utilities may differ. You don't have to install anything extra to use it. I don't think this is a bug in shtool but perhaps something else weird with your system. Does the directory /usr/local/share/ncat exist after the attempted installation? What are the permissions on it? David Fifield
Hey David, it was a bit strange. I really don't know what to say, but when I rand the command manually from the ncat subdir (using sudo .shtool mkdir ...), the directories got created. After that I was able to just re-run the make install from the nmap directory. One thing that shouldn't have affected it, but might have was that I was using sudo checkinstall instead of sudo make install. Anyway, it installed OK. _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- shtool script syntax error. Jamie Komodo (Jul 25)
- Re: shtool script syntax error. David Fifield (Jul 25)
- Re: shtool script syntax error. Jamie Komodo (Jul 25)
- <Possible follow-ups>
- Re: shtool script syntax error. Jamie Komodo (Jul 25)
- Re: shtool script syntax error. David Fifield (Jul 25)