develooper Front page | perl.par | Postings from May 2008

pp fails with permission error

Thread Next
Dave Howorth
May 7, 2008 07:47
pp fails with permission error
Message ID:
I'm just starting with PAR. After installing PAR::Packager (0.978),
trying to execute any pp command failed. e.g.:

$ pp -e "1;"
/tmp/parlNCUe: creation of
failed - aborting with 13.
/usr/bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static'
to file 'parlg5DR6zO' at /usr/lib/perl5/site_perl/5.8.6/PAR/
line 1157, <DATA> line 1.

Looking at the permissions on the
directory, it is clear the reason is lack of permission (I'm running as
user dhoworth):

$ 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*

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 ( with Perl 5.8.6

Thanks and regards,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About