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

pp fails with permission error

Thread Next
From:
Dave Howorth
Date:
May 7, 2008 07:47
Subject:
pp fails with permission error
Message ID:
4821C0F8.4000400@mrc-lmb.cam.ac.uk
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
/tmp/par-dhoworth/cache-e5cc552fef704e896ec57e3ce6713c00722e2c57/parlNCUe
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/Packer.pm
line 1157, <DATA> line 1.

Looking at the permissions on the
/tmp/par-dhoworth/cache-e5cc552fef704e896ec57e3ce6713c00722e2c57
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 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

Thanks and regards,
Dave

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About