
Math::GMP
Dear list,
I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I
have installed a GMP library (required for Math::GMP) but when I try to
install Math::GMP I get an error. Here's the transcript. May someone shed
some light?
perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Math::GMP
-----
make
cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc
&& mv GMP.xsc GMP.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"2.06\"
-DXS_VERSION=\"2.06\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" GMP.c
GMP.xs: In function āconstantā:
GMP.xs:49: warning: label ānot_thereā defined but not used
GMP.c: At top level:
GMP.xs:35: warning: ānot_hereā defined but not used
Running Mkbootstrap for Math::GMP ()
chmod 644 GMP.bs
rm -f blib/arch/auto/Math/GMP/GMP.so
LD_RUN_PATH="/usr/lib64" gcc -shared -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic GMP.o -o
blib/arch/auto/Math/GMP/GMP.so \
-lgmp \
chmod 755 blib/arch/auto/Math/GMP/GMP.so
cp GMP.bs blib/arch/auto/Math/GMP/GMP.bs
chmod 644 blib/arch/auto/Math/GMP/GMP.bs
Manifying blib/man3/Math::GMP.3pm
-----
make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_signature.t ... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/01_gmppm.t ....... Can't load
'/root/temp/Math-GMP-2.06/blib/arch/auto/Math/GMP/GMP.so' for module
Math::GMP: libgmp.so.10: cannot open shared object file: No such file or
directory at
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader. pm line 230.
at t/01_gmppm.t line 6
Compilation failed in require at t/01_gmppm.t line 6.
BEGIN failed--compilation aborted at t/01_gmppm.t line 6.
t/01_gmppm.t ....... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/99_perlcritic.t .. skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/99_pod.t ......... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/99_spellcheck.t .. skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/99_yaml.t ........ skipped: Test skipped unless environment variable
RELEASE_TESTING is set
Test Summary Report
-------------------
t/01_gmppm.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=6, Tests=0, 0 wallclock secs ( 0.04 usr 0.02 sys + 0.09 cusr
0.03 csys = 0.18 CPU)
Result: FAIL
Failed 1/6 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 255
Many thanks,
--
Dave Tang
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
Hi Dave!
On Thursday 25 Feb 2010 08:14:11 Dave Tang wrote:
> Dear list,
>
> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I
> have installed a GMP library (required for Math::GMP) but when I try to
> install Math::GMP I get an error. Here's the transcript. May someone shed
> some light?
=46irst of all - what is your Operating System, Linux/etc. Distribution and=
version. There may be an easier way to install all this there which also wo=
n't
pollute your filesystem.
Now on to your problem:
>
> perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Math::GMP
>
> -----
>
> make
> cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
> AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
> /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc
> && mv GMP.xsc GMP.c
> gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector
> --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric -DVERSION=3D\"2.06\"
> -DXS_VERSION=3D\"2.06\" -fPIC
> "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" GMP.c
> GMP.xs: In function =E2constant=E2:
> GMP.xs:49: warning: label =E2not_there=E2 defined but not used
> GMP.c: At top level:
> GMP.xs:35: warning: =E2not_here=E2 defined but not used
> Running Mkbootstrap for Math::GMP ()
> chmod 644 GMP.bs
> rm -f blib/arch/auto/Math/GMP/GMP.so
> LD_RUN_PATH=3D"/usr/lib64" gcc -shared -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector
> --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric GMP.o -o
> blib/arch/auto/Math/GMP/GMP.so \
> -lgmp \
>
> chmod 755 blib/arch/auto/Math/GMP/GMP.so
> cp GMP.bs blib/arch/auto/Math/GMP/GMP.bs
> chmod 644 blib/arch/auto/Math/GMP/GMP.bs
> Manifying blib/man3/Math::GMP.3pm
>
> -----
>
> make test
> PERL_DL_NONLAZY=3D1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/00_signature.t ... skipped: Test skipped unless environment variable
> RELEASE_TESTING is set
> t/01_gmppm.t ....... Can't load
> '/root/temp/Math-GMP-2.06/blib/arch/auto/Math/GMP/GMP.so' for module
> Math::GMP: libgmp.so.10: cannot open shared object file: No such file or
> directory at
Looks like it cannot find a file called libgmp.so.10 - maybe it's not in
LD_LIBRARY_PATH or it's a dangling symbolic link.
Regards,
Shlomi Fish
=2D-
=2D--------------------------------------------------------- -------
Shlomi Fish http://www.shlomifish.org/
Why I Love Perl - http://shlom.in/joy-of-perl
Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
On Thu, 25 Feb 2010 17:27:25 +1000, Shlomi Fish <shlomif [at] iglu.org.il>
wrote:
> Hi Dave!
Hi Shlomi!
Thank you for your reply.
[snip]
>> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module.
>> I
>> have installed a GMP library (required for Math::GMP) but when I try to
>> install Math::GMP I get an error. Here's the transcript. May someone
>> shed
>> some light?
>
> First of all - what is your Operating System, Linux/etc. Distribution and
> version. There may be an easier way to install all this there which also
> won't
> pollute your filesystem.
Linux version 2.6.18-92.1.17.el5 (brewbuilder [at] hs20-bc1-7.build.redhat.com)
(gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Wed Oct 22 04:19:38
EDT 2008
and
This is perl, v5.8.8 built for x86_64-linux-thread-multi
> Now on to your problem:
[snip]
>> t/01_gmppm.t ....... Can't load
>> '/root/temp/Math-GMP-2.06/blib/arch/auto/Math/GMP/GMP.so' for module
>> Math::GMP: libgmp.so.10: cannot open shared object file: No such file or
>> directory at
>
> Looks like it cannot find a file called libgmp.so.10 - maybe it's not in
> LD_LIBRARY_PATH or it's a dangling symbolic link.
I found this file in the installation directory of gmp-5.0.1, which is the
GMP library I had to install for Math::GMP.
Could this also mean that I didn't install the GMP library correctly? If
it is a path issue, how would I go about it?
Thanks again!
Dave
>
> Regards,
>
> Shlomi Fish
>
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
From: "Dave Tang" <d.tang [at] imb.uq.edu.au>
> Dear list,
>
> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I
> have installed a GMP library (required for Math::GMP) but when I try to
> install Math::GMP I get an error. Here's the transcript. May someone shed
> some light?
I don't know your OS or version of Perl, but if you use ActivePerl 5.10.1
under Windows, you can install Math::GMP with ppm from uwinnipeg ppm
repository at:
http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.xml
Octavian
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
On Thursday 25 Feb 2010 10:27:28 Dave Tang wrote:
> On Thu, 25 Feb 2010 17:27:25 +1000, Shlomi Fish <shlomif [at] iglu.org.il>
>
> wrote:
> > Hi Dave!
>
> Hi Shlomi!
>
Hi Dave.
> Thank you for your reply.
>
> [snip]
>
> >> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module.
> >> I
> >> have installed a GMP library (required for Math::GMP) but when I try to
> >> install Math::GMP I get an error. Here's the transcript. May someone
> >> shed
> >> some light?
> >
> > First of all - what is your Operating System, Linux/etc. Distribution and
> > version. There may be an easier way to install all this there which also
> > won't
> > pollute your filesystem.
>
> Linux version 2.6.18-92.1.17.el5 (brewbuilder [at] hs20-bc1-7.build.redhat.com)
> (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Wed Oct 22 04:19:38
> EDT 2008
>
> and
>
> This is perl, v5.8.8 built for x86_64-linux-thread-multi
>
OK, seems like it's Red Hat Enterprise Linux 5 / CentOS 5. You can find a
package for Net-SSH-Perl for them on the DAG package repository:
http://dag.wieers.com/rpm/packages/perl-Net-SSH-Perl/
You should install from it.
> > Now on to your problem:
> [snip]
>
> >> t/01_gmppm.t ....... Can't load
> >> '/root/temp/Math-GMP-2.06/blib/arch/auto/Math/GMP/GMP.so' for module
> >> Math::GMP: libgmp.so.10: cannot open shared object file: No such file or
> >> directory at
> >
> > Looks like it cannot find a file called libgmp.so.10 - maybe it's not in
> > LD_LIBRARY_PATH or it's a dangling symbolic link.
>
> I found this file in the installation directory of gmp-5.0.1, which is the
> GMP library I had to install for Math::GMP.
>
> Could this also mean that I didn't install the GMP library correctly? If
> it is a path issue, how would I go about it?
You should install GMP using yum: "yum install gmp-devel" or something along
these lines. But installing the perl-Net-SSH-Perl should do it for you.
Regards,
Shlomi Fish
>
> Thanks again!
>
You're welcome.
> Dave
>
> > Regards,
> >
> > Shlomi Fish
--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Understand what Open Source is - http://shlom.in/oss-fs
Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
On Thu, 25 Feb 2010 18:30:33 +1000, Octavian Rasnita <orasnita [at] gmail.com>
wrote:
> From: "Dave Tang" <d.tang [at] imb.uq.edu.au>
>> Dear list,
>>
>> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module.
>> I have installed a GMP library (required for Math::GMP) but when I try
>> to install Math::GMP I get an error. Here's the transcript. May someone
>> shed some light?
>
> I don't know your OS or version of Perl, but if you use ActivePerl
> 5.10.1 under Windows, you can install Math::GMP with ppm from uwinnipeg
> ppm repository at:
>
> http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.xml
Hi Octavian,
Thanks for the reply! I'll keep that in mind, I use Perl on Windows too.
And next time when posting questions like, I'll remember to include my OS
and Perl version.
Cheers,
Dave
>
> Octavian
>
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
On 02/25/2010 07:14 AM, Dave Tang wrote:
> Dear list,
>
> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module.
> I have installed a GMP library (required for Math::GMP) but when I try
> to install Math::GMP I get an error. Here's the transcript. May someone
> shed some light?
Net::SSH::Perl is mostly unmaintained nowadays with lots of unresolved
bugs in its queue.
Better alternatives are Net::SSH2 and Net::OpenSSH.
- Salva
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
On Thu, 25 Feb 2010 19:54:13 +1000, Salvador Fandino <sfandino [at] yahoo.com>
wrote:
> On 02/25/2010 07:14 AM, Dave Tang wrote:
>> Dear list,
>>
>> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module.
>> I have installed a GMP library (required for Math::GMP) but when I try
>> to install Math::GMP I get an error. Here's the transcript. May someone
>> shed some light?
>
> Net::SSH::Perl is mostly unmaintained nowadays with lots of unresolved
> bugs in its queue.
>
> Better alternatives are Net::SSH2 and Net::OpenSSH.
Thank you Salva. I will try these out as I am still having problems
getting Net::SSH::Perl to work.
>
> - Salva
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
On Thu, 25 Feb 2010 19:54:13 +1000, Salvador Fandino <sfandino [at] yahoo.com>
wrote:
> On 02/25/2010 07:14 AM, Dave Tang wrote:
>> Dear list,
>>
>> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module.
>> I have installed a GMP library (required for Math::GMP) but when I try
>> to install Math::GMP I get an error. Here's the transcript. May someone
>> shed some light?
>
> Net::SSH::Perl is mostly unmaintained nowadays with lots of unresolved
> bugs in its queue.
>
> Better alternatives are Net::SSH2 and Net::OpenSSH.
Hi Salvador!
I went with Net::OpenSSH, since with Net::SSH2 I had to install some
libraries. I used the CPAN shell to install it.
It's working, but just a note that I had to install IO::Pty manually.
Thanks for creating the module and for sharing!
Cheers,
Dave
>
> - Salva
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Math::GMP
Hi Shlomi.
> OK, seems like it's Red Hat Enterprise Linux 5 / CentOS 5. You can find a
> package for Net-SSH-Perl for them on the DAG package repository:
>
> http://dag.wieers.com/rpm/packages/perl-Net-SSH-Perl/
>
> You should install from it.
>
> You should install GMP using yum: "yum install gmp-devel" or something
> along
> these lines. But installing the perl-Net-SSH-Perl should do it for you.
Thanks for the suggestions! I got tired of installing so many modules and
libraries just to get Net::SSH::Perl working.
So I went with Net::OpenSSH, as Salvador suggested, and it's working fine.
Cheers,
--
Dave Tang
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/