X-Spam-Check-By: sourceware.org Message-ID: <4530690F.7090107@byu.net> Date: Fri, 13 Oct 2006 22:35:27 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, tom_lee01 AT hotmail DOT com Subject: Re: cywin shared dll References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Tom Lee on 10/13/2006 8:56 PM: > Hi Eric, > > Thanks for your help. > >> That's the problem. You should only ever have a single version of >> cygwin1.dll installed anywhere on your system. Delete the old copy, and >> just put the new one on the path. > > If I want to distribute one command for the end user to use and don't > want to have > a full installation. Also, I don't know if the user has the cygwin > pre-installed or not. It sounds like you are setting yourself up to be a http://cygwin.com/acronyms/#3PP. Search the mailing list archives for better ideas. You are not the first to ask questions on how to portably detect whether a random machine has cygwin installed; and the advice from this list is if cygwin is already installed, DO NOT TRY to install a second copy of cygwin1.dll. Instead, inform the user if their installed version is out of date and they need an upgrade to run your software. > > Are you sure PATH works? > In the PATH c:\mycgwin is ahead of system path and x:\cygwin\bin is even > not in the path. > It still failed with the same error. Altering PATH does not help if a copy of cygwin1.dll is already loaded in memory. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFMGkP84KuGfSFAYARAtxWAKCVkAJR/1UJYcBwbXZbUegEhSyCJwCfWvQH YzXJAYHtLV2sxpsrRgR4mxc= =a8h1 -----END PGP SIGNATURE----- -- 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/