I
Ishmael
I'm trying to install Net::SSH locally (not as root), but I'm having
trouble getting Make to recognize the paths to the required (also
locally installed) packages.
Here's what I'm doing. First, I create the Makefile.
perl Makefile.PL PREFIX=/home/kstahl/PERL/Net-SSH-Perl-1.30
** Note that I have edited Makefile.PL by adding the following line (in
the hopes that at least it will find my local version of GMP:
LIBS => ['-L/home/kstahl/PERL/Math-GMP-2.04/'],
The messages I then get are not promising. Still, the warnings below I
think are created by trying to run 'use mypackage' and then capturing
the error messages, and since 'use' doesn't know about my local
installation of GMP, the error doesn't mean much.
...
Checking if your kit is complete...
Looks good
Warning: prerequisite Digest::SHA1 2.10 not found. We have 2.04.
Warning: prerequisite Math::GMP 1.04 not found.
Warning: prerequisite Scalar::Util 0 not found.
Writing Makefile for Net::SSH:erl
Now 'make' doesn't give any errors, but 'make test' gives the following
(excerpt):
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-compile.....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/02-buffer......Can't load
'/apps/gnu/perl_local/lib/site_perl/5.6.1/sol2.sun4/auto/Math/GMP/GMP.so'
for
module Math::GMP: ld.so.1: /usr/local/bin/perl: fatal: libgmp.so.3:
open failed:
No such file or directory at
/apps/gnu/perl-5.6.1/lib/sol2.sun4/DynaLoader.pm
line 206.
at t/02-buffer.t line 9
Compilation failed in require at t/02-buffer.t line 9.
BEGIN failed--compilation aborted at t/02-buffer.t line 9.
...
As I read it, the compiler is looking for GMP.so in the Perl
installation directory, but that's not where it is - it's in my local
directory. How can I force the compiler to look in the right place?
Thanks a million for your help.
trouble getting Make to recognize the paths to the required (also
locally installed) packages.
Here's what I'm doing. First, I create the Makefile.
perl Makefile.PL PREFIX=/home/kstahl/PERL/Net-SSH-Perl-1.30
** Note that I have edited Makefile.PL by adding the following line (in
the hopes that at least it will find my local version of GMP:
LIBS => ['-L/home/kstahl/PERL/Math-GMP-2.04/'],
The messages I then get are not promising. Still, the warnings below I
think are created by trying to run 'use mypackage' and then capturing
the error messages, and since 'use' doesn't know about my local
installation of GMP, the error doesn't mean much.
...
Checking if your kit is complete...
Looks good
Warning: prerequisite Digest::SHA1 2.10 not found. We have 2.04.
Warning: prerequisite Math::GMP 1.04 not found.
Warning: prerequisite Scalar::Util 0 not found.
Writing Makefile for Net::SSH:erl
Now 'make' doesn't give any errors, but 'make test' gives the following
(excerpt):
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-compile.....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/02-buffer......Can't load
'/apps/gnu/perl_local/lib/site_perl/5.6.1/sol2.sun4/auto/Math/GMP/GMP.so'
for
module Math::GMP: ld.so.1: /usr/local/bin/perl: fatal: libgmp.so.3:
open failed:
No such file or directory at
/apps/gnu/perl-5.6.1/lib/sol2.sun4/DynaLoader.pm
line 206.
at t/02-buffer.t line 9
Compilation failed in require at t/02-buffer.t line 9.
BEGIN failed--compilation aborted at t/02-buffer.t line 9.
...
As I read it, the compiler is looking for GMP.so in the Perl
installation directory, but that's not where it is - it's in my local
directory. How can I force the compiler to look in the right place?
Thanks a million for your help.