On Jan 13, 2008, at 23:16 , Liyang HU wrote:

On 1/14/08, Steve Lihn <[EMAIL PROTECTED]> wrote:
In perl scripts (unix), one can do
#!/usr/local/bin/perl
BEGIN { $ENV{LD_LIBRARY_PATH} = ...; }

I've not tested this (what a great line to start a post...), but see
if this works for you:

    #! /usr/bin/env LD_LIBRARY_PATH=/path/to/libs runhaskell

Will probably work on Linux; many other (especially older) Unixlike systems will consider everything after the program name a single argument.

Best bet is to use a wrapper script.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to