-----Ursprüngliche Nachricht-----
Von: Brian J. Miller [mailto:wigg...@danconia.org] 
Gesendet: Dienstag, 28. April 2009 14:15
An: SCHWARTZKOPFF, Michael, Dr. (Extern)
Cc: beginners@perl.org
Betreff: Re: Problem with threaded Math::GMP

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).

I only have one perl installed rpm -qa | grep perl gives:
perl-5.8.8-14.7
My system is a SuSE Linux Destop 10.1
find /usr -name "perl" 2>/dev/null
/usr/bin/perl

> 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.

perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.6.8-24-default, archname=x86_64-linux
    uname='linux cp001785 2.6.8-24-default #4 fri mar 4 14:39:37 cet 2005 
x86_64 x86_64 x86_64 gnulinux '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='/yaprod/comp/intel/compiler81/em64t/bin/icc', ccflags 
='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='Intel(R) C++ gcc 3.0 mode', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/yaprod/comp/intel/compiler81/em64t/bin/icc', ldflags =' 
-L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
  Built under linux
  Compiled at Mar 17 2005 09:47:26
  @INC:
    /yaprod/freeware/Linux_x86_64//lib/perl5/5.8.4/x86_64-linux
    /yaprod/freeware/Linux_x86_64//lib/perl5/5.8.4
    /yaprod/freeware/Linux_x86_64//lib/perl5/5.8.4/x86_64-linux/x86_64-linux
    /yaprod/freeware/Linux_x86_64//lib/perl5/5.8.4/x86_64-linux
    /yaprod/freeware/Linux_x86_64//lib/perl5/5.8.4/x86_64-linux

> 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.

I gave up using the perl ssh libs and use system calls.

Michael.
-- 
MTU Aero Engines GmbH
Geschaeftsfuehrung/Board of Management: Egon W. Behle, Vorsitzender/CEO; Dr. 
Rainer Martens, Dr. Stefan Weingartner, Reiner Winkler
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus 
Eberhardt
Sitz der Gesellschaft/Registered Office: Muenchen
Handelsregister/Commercial Register: Muenchen HRB 154230


--
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