|Think about Loose Coupling|
Re: Funny Little Permissions Issue on Ubuntuby Lu. (Hermit)
|on Apr 22, 2009 at 10:51 UTC||Need Help??|
Is this perl the system perl ? (the one that came with ubuntu)
If that's the case, you'd be better off using option number 4 : using apt-get to install perl modules. Most of them are accessible from the repositories. Or you could use some utility, like cpan2deb, which will convert cpan packages to .deb installable archives. One advantage is that you will never have test failures during installation.
Or use option 5, which is installing or compiling your own perl, in a directory where you have write access (for example, I use /opt/ as the prefix, and executables in /opt/bin, modules under /opt/lib ...)
Option 2 will cause permission issues, because you don't have access to subdirectories of the /root directory. No read, no write, no nothing.
Option 3 too, because you don't have write access in /usr/local/whatsitsname and you don't want to have it (security issues ahead).
So, my advice is : use synaptic to install your modules, or install your own perl. Don't mess with system perl.