Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: perl script to run as non-root

by karlgoethebier (Abbot)
on Oct 16, 2014 at 16:59 UTC ( [id://1104081]=note: print w/replies, xml ) Need Help??


in reply to perl script to run as non-root

Hint from Dr. Wisenheimer:

Writing everything on one line results in negative XPs!

Compare:

Thanks for your replies, The only difference I find is when I run this command as "root' I get the below output:

perl -e 'print join("\n",@INC)' /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5

While I run as non-root I get the below output:

perl -e 'print join("\n",@INC)' /opt/nms/perl/lib /opt/nms/perl/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /opt/nms/perl/lib/perl5/site_perl/5.8.8 /opt/nms/perl/lib/perl5/site_perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5

Actually there is no perl folder inside the /opt/nms/ but not sure how it is showing that. Will that be an issue? But apart from that I checked the permission of Sybase.pm and the path where the Sybase.pm is all seems to be fine. Thanks.

See also Writeup Formatting Tips.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^2: perl script to run as non-root
by dbashyam (Novice) on Oct 19, 2014 at 04:07 UTC
    Thanks for your replies, i think i found what is my problem but I am bit new to this.

    I have the environment variable PERL5LIB to my preferred location which is /opt/nms/perl/lib/

    Where can i get the perl 5.10.1 x86_64-linux-thread-multi, can you please help here

    I need another info if i get the perl 5.10.1 x86_64-linux-thread-multi install as non-root, and then install DBI and DBD as non-root how to ensure that these libraries will sit only inside the PERL5LIB folder only.

    Thanks bunch.

      Hi Friends, I got it fixed. Installed the DBI, DBD:sybase modules and freetds modules and all is fine now. Thank you for all the support and the guidance/ideas that you gave me, it was really helpful

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1104081]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found