[sf-perl] trouble installing Net::LDAP

David Alban extasia at extasia.org
Thu Aug 18 18:02:05 PDT 2011


On Thu, Aug 18, 2011 at 4:50 PM, Francisco Obispo <fobispo at isc.org> wrote:
> $ perl Makefile.PL INSTALL_BASE=/nas/reg
>
> Should inherit across the others as well, if not, try exporting it as a global variable.

thanks.  it still wants to write to the system location.

$ perl Makefile.PL INSTALL_BASE=/nas/reg
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- Convert::ASN1    ...missing. (would need 0.07)
==> Auto-install the 1 mandatory module(s) from CPAN? [y] y
[SASL authentication]
- Authen::SASL     ...missing. (would need 2.00)
==> Auto-install the 1 optional module(s) from CPAN? [n] y
[LDAP URLs]
- URI::ldap        ...missing. (would need 1.1)
==> Auto-install the 1 optional module(s) from CPAN? [n] y
[LDAPS]
- IO::Socket::SSL  ...missing. (would need 0.93)
==> Auto-install the 1 optional module(s) from CPAN? [n] y
[Read/Write DSML files]
- MIME::Base64     ...loaded. (3.07)
- XML::SAX::Writer ...missing.
==> Auto-install the 1 optional module(s) from CPAN? [n] y
[Read/Write LDIF files]
- MIME::Base64     ...loaded. (3.07)
*** Dependencies will be installed the next time you type 'make'.
    (You may need to do that as the 'root' user.)
*** Module::AutoInstall configuration finished.
*** Installing dependencies...
*** You are not allowed to write to the directory
'/usr/lib/perl5/site_perl/5.8.8';
    the installation may fail due to insufficient permissions.

==> Should we try to re-execute the autoinstall process with 'sudo'? [y]

so i did:

$ find * ! -type d | xargs fgrep PREFIX
Makefile:#   MakeMaker ARGV: (q[PREFIX=/nas/reg], q[LIB=/nas/reg/lib/perl])
Makefile:PREFIX = /nas/reg
Makefile:PERLPREFIX = $(PREFIX)
Makefile:SITEPREFIX = $(PREFIX)
Makefile:VENDORPREFIX = $(PREFIX)
Makefile:INSTALLBIN = $(PERLPREFIX)/bin
Makefile:INSTALLSITEBIN = $(SITEPREFIX)/bin
Makefile:INSTALLVENDORBIN = $(VENDORPREFIX)/bin
Makefile:INSTALLSCRIPT = $(PERLPREFIX)/bin
Makefile:INSTALLMAN1DIR = $(PERLPREFIX)/share/man/man1
Makefile:INSTALLSITEMAN1DIR = $(SITEPREFIX)/share/man/man1
Makefile:INSTALLVENDORMAN1DIR = $(VENDORPREFIX)/share/man/man1
Makefile:INSTALLMAN3DIR = $(PERLPREFIX)/share/man/man3
Makefile:INSTALLSITEMAN3DIR = $(SITEPREFIX)/share/man/man3
Makefile:INSTALLVENDORMAN3DIR = $(VENDORPREFIX)/share/man/man3
Makefile:       PREFIX="$(PREFIX)"
Makefile:       cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL
"PREFIX=/nas/reg" "LIB=/nas/reg/lib/perl"
Makefile:       $(PERLRUN) Makefile.PL "PREFIX=/nas/reg" "LIB=/nas/reg/lib/perl"
Makefile:               PREFIX=/nas/reg \
inc/Module/Install/Makefile.pm: # PREFIX/PERL5LIB, and thus,
install_share. Blank them if they exist

oh good.  maybe i can just run make.

nope:

$ make
/usr/bin/perl "-Iinc" Makefile.PL --config=
--installdeps=Convert::ASN1,0.07,Authen::SASL,2.00,URI::ldap,1.1,IO::Socket::SSL,0.93,XML::SAX::Writer,0
*** Installing dependencies...
*** You are not allowed to write to the directory
'/usr/lib/perl5/site_perl/5.8.8';
    the installation may fail due to insufficient permissions.

==> Should we try to re-execute the autoinstall process with 'sudo'? [y]

what am i missing?

thanks.

-- 
Live in a world of your own, but always welcome visitors.


More information about the SanFrancisco-pm mailing list