oops, should have added this as well...
[871] dna:/home/harsch/CVS/managers/drmaa> ls -la $SGE_ROOT/lib/sol-sparc
total 2232
drwxr-xr-x 2 harsch 4096 Mar 10 13:46 .
drwxr-xr-x 4 harsch 4096 Mar 10 13:46 ..
-rwxr-xr-x 1 harsch 177440 Mar 10 13:46 libXltree.so
-rwxr-xr-x 1 harsch 2086700 Mar 10 13:46 libdrmaa.so
----- Original Message -----
From: "Tim Harsch" <[EMAIL PROTECTED]>
To: "Perl Mod Authors" <[EMAIL PROTECTED]>
Sent: Wednesday, March 31, 2004 3:39 PM
Subject: trouble with MakeMaker finding library
> Hi all,
> My module requires a shared library. I'd like for the user to have that
> library available at LD_LIBRARY_PATH and call it good enough. However,
look
> at the following. I get 'No library found' and note: both LD_LIBRARY_PATH
> is set and -L specifies the location
>
> ***********************************************
> use ExtUtils::MakeMaker;
>
> die "SGE_ROOT environment variable not defined " unless my $SGE_ROOT =
> $ENV{SGE_ROOT};
>
> # See lib/ExtUtils/MakeMaker.pm for details of how to influence
> # the contents of the Makefile that is written.
> WriteMakefile(
> 'NAME' => 'Schedule::DRMAAc',
> 'VERSION_FROM' => 'DRMAAc.pm', # finds $VERSION
> 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
> ($] >= 5.005 ? ## Add these new keywords supported since 5.005
> (ABSTRACT_FROM => 'DRMAAc.pm', # retrieve abstract from module
> AUTHOR => 'Tim Harsch <[EMAIL PROTECTED]>') : ()),
> 'LIBS' => ['-ldrmaa', '-lsocket', '-lnsl', '-lm', '-lpthread'],
> 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
> # Insert -I. if you add *.h files later:
> 'INC' => "-L$SGE_ROOT/lib/sol-sparc -I$SGE_ROOT/include",
>
> # Un-comment this if you add C files to link with later:
> 'OBJECT' => '$(O_FILES)', # link all the C files too
> );
> ***********************************************
> [868] dna:/home/harsch/CVS/managers/drmaa> echo $LD_LIBRARY_PATH
>
/home/harsch/CVS/managers/drmaa/Schedule:/home/harsch/tmp/SGE_040310/lib/sol
> -sparc:/usr/local/lib:/usr/local/opt/SUNWspro/lib:/opt/SUNWspro/lib:/usr/o
pe
> nwin/lib:/usr/dt/lib:/usr/4lib
> [869] dna:/home/harsch/CVS/managers/drmaa> echo $SGE_ROOT/
> /home/harsch/tmp/SGE_040310/
> [870] dna:/home/harsch/CVS/managers/drmaa> perl Makefile.PL
> Note (probably harmless): No library found for -ldrmaa
> Writing Makefile for Schedule::DRMAAc
>
>