Perl's pod permissions problem handling _perl

Source: Internet
Author: User
Tags parent directory perl script

Initially intended to use Perldoc to look at the Apache2::request module, the results of the following error occurred at run time:

Copy Code code as follows:

Error in Tempfile () using/tmp/xxxxxxxxxx:parent directory (./) is
Not writable at/usr/lib/perl5/5.8.8/pod/perldoc.pm line 1483.

Change to/tmp/to execute a command, or an error. It seems that and PWD is OK, with the permissions of/TMP itself ~ ~ (because I often do experiments in/tmp, may not know when inadvertently changed the permissions)

chmod 777/tmp

Then execute the order, OK ~ ~

After looking at Apache2::request Doc, did not find header related settings, decided to go directly to see the Apache of those PM, but before the CPAN was installed, but never tube where they are installed ...

/usr/five or six directories are Perl, it is not easy to find it ~ (remember the previous test, Perl script every execution, have a good hundreds of milliseconds to find out where the module in ... )

Temporarily lazy to Baidu a bit, very good, see CPAN FAQ, just have this method:

Copy Code code as follows:

Perl-mfile::find=find-mfile::spec::functions-tlwe ' Find {wanted => sub {print Canonpath $_ if/.pmz/}, No_chdir = > 1}, @INC '

Then grep Apache, see the results, are installed in the/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/apache2 this path. Go in and grep ' $r->header ' * and immediately see that it's in requestrec.pm.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.