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

Can someone please give an idea of how to solve this problem: "Can't locate loadable object for the module Tk in @INC"

Replies are listed 'Best First'.
Re: A Tk Problem!!!
by mt2k (Hermit) on May 11, 2002 at 00:44 UTC
    You will get this error whenever a module has not been completely installed correctly. This generally means that you tried to simply copy over the file with the '.pm' extension to the folder(s) perl looks for when loading a module.

    To explain further: the main module of the library is located in the right place, but there is at least one other file that the main library needs to load in order to function correctly. The problem is that this/these file(s) are missing. As I said, this is usually caused from incorrect installation: some modules require that you compile them (if they include C extension files for example) and therefore you cannot just copy the .pm file to the library folder.

    Solution: if you are the owner of the system in question, then you will need to compile the module correctly. If you are not the owner of the system, contact the administrator and tell them the problem.