Steffen Mueller wrote: > Hi Dave, > > Dave Howorth schrieb: >> $ ls -la /tmp/par-dhoworth/cache-e5cc552fef704e896ec57e3ce6713c00722e2c57 >> total 1882 >> drwxr-xr-x 2 root root 296 2008-05-06 15:42 ./ >> drwxr-xr-x 11 root root 624 2008-05-06 15:42 ../ >> -rwxr-xr-x 1 root root 1406561 2008-05-06 15:42 libperl.so* >> >> The package was installed by cpan, run as root. >> >> When I changed permissions on this directory to 777, pp works. >> >> Is this a known issue and if so, what's the proper resolution? >> >> This machine's running Linux (2.6.11.4-21.15-smp) with Perl 5.8.6 > > you should delete the directory instead of setting it to 0777. The > latter is a security issue. OK, that works. Thanks. > The installation process shouldn't use the par-dhoworth cache directory. > I suspect you're using "sudo make install" (which is generally good, of > course) and not "su root" and then "make install". No, I used: $ su # cpan cpan[1]> install PAR::Packer > I *think* that sudo > doesn't set $USER correctly and potentially no other means of > determining the current user either. That might be the reason why the > stuff went into your user's cache directory. Not sure what to do about > that, though. I have a theory. I just deleted /tmp/par-dhoworth again, then in the root shell I typed pp -e "1;" and it recreated /tmp/par-dhoworth owned by root. So I guess that's what I might have done initially. Then I deleted it again, typed su - and tried the pp again. This time it used the /tmp/par-root directory. I guess that explains it. Perhaps it's worth a note in the POD. There isn't any information about temporary files in the POD for PAR::Packer, pp or even PAR::Tutorial, other than the fact that there are some. When I search specifically, I see there's a description at <http://search.cpan.org/~smueller/PAR-0.977/lib/PAR.pm#NOTES> but it doesn't have a section header so IMHO it's a bit of a stretch for a noob to find. At the top of that doc, it even instructs me to read the pp doc instead, so I hadn't read it! > It's really kind of strange that only the libperl.so is left over, however. There were other files in that directory but they didn't seem important. Sorry I should have added a ... or listed them all :( > Cheers, > Steffen Thanks for the help and thanks to you and everybody else for PAR, DaveThread Previous | Thread Next