X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=vRJItLyFkdSv2p2oOZbyfA6sIRBGh+9NbUsSZfYetBY XAuTDKXAFt/a0YVbSMlQn4mksmRDQ/Q9kpaodonn1sbdLvCjIFQCXHQjvRDkJ1OV DZGgJyvILaubp58NfhCxv8oZulc0gPgnSJXtD3v7ZrDlfH0jBxu0kp7tw1pVWRhs = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=mCSmaz6GqUyXub3QR1ZJZPHo0Tw=; b=A86jPVj6Wxk2Bax5h MibhMaqn/21z8E26DEB5Vpz0Ul1hT9kYs0hHg7203lWGwaOkjANKx2tWaQ9tHzjv D2e7Q3J+sWe/MOQSyLS1oqLoT0/QzNXvvJdZaDessHzG2AEMJuPOcIGP7l9Hp9CQ F8CYPvevAgB+3CZQ7v3R5qxCPY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1 Message-ID: <51E5B4CF.503@cwilson.fastmail.fm> Date: Tue, 16 Jul 2013 17:02:07 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: The Cygwin Mailing List Subject: Re: How does 'alternatives' find a file? References: <51E5A8E7 DOT 8010307 AT cygwin DOT com> In-Reply-To: <51E5A8E7.8010307@cygwin.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 > again. 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). -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple