in reply to cpan and installing as root

Try this link maybe it helps you.

Replies are listed 'Best First'.
Re^2: cpan and installing as root
by Argel (Prior) on Feb 15, 2010 at 20:49 UTC
    I saw that link but it won't work. The problem is that perl shells out to run make and then the make command shells out to do it's stuff. This mean the umask for the shell is reset because we have it hardcoded in the global bashrc and cshrc files here. I'm really surprised there isn't a way to tell cpan what the permission should be (and have it added tot he makefile somehow) or that e.g. GNU install isn't used to deal with this issue. I ended up overriding it by setting the umask in my local .cshrc file, but that defeats the purpose of setting a more restricted (and saner) umask for root. And if I remove it later on I will likely forget to add it back in later on. I suppose I could just do a chmod -R on the directories and files under lib afterwards, but that sure feels like a kludge. Thanks for the help!!

    Elda Taluta; Sarks Sark; Ark Arks