problem with using a module just recently installed

From: Nelson Tong (nelsonstong_at_gmail.com)
Date: 03/25/05


Date: Thu, 24 Mar 2005 22:48:44 -0500
To: beginners@perl.org

HI,

  I am having a problem of using a module recently installed and just
can't quite figure out a solution. I installed 'Cache::FastMmap'
using -MCPAN, and made @INC contains the directory where I have
installed the module (eg.
.../.cpan/build/Cache-FastMmap-1.09/blib/lib/).

When I use perldoc:

perldoc 'Cache::FastMmap' and perldoc 'Cache::FastMmap::CImpl'

the documents installed appear which supposingly mean both modules
must have been installed properly. But when I test the module by
using:

perl -e 'use Cache::FastMmap'

error came up which says:

Can't locate loadable object for module Cache::FastMmap::CImpl in @INC
(@INC contains: ....) at
.../.cpan/build/Cache-FastMmap-1.09/blib/lib/Cache/FastMmap.pm line
217

The Cache::FastMmap::CImpl clearly is there in the directory because
it it is not, perldoc wouldn't have been able to locate it with @INC (
I also double checked to make sure @INC contains the dirctory
'.../.cpan/build/Cache-FastMmap-1.09/blib/lib/' under which both
Cache::FastMmap::CImpl and Cache::FastMmap live) . How come this error
occurs?