The Movable Type Knowledge Base

Can't Locate [path/filename].pm

Question

When running any of the Movable Type CGI scripts, I receive an error that says Can't locate Some/File.pm in @INC (where Some/File.pm is the name of a particular file).

Answer

  • Run mt-check.cgi to ensure that all of the Perl modules required for Movable Type usage are installed on your webserver. If they are not, follow the instructions in the Installation Documentation.
  • Check to make sure that in the directory containing your CGI files (for example, mt.cgi), there is a directory called lib; inside that the file in the error message (for example, Some/File.pm) exists.
  • Make sure the files were uploaded in ASCII mode (only images should be uploaded in BINARY mode).

Note that the file names are case sensitive, so a directory called Lib, for example, will not work. Likewise some/file.pm is not the same thing as Some/File.pm; the latter will work, but the former will not. Your FTP program may have a setting to change filenames to lower case automatically. You should double-check to make sure this setting is turned off.

You may also get an error on a file that should be located in a directory other than lib (for example, Locale/Maketext.pm is located in extlib). Make sure that when you unpacked the tar.gz file, that your unzipping program maintained the correct folder and file structure.

Errors concerning other Perl modules:

  • Can't locate Apache/Request.pm:
    The Apache::Request perl module (and Apache::Cookie) are called by Movable Type when it is being run under mod_perl. If you see this error, you will need to contact your host to have these modules installed for you. If you're the administrator of the server, you can search CPAN for these modules to install them yourself.

Please note that support staff cannot provide assistance with installing required or optional modules on your server.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.