in reply to Re^7: How to add path to @INC
in thread How to add path to @INC

Thanks,

How can I see the versions of perl that I have? When I type perl -v ---- This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux!

Indeed when I type perldoc perllocal to see all modules GD doesn't appear!

Best,

TSN

Replies are listed 'Best First'.
Re^9: How to add path to @INC
by Anonymous Monk on May 22, 2016 at 23:16 UTC

    How can I see the versions of perl that I have?

    You search your drive for executable files called 'perl', so  locate perl or some such

    big V as in  perl -V gives more details

    Indeed when I type perldoc perllocal to see all modules GD doesn't appear!

    if its a system perl, which doesn't use makemaker.... to install modules, it won't maintain perllocal

    perllocal gets updated when you're installing into sitelib ... when you're installing into other places ( PERLLIB ) they get their own perllocal.pod, a different file, ignored by perldoc

      When I type perl -V:
      Summary of my perl5 (revision 5 version 24 subversion 0) configuration +: Platform: osname=linux, osvers=3.19.0-59-generic, archname=x86_64-linux uname='linux uce-hp-z400-workstation 3.19.0-59-generic #65~14.04.1 +-ubuntu smp tue apr 19 18:57:09 utc 2016 x86_64 x86_64 x86_64 gnulinu +x ' config_args='' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-prot +ector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +', optimize='-O2', cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/ +usr/local/include' ccversion='', gccversion='4.8.4', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 +, doublekind=3 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6, longdblkind=3 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fi +xed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib +/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=libc-2.19.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.19' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstac +k-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_ +WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_I +NT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE +_TIME USE_PERLIO USE_PERL_ATOF Built under linux Compiled at May 17 2016 00:33:43 %ENV: PERL5LIB="/home/uce/SOFTWARE_UCEs/BioPerl-1.6.924" @INC: /home/uce/SOFTWARE_UCEs/BioPerl-1.6.924 /usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux /usr/local/lib/perl5/site_perl/5.24.0 /usr/local/lib/perl5/5.24.0/x86_64-linux /usr/local/lib/perl5/5.24.0 .

      I don't see any other perl version!

      I'm freaking out with perl!!

      I really need to fix this!

      How can I remove de module GD and install it again? this will fix the problem!

      Help me please

        How can I remove de module GD and install it again?

        You just install it again

        this will fix the problem!

        If it works it should ... how did you install the module ( Why is it built against a threaded perl when your perl isn't threaded )?

      When I type
      uce@uce-HP-Z400-Workstation:/usr/local/bin$ sudo find / -name GD [sudo] password for uce: /home/uce/SOFTWARE_UCEs/CLUMPAK/GD-2.56/blib/arch/auto/GD /home/uce/SOFTWARE_UCEs/CLUMPAK/GD-2.56/blib/lib/GD /home/uce/SOFTWARE_UCEs/CLUMPAK/GD-2.56/lib/GD /home/uce/.cpanplus/5.18.2/build/GD-2.56/blib/arch/auto/GD /home/uce/.cpanplus/5.18.2/build/GD-2.56/blib/lib/auto/GD /home/uce/.cpanplus/5.18.2/build/GD-2.56/blib/lib/GD /home/uce/.cpanplus/5.18.2/build/GD-2.56/lib/GD /home/uce/.cpan/build/GDTextUtil-0.86-mBNb6n/blib/arch/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-mBNb6n/blib/lib/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-mBNb6n/blib/lib/GD /home/uce/.cpan/build/GDTextUtil-0.86-xTHGce/blib/arch/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-xTHGce/blib/lib/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-xTHGce/blib/lib/GD /home/uce/.cpan/build/GDGraph-1.52-U_7Una/blib/arch/auto/GD /home/uce/.cpan/build/GDGraph-1.52-U_7Una/blib/lib/auto/GD /home/uce/.cpan/build/GDGraph-1.52-U_7Una/blib/lib/GD /home/uce/.cpan/build/GDTextUtil-0.86-uedP40/blib/arch/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-uedP40/blib/lib/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-uedP40/blib/lib/GD /home/uce/.cpan/build/GDTextUtil-0.86-689J_Q/blib/arch/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-689J_Q/blib/lib/auto/GD /home/uce/.cpan/build/GDTextUtil-0.86-689J_Q/blib/lib/GD /usr/local/share/perl/5.18.2/GD /usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux/auto/GD /usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux/GD /usr/local/lib/perl/5.18.2/auto/GD

      I see that is libraries and other things in perl 5.18.2! Can you tell me please, how can I remove this to fix my problem? Or other way to fix it?

        There's no need to remove anything. Unless you explicitly and incorrectly force to perl to look into a directory it shouldn't, you won't have a problem from the existence of these files.