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.cgito 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 calledlib; inside that the file in the error message (for example,Some/File.pm) exists. - Make sure the files were uploaded in
ASCIImode (only images should be uploaded inBINARYmode).
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.


