• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Download and install that would have the "shared.pm

This question is regarding Perl.  I have a script that is running and it is not finding the following library: "shared.pm"

Who can tell me which would be the correct module to download and install that would have the "shared.pm"

This is the error  "Can't locate threads/shared.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .)"

Please, help me by directing me how to find out which will be the right place to download the module or the library.  

Nancy L
  • 2
1 Solution
What version of Perl are you using?  You need to be using 5.8.x

You need these 2 modules:
  use threads;
  use threads::shared;


Both of them are core modules in 5.8.x which means they are included in the activestate install of Perl.  However, if you're using 5.6.x, then neither is installed by default.  You can use ppm to install threads, but according to activestate, threads::shared does not work below 5.8.x.

My recommendation is to upgrade to 5.8.7 which comes with both modules.
Suhas .QA ManagerCommented:
Hi nlopezzapa07,
Check once have u installed the shared.pm in path of @INC array.
else u have to add the path, where u saved the .pm file.

nlopezzapa07Author Commented:
With the links it took me a little while, but learned the hard way to that the path needed to be added.  Your help has been excellent.  

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now