delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/20/16:17:56

X-Spam-Check-By: sourceware.org
Message-ID: <20060120211746.33460.qmail@web60820.mail.yahoo.com>
Date: Fri, 20 Jan 2006 13:17:46 -0800 (PST)
From: Alan Ramsey <alnramz AT yahoo DOT com>
Subject: Re: Install puts bin/ and terminfo/ directories in wrong directory.
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.63.0601201452390.9107@access1.cims.nyu.edu>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Igor,

> Right, as I suspected, you had stale mount table
> entries.  

I suspected that as well, which is why I asked in the
original post for where Cygwin gets these directory
entries.  The registry is quite large, and it is not
obvious.

> > although I also believe it is indicative of a bug
> in the installation
> > program.
> 
> I don't think so.  The installer intentionally does
> not change the existing mounts, so as to not
override 
> the settings of users who choose to customize their 
> on-disk layout.  

That's a very good point, however with no un-install
program (unless there is one I am not aware of) there
isn't a good way for someone to know where these
settings are to be change.  

I would suggest a mechanism in the installation that,
if the settings are detected to exist already, allows
the user to optionally change/override them.

There should always be a well documented way to get
back to a clean vanilla installation, and manually
finding and editing the registry is not a good way to
do so.  I still consider this a bug even if it is
intentional.

> It's very rare that a
<http://cygwin.com/acronyms/#3PP>
> application like PDFMerge leaves its own stale
mounts behind.

Actually, talking with the user of the machine, I
found out she had tried (and failed) to install Cygwin
on the machine before she came to me.  I don't know
why she entered this directory.

> You don't need to wipe the registry -- there are
> other tools for manipulating the mount table (i.e.,
"mount").  
> The installation program does not touch the mounts
by design.
> 
> > I am going to drop the entire
> HKEY_CURRENT_USER\Software\Cygnus
> > Solutions\ tree, delete the c:\cygwin directory
> and reinstall from
> > scratch.  I think this will fix everything.  (I
> know I could probably
> > just change the registry entries, but I don't
> trust that something
> > somewhere else is already screwed up because of
> this, so I would rather
> > have a vanilla install).
> 
> That's pretty drastic.
> 
> I suggest you use the "mount" and "umount" commands
> to reset the entries.
> You want to "umount /bin /usr/bin
> /usr/share/terminfo" and then "mount -f
> c:/cygwin/bin /usr/bin" (you may need to specify the
> full path to "mount"
> and "umount").  Since you already moved
> c:\downloads\PDFMerge\bin to
> c:\cygwin\bin, and c:\downloads\PDFMerge\terminfo to
> c:\cygwin\usr\share\terminfo, you should just remove
> those directories

Thanks, I'll try that.

> Note that if we didn't ask for the output of
cygcheck, we 
> would have had to have a long back-and-forth
exchange before
> getting to this point...

Had I known of it existance in the first place I would
have.  

Due to the fact that it did finally lead me to a
solution, I will forgive your RTFM message, and the
fact that you didn't answer my questions at the end of
my first post - which you didn't need the output of
the cygcheck program to do - if you will forgive not
finding the cygcheck program.

However the existance of cygcheck is only mentioned in
three sentences buried in the middle of a long
"Reporting Guidelines" diatribe made up of banel
sections like: "Use good subject lines", "Keep it
simple", Don't say this, and Don't say that... etc... 
 Its not even the first item in the Reporting
Guidelines list!

After digging through your web site, surfing for the
answers in  to dozens of usenet posts, etc.. 
Searching in the registry (which I still don't know
why that search didn't work), configuration files, and
environment variables, I missed that paragraph.  

> I'm glad you also found this out yourself.
Once I knew where to look, yes I found it.  I did ask
the correct question (i.e. where does Cygwin get these
settings) it just took a while to get around to the
right answer.

I really do appreciate your help.  

-alan ramsey


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019