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

Hi Rob!

Now I have a new problem with the module GD

When I try install de module GD::Text I have this:

 Can't load '/usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux/auto/GD/GD.so' for module GD: /usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux/auto/GD/GD.so: undefined symbol: PL_thr_key at /usr/local/lib/perl5/5.24.0/x86_64-linux/DynaLoader.pm line 193. When I try  cpan install GD

GD is up to date (2.56)

I really need to fix this to run a software!

Can you help me once more?

Cheers

TSN

Replies are listed 'Best First'.
Re^7: How to add path to @INC
by Anonymous Monk on May 22, 2016 at 22:45 UTC
    you're mixing incompatible perls, a GD compiled against a threaded perl, being run from a non-threaded perl, it won't work, can't mix threaded/non threaded, can't mix versions (ex 5.22 and 5.24.1) you need to recompile/reinstall GD with the version of perl you're trying to run
      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

        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