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

Hello, I know absolutely nothing about Perl, but I'm trying to diagnose a problem. I get an error that states: Can't locate loadable object for module Sun::Solaris::Project The error message points to a file that is using the 'use' clause in the following manner. use Maker::Project What's it looking for? Thanks in advance, Bill

Replies are listed 'Best First'.
Re: Perl use statement
by Happy-the-monk (Canon) on Mar 29, 2004 at 23:03 UTC

    It is looking for a module, an extension of the Perl language, called Maker::Project.
    I haven't heard of that one before, but you might look for a file called "Project.pm" in a subdirectory "Maker" somewhere on the disk. Find it?

    Cheers Sören

      Thanks, I do have a file called Project.pm, and its under a directory called Maker, but it isn't found. Is there some way to set up a search path. --Bill

        Have a look at the answers in Where to install my own perl modules?. You can do it either way. My suggestion was to insert a line at the top of your programme: use lib qw( /path/directory ); - where /path/directory is where the "Maker" subdirectory is located inside.

        Sören

        The "Can't locate loadable object" error is from DynaLoader; it indicates that it has found the appropriate .pm file but not the dynamic library (.dll or .so or whatever) file that goes with it, which ought to be there. This may happen if a module is installed improperly or installed for a different version of perl or for a perl built with different options than the one you are running.

        If you can, reinstall Sun::Solaris::Project from CPAN.