SCHWARTZKOPFF, Michael, Dr. (Extern) wrote:
> Hi,
> 
> I wanted to the Net::SSH::Perl but perl complained about a missing
> Math::GMP. So did a 
> cpan install Math::GMP
> and finally found 
> /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Math/GMP.pm
> on my system. But when I add this path to my lib and started my program
> I get the error:
> perl: symbol lookup error:
> /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Math/GMP/G
> MP.so: undefined symbol: Perl_Gthr_key_ptr
> 
> Searching for this error I found out that the library is for threaded
> perl. Now my questions:
> Why does cpan install a threaded version when my normal perl does not
> use threads?

You state "normal perl"... Do you have more than one installed? What
distro and version are you using? System perl is almost always at /usr
and usually threaded, but often a non-threaded perl is installed
elsewhere, say /usr/local. You would need to specify the correct perl
when executing cpan (or more precisely the correct cpan).

> Howto make cpan install a "normal" verison, which my system can use?
> 

It should be correct. Can you double check with,

> perl -V

And provide the output.

As an aside if you are planning to only use SSH version 2 you don't need
a functional Math::GMP, it is only required for version 1. Math::Pari is
used for version 2.

> Thanks for any help.

-- 
Brian J. Miller
End Point Corp.
http://www.endpoint.com/
br...@endpoint.com

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to