At 11:32 am -0600 24/8/06, Doug McNutt wrote:
At 17:03 +0100 8/24/06, David Cantrell wrote:
Run the CPAN shell as root as all will be well.
Idonwannadodat!
...The result is that I can compile and install without being root.
My stuff does not get any chance to screw up something like a system
update from Apple or some Linux distribution. I happily accept the
responsibility for fixing things up if such an update requires
changes to my stuff. My own perl modules end up in $HOME/local so
there can be no accidental naming confusion.
The problem is - - - How do I tell cpan to do things that way? -
especially when there is a batch of dependencies to worry about.
I have never run the CPAN shell as root and I don't see what problems
you're referring to. I just do 'sudo cpan' and everything is
installed where it should go.
Eremita:~ jd$ sudo cpan
CPAN: File::HomeDir loaded ok
cpan shell -- CPAN exploration and modules installation (v1.87)
ReadLine support enabled
cpan> install CGI
CPAN: Storable loaded ok
Going to read /Users/jd/.cpan/Metadata
Database was generated on Thu, 24 Aug 2006 01:35:30 GMT
Running install for module CGI
...
...
All tests successful, 1 subtest skipped.
Files=18, Tests=503, 3 wallclock secs ( 1.75 cusr + 0.50 csys = 2.25 CPU)
/usr/bin/make test -- OK
Running make install
Installing /usr/local/lib/perl5/5.8.8/CGI.pm
Installing /usr/local/lib/perl5/5.8.8/CGI/Cookie.pm
Installing /usr/local/share/man/man3/CGI.3
... etc.
cpan>