On 20/7/04 9:48 pm, Alan Jaynes <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just installed OpenLDAP 2.2.14 with the NetMeeting Directory Kit on
> Red Hat 7.3, fought against CPAN and convinced it to download and
> install Net::LDAP, and now it's giving me an error.
>
> It says:
> Can't locate Net/LDAP.pm in @INC etc etc etc.
>
> The point is, I upgraded Perl to 5.8.4 from 5.6.1, and it is only
> looking in the 5.6.1 directories to find modules, so I need to add the
> 5.8.4 folders and I don't know how. Please help!
You can do that in your script by adding:
use lib '/path/to/5.8.4/directory';
before any other 'use' statements. However what you're describing really
shouldn't be happening anyway; your 5.8.4 installation sounds rather
confused and I'd be tempted to build and install a fresh copy to another
directory - ie don't overwrite the Red Hat stuff.
> Also, what exactly is @INC and why is it completely impossible to search
> for it and find useful information?
It is the path perl uses to search for libraries/modules. It is mentioned in
the perl and perlmodlib manpages. Sometimes it is hard to find stuff because
there's too much documentation :-(
Cheers,
Chris