SID-00781: Solaris 10 Perl Modules for root not for webservd
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
5.8.4 |
| Category: |
CategoryInstallation |
Server OS: |
Solaris 10 |
Last update: |
15 years ago |
I have been following the instructions found at:
http://twiki.org/cgi-bin/view/Codev/SolarisInstallCookbook
and
http://twiki.org/cgi-bin/view/Codev/SolarisInstallCookbookPerlModules
I have download the most recent copy of twiki. 4.3.2. I have used the Blastwave instructions of the Solaris Install Cookbook.
I made what I thought was a minor change by taking option 1 instead of option 2 on the
PerlModules Cookbook: "During install you need to decide if you want to install CPAN modules into the standard system-wide location or to special location. " I chose to install to the standard system-wide location using CPAN and perlgcc.
If I am logged in as root and I run /usr/perl5/bin/instmodsh I see all the perl modules I have installed.
If I "su - webservd", and run /usr/perl5/bin/instmodsh I see a limited set of perl modules.
Of course, Twiki is annoyed at not having the Perl modules it expects. I have checked the CGI information in the twiki configuration and it describes all of the /usr/perl5/... sub-directories as being in the
@INC
path. However is does not seem to see the modules. Error: HTML::Parser not found....
Short of re-installing Solaris 10 and setting the
PERL5LIB to /apps/twiki-root/perlmodules, is there something I missed along the way?
I have checked the permissions on the /usr/perl5 sub-directories and they are all world readable.
My last thought is to "chown -R webservd:webservd /usr/perl5" .. stupid, I know, but I'm getting desparate.
I even tried running the web server as root for a single attempt, but it was too smart for that.. it won't do it without a re-compile.
I would like to have the perl modules enabled for all of my work on this web server.
Thank you, Peter
--
PeterRyan - 2010-03-15
Discussion and Answer
Hi,
I found an answer at:
http://www.perlmonks.org/?node_id=828794
The trick was to force the /usr/perl5 sub-directories to be world readable and executable. I always forget that a+rx rather than a+r. It always seems wrong to force an entire tree to be executable.
So -- if you use the Solaris 10 Cookbook and do the general install instead of the specific
PERL5LIB install, finish up by forcing the sub-directories using:
chmod -R a+rx /usr/perl5
Thanks, Peter
--
PeterRyan - 2010-03-16
Thanks for sharing. Please update the cookbook so that the community can benefit.
--
PeterThoeny - 2010-03-16
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.