On Thu, August 24, 2006 12:00 pm, Moisés Chicharro said:
> Thanks to everyone for their suggestions.
>
> I ran the 'perl -MCPAN -e shell' and it told me to update the module
which I did. So I now have v1.7601.
>
> However, when trying to run 'install DBI', it piled a whole load of
stuff into the terminal window which ended with this below ( the NOT OK
bit is worrying me )...
>
> -----------
> test.pl done
>    /usr/bin/make test -- OK
> Running make install
> Manifying blib/man1/dbiproxy.1
> Warning: You do not have permissions to install into /usr/local/man/
man1 at /System/Library/Perl/5.8.6/ExtUtils/Install.pm line 114. mkdir
/usr/local/man/man3: Permission denied at /System/Library/Perl/
5.8.6/ExtUtils/Install.pm line 112
> make: *** [pure_site_install] Error 255
>    /usr/bin/make install  -- NOT OK
> ------------
>
> Does that make sense to any of you guys?

Easy sense: The important line is this: 'Warning: You do not have
permissions to install into'  It means exactly what it says: you don't
have the permissions to do that, as the user you are logged in as. 
Basically only root has write permissions to those directories.

The easy thing to do is invoke cpan as root, using sudo, but there is a
better way: Have cpan invoke 'sudo' for the install itself.  This is a
fairly recent option in cpan though, so you may need to use the 'run cpan
as root' first to get that version isntalled.

Anyway, if you have the version that supports it, just enter the line
o conf make_install_make_command 'sudo make'
in the cpan shell.  It will then run 'sudo make' for the final step, and
ask you for the password to allow the install at that point.  This means
it can remind you, and that you will never run a module that _fails_ its
tests as root.  (And all the messy stuff with installing, unpacking, and
the rest are done as you, not root.)

At the moment it didn't do the install, but only because it did not have
the permissions to finish.  There were no problems with the module, from
what you've said.

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

Reply via email to