This is the mail archive of the
mailing list for the Cygwin project.
Re: How does 'alternatives' find a file?
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Tue, 16 Jul 2013 17:02:07 -0400
- Subject: Re: How does 'alternatives' find a file?
- References: <E1UzAHj-0005MB-EL at elasmtp-curtail dot atl dot sa dot earthlink dot net> <51E5A8E7 dot 8010307 at cygwin dot com>
On 7/16/2013 4:11 PM, Larry Hall (Cygwin) wrote:
On 7/16/2013 2:46 PM, Henry Baker wrote:
I've had to create a cygwin tree from a circa 2011 tar dump, and I've
had a devil of a time trying to make it work.
Looking at the ones I have in /etc/alternatives, they are the first kind
listed (or the ones that you say work for you). Make sure the DOS SYSTEM
attribute (and only that attribute) is set. Also, if the tree doesn't
come from Cygwin 1.7 days and you're not using the same character set as
you were then, you'll need to recreate the symlinks to get them working
Just use the alternatives tool itself to forcefully recreate the
symlinks -- in fact, there's a script that will do that for you. Look in
/etc/postinstall/ for the files that have "gcc" somewhere in their name.
Find the ones that invoke /usr/sbin/alternatives and run the appropriate
ones (whichever ones set the default to gcc4 rather than gcc3).
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple