I try to setenv PERLLIB & PERL5LIB. but it have the same error
message.(net::ldap)
And other module use the same config not to setenv.It still can run.
OK. I will not install LDAP, because I don't want to download gazillion
other modules from CPAN, but let's try with Net:
NS:
$ mkdir ~/my_mods
$ ls
Changes demo lib MANIFEST README TODO
contrib DNS.xs Makefile.PL META.yml t
$ perl Makefile.PL prefix=$HOME/my_mods
Testing if you have a C compiler and the needed header files....
cc -c -o compile.o compile.c
You have a working compiler.
You appear to be directly connected to the Internet. I have some tests
that try to query live nameservers.
Do you want to enable these tests? [y]
Checking if your kit is complete...
Looks good
Writing Makefile for Net:
NS
Make and make test go more or less as expected, below is the output from
make install:
$ make install
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Net/DNS/DNS.so
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Net/DNS/DNS.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Header.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Update.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Resolver.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Nameserver.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/FAQ.pod
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Question.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Packet.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Resolver/Win32.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Resolver/Cygwin.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Resolver/Recurse.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Resolver/UNIX.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/A.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/Unknown.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/MX.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/EID.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/ISDN.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/NIMLOC.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/SOA.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/OPT.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/TXT.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/DNAME.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/AAAA.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/RP.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/X25.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/PTR.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/NS.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/TSIG.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/PX.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/LOC.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/NULL.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/RT.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/AFSDB.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/SRV.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/MINFO.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/MR.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/CNAME.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/HINFO.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/NAPTR.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/CERT.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/MG.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/TKEY.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/NSAP.pm
Installing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Net/DNS/RR/MB.pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::A.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Resolver::Win32.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::Unknown.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::EID.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::ISDN.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::MX.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Header.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::SOA.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::OPT.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::NIMLOC.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR:
NAME.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::TXT.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::AAAA.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::X25.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::RP.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR:
TR.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Resolver::Recurse.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Resolver::Cygwin.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::NS.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::TSIG.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Update.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Resolver.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR:
X.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Nameserver.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::NULL.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::LOC.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::SRV.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::AFSDB.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::RT.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::MINFO.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::MR.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::FAQ.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::CNAME.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Question.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::NAPTR.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS:
acket.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::HINFO.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::MG.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::TKEY.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::NSAP.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::CERT.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Resolver::UNIX.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::RR::MB.3pm
Installing /home/mgogala/my_mods/share/man/man3/Net:
NS::Resolver::Base.3pm
Writing /home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Net/DNS/.packlist
Appending installation info to /home/mgogala/my_mods/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
Without the proper PERL5LIB setting:
$ perl -e 'use Net:
NS;print Net:
NS->version,"\n";'
0.23
$
With the proper PERL5LIB setting:
PERL5LIB=/home/mgogala/my_mods/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi:$PERL5LIB
$ perl -e 'use Net:
NS;print Net:
NS->version,"\n";'
0.47
$
That means that perl is using my newly installed Net:
NS module version
0.47 which is newer then version 0.23 which comes with the system.
Try locating the .pm file for the module you're looking for with find
and then put the coresponding directory in the PERL5LIB.