- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Perl module - works for root but not normal users?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:18 PM
тАО01-18-2006 07:18 PM
Recently installed a ParseExcel perl module using the perl -MCPAN option. All worked fine and can run the following as root successfully:
#perl -MSpreadsheet::ParseExcel -le'print
$Spreadsheet::ParseExcel::VERSION'
0.2603
However, if I su to another user I get this (please note there were permissions issues on the module directories which I have fixed)
#su - dwadm
[myhost:dwadm]$ perl -MSpreadsheet::ParseExcel -le'print $Spreadsheet::ParseExcel>
Can't find 'boot_IO' symbol in /dw/perl5/lib/5.6.1/PA-RISC2.0//auto/IO/IO.sl
at /dw/perl5/lib/5.6.1/PA-RISC2.0//IO.pm line 9
Compilation failed in require at /dw/perl5/lib/5.6.1/PA-RISC2.0//IO/Handle.pm line 256.
BEGIN failed--compilation aborted at /dw/perl5/lib/5.6.1/PA-RISC2.0//IO/Handle.pm line 256.
Compilation failed in require at /dw/perl5/lib/5.6.1/PA-RISC2.0//IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at /dw/perl5/lib/5.6.1/PA-RISC2.0//IO/Seekable.pm line 101.
Compilation failed in require at /dw/perl5/lib/5.6.1/PA-RISC2.0//IO/File.pm line 112.
BEGIN failed--compilation aborted at /dw/perl5/lib/5.6.1/PA-RISC2.0//IO/File.pm line 112.
Compilation failed in require at /opt/perl/lib/site_perl/5.6.1/OLE/Storage_Lite.pm line 171.
BEGIN failed--compilation aborted at /opt/perl/lib/site_perl/5.6.1/OLE/Storage_Lite.pm line 171.
Compilation failed in require at /opt/perl/lib/site_perl/5.6.1/Spreadsheet/ParseExcel.pm line 176.
BEGIN failed--compilation aborted at /opt/perl/lib/site_perl/5.6.1/Spreadsheet/ParseExcel.pm line 176.
Compilation failed in require.
BEGIN failed--compilation aborted.
Any ideas?
Thanks,
Tony
Solved! Go to Solution.
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:37 PM
тАО01-18-2006 07:37 PM
Re: Perl module - works for root but not normal users?
by using the "-" with the su command you execute the environment setup scripts fot the user. Therefor you alter the environment to run the script in.
Can you please test:
su dwadm
then run your command (Should work, bar permissions problems)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:41 PM
тАО01-18-2006 07:41 PM
Re: Perl module - works for root but not normal users?
You can just use # su
http://lists.trustix.org/pipermail/tsl-discuss/2004-August/011621.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:53 PM
тАО01-18-2006 07:53 PM
Re: Perl module - works for root but not normal users?
That works in terms of proving its not permissions related but this user is being logged into and then running perl scripts so the problem remains. Does the error report give you any indication of what ENV variable is the problem. I've tried su - dwadm and then using the exact PATH variable that root uses and still no go.
Cheers,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:56 PM
тАО01-18-2006 07:56 PM
SolutionHis path to perl is in /dw (looking at the errors), what is yours?
Enjoy, Have FUN! H.Merijn
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 08:19 PM
тАО01-18-2006 08:19 PM
Re: Perl module - works for root but not normal users?
# perl -V
capital V. list is at the end.
a5:/u/usr/merijn 101 > perl -le'print for @INC'
/pro/lib/perl5/5.8.5/PA-RISC2.0
/pro/lib/perl5/5.8.5
/pro/lib/perl5/site_perl/5.8.5/PA-RISC2.0
/pro/lib/perl5/site_perl/5.8.5
/pro/lib/perl5/site_perl
.
a5:/u/usr/merijn 102 > /opt/perl/bin/perl -le'print for @INC'
/opt/perl/lib/5.8.7/PA-RISC2.0
/opt/perl/lib/5.8.7
/opt/perl/lib/site_perl/5.8.7/PA-RISC2.0
/opt/perl/lib/site_perl/5.8.7
/opt/perl/lib/site_perl
.
a5:/u/usr/merijn 103 > /opt/perl64/bin/perl -le'print for @INC'
/opt/perl64/lib/5.8.7/PA-RISC2.0-LP64
/opt/perl64/lib/5.8.7
/opt/perl64/lib/site_perl/5.8.7/PA-RISC2.0-LP64
/opt/perl64/lib/site_perl/5.8.7
/opt/perl64/lib/site_perl
.
a5:/u/usr/merijn 104 >
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 08:23 PM
тАО01-18-2006 08:23 PM
Re: Perl module - works for root but not normal users?
Thanks everyone for their help.
Rgds,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 08:36 PM
тАО01-18-2006 08:36 PM
Re: Perl module - works for root but not normal users?
I've never used Parse::Excel,
so I couldn't tell what its prerequisites are.
From your error messages I assume that your dwadm user is either referring to another Perl build or has a deviating environment as far as library paths are concerned (in case Parse::Excel introduced some XS code).
You first should check which Perl each of root and dwadm is using.
Simply issue "perl -V" when fully logged in as either.
This will also show you the @INC array's contents.
You could also check the autoloaded shared lib IO.sl for its dependencies and search paths (use chatr on it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 08:50 PM
тАО01-18-2006 08:50 PM
Re: Perl module - works for root but not normal users?
This isn't my fault.
When I clicked the submit button
the ITRC webserver wasn't anymore available,
and my POST request must have been pending for several minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 09:06 PM
тАО01-18-2006 09:06 PM