This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: bash: tar: command not found


On Thu, 12 Apr 2007, Dave Korn wrote:

> On 12 April 2007 17:49, Jeff Hawk wrote:
>
> >> -----Original Message-----
> >> From: Thorsten Kampe
> >> Sent: Thursday, April 12, 2007 11:03 AM
>
> >> \cygwin\usr\bin and \cygwin\usr\lib are /real/ directories created by
> >> the initial Cygwin installation routine. He shouldn't delete those
> >> directories - just keep them empty...
> >
> > Not true...
> >
> > I have Cygwin installed and there is NO c:\cygwin\usr\bin directory
> >
> > As has been mentioned before, /usr/bin is a *mount* point, not a real
> > directory.
> >
> > 0> mount
> > C:\cygwin\bin on /usr/bin type system (binmode)   <<<<<<<<<<<
> > C:\cygwin\lib on /usr/lib type system (binmode)
> > C:\cygwin on / type system (binmode)
> >
> > Like that ^^^^^^^^^^^
>
>   Yeh, but it helps to create a real directory to back up a mountpoint,
> because that avoids a warning message.

Only if you explicitly use "mount".  If you let setup create the mounts
for you, there is no warning message. :-)

> And setup.exe is /supposed/ to create them:  see do_install_thread in
> install.cc:
>
>   for (i = 0; Installer::StandardDirs[i]; i++)
>   {
>     std::string p = cygpath (Installer::StandardDirs[i]);
>     if (p.size())
>       io_stream::mkpath_p (PATH_TO_DIR, "file://" + p);
>   }
>
> const char *
> Installer::StandardDirs[] = {
>   "/bin",
>   "/etc",
>   "/lib",
>   "/tmp",
>   "/usr",
>   "/usr/bin",
>   "/usr/lib",
>   "/usr/src",
>   "/usr/local",
>   "/usr/local/bin",
>   "/usr/local/etc",
>   "/usr/local/lib",
>   "/usr/tmp",
>   "/var/run",
>   "/var/tmp",
>   0
> };

Setup's io_stream uses Cygwin mounts.  Thus, once "file:///usr" is
created, mkdir_p("file:///usr/bin") is a no-op...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]