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 Date: Thu, 21 Jul 2005 20:03:00 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Linda W cc: cygwin AT cygwin DOT com Subject: Re: is "/lib" needed in PATH? In-Reply-To: <42E0368F.5080106@tlinx.org> Message-ID: References: <42E0368F DOT 5080106 AT tlinx DOT org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 21 Jul 2005, Linda W wrote: > I have been putting "/lib" in my windows path (along with "/bin"). To answer the question in the subject: no, /lib isn't needed in $PATH. > Do I need to specify cygwin's "lib" dir so it will load the "DLL's", or > do the cygwin binaries internally "know" (add?) lib to the path to search. For precisely this reason, Cygwin's DLLs that are loaded via the Windows dynamic loading mechanisms are in /bin. There shouldn't be any "linked" DLLs in /lib. > I.e. I want to be able to call some cygwin based utils (like bash) from > Windows. Normally with windows programs, directories containing DLL's > that are needed by Window's Programs need to have the DLL dir in the > path (unless it is in same dir as the EXE). Is this also true for > cygwin EXE's or does cygwin handle apart from (in spite of) the normal > rules for locating DLL's? > > If this is in the FAQ, I've forgotten it... If a program places its DLL under /lib, it should modify the environment appropriately so that the Windows loader finds it, or use the Cygwin loading mechanisms (i.e., dlopen()). Which DLLs in /lib cause problems for you if /lib isn't in the $PATH? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/