mr_p has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I am trying to install local lib thread::Queue. I am not able to install because it is throwing error saying threads::shared required is not up to date, eventhough I have install threads in the local lib.

Here is the steps I followed.
Installed Local::Lib, threads, threads::shared using below command (La +test versions from cpan) perl Makefile.PL PREFIX=/sox/perl_lib make make test make install Now I try to install Thread::Queue. perl Makefile.PL PREFIX=/sox/perl_lib make make test Error: Error: threads::shared version 1.21 required--this is only ver +sion 0.94

Why isn't 'mak test' looking into /sox/perl_lib directory for installs?

Replies are listed 'Best First'.
Re: How to install local lib
by ikegami (Patriarch) on Apr 16, 2010 at 14:39 UTC

    The problem is that you haven't told Perl to use your local lib. Add the following to your login script ~/.bash_profile if you use the parameters I suggest below:

    export PERL5LIB=/sox/perl_lib/lib/perl5

    PREFIX has a poor default for LIB=. The following is recommended instead:

    perl Makefile.PL PREFIX=/sox/perl_lib LIB=/sox/perl_lib/lib/perl5

    If you have ExtUtils::MakeMaker 6.31 or newer, you can write that as

    perl Makefile.PL INSTALL_BASE=/sox/perl_lib
      Thank you so much.

      I am trying to create another thread on the following an the site is not letting me create do u know why? Is it because I have this thread active.

      I have question on Threads::Queue::Any.

      Hello,

      Does anyone know if Threads::Queue::Any is safe to use, Currently I am using Threads::Queue and queuing a stiring with '|' delimited and spliting string after dequeing it.

      Or can anyone think of better way to do this? I still would like to used Threads::Queue though.

      I tried it and still not working.

      Warning: prerequisite threads::shared 1.21 not found. We have 0.94.

        Are you saying you have version 0.94 of Threads::Shared? You realise you are being asked for version 1.21?

        Did you actually execute your login script (by logging in)? What's perl -V (uppercase "V") give?