X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4970EC83.4080905@cygwin.com> Date: Fri, 16 Jan 2009 15:22:27 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Uninstall/reinstall References: <380-220091516162941142 AT M2W022 DOT mail2web DOT com> In-Reply-To: <380-220091516162941142@M2W022.mail2web.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 royman17 AT verizon DOT net wrote: > I encountered a problem with v1.5.25-15 on Windows XP. My application is > C/C++ with an embedded Perl interpreter. The C/C++ code worked fine until > I attempted to invoke the perl script. I got an invalid DLL error. > I'm not really asking about this -- it's the steps I took to address the > DLL problem where I must have overlooked something. > > Thinking their might have been an install error or a conflict between > multiple perl interpreters, I decided to uninstall/reinstall cygwin. > ActivePerl had been installed on the machine as well. I checked out > the web pages for uninstalling cygwin and cleaning out the registry and > carried out the steps. > > When I re-installed cygwin, two things went wrong. The first was that > bash was not installed by setup.exe. I was able to remidy this problem > simple enough by finding the tar.gz file containing bash and restoring it > to the right location. > > The second problem was that cygwin1.dll was not installed. Nor could I > find it in the distribution package. (I assume it is built on the fly > somehow.) > > Ultimately, the sys admin re-loaded windows on my machine. (Not only does > this solve a re-install problem, but it would clean out the registry and > possibly remove any corrupt dlls, so overall it made sense.) I am about to > re-install a version of cygwin on my computer, but I am concerned about > encountering the original dll problem again -- meaning that I could have to > uninstall/reinstall cygwin again -- maybe go to a different version of Perl > or an earlier version of cygwin. > > What I want to know is, what did I do wrong in the uninstall? Or in the > reinstall? Impossible to tell given the generalities you mentioned here. Personally, I wouldn't have chosen to uninstall and reinstall Cygwin to try to fix your original problem. I would have looked for what the problem was and tried to fix that. It does sound like you had some clash in your tools (ActiveState's perl and Cygwin's perhaps) but I can't be sure. One thing I can say that you shouldn't do is install packages manually if you don't know exactly what you're doing. 'setup.exe' is designed to handle all the little details you wouldn't normally think of so using it is the safest route. My WAG is that you had some Cygwin service or bash process (or both) running when you uninstalled, which would leave those in place and inhibit the installation of the reinstalled versions. Also note that the Cygwin DLL comes from the cygwin package. It is not built on the fly. HTH, -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/