delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/18/06:32:58

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Lilja <mindcooler AT gmail DOT com>
Subject: Re: Make program find its dll:s
Date: Tue, 18 Nov 2008 12:31:58 +0100
Lines: 26
Message-ID: <gfu93e$560$1@ger.gmane.org>
References: <gfu7qd$v3$1 AT ger DOT gmane DOT org> <20081118112012 DOT GB26249 AT tomas>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
In-Reply-To: <20081118112012.GB26249@tomas>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

tomas AT tuxteam DOT de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, Nov 18, 2008 at 12:10:02PM +0100, Eric Lilja wrote:
>> [...] I'm now wondering if it's possible to tell a 
>> process launched from within a cygwin bash shell to "look in this directory 
>> as well for DLL files you might need [...]
> 
> The environment variable LD_LIBRARY_PATH is said to work in Cygwin as
> well. So setting it to a list of directories where to look for DLLs
> might do the trick. Dunno whether colon-separated (UNIXy) semi-colon
> separated (DOSy).

Hi Tomás and thanks for the quick reply. I tried setting LD_LIBRARY_PATH 
using $ LD_LIBRARY_PATH=/path/to/dll-files (and then checking with
$ echo LD_LIBRARY_PATH that it "stuck"), but the process still cannot 
find the DLL files. I am starting the process with strace so I am sure 
this is the problem, not something else. I guess I could temporarily 
modify the PATH but I'm interested in alternatives.

> 
> Regards
> - -- tomás

- Eric


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019