LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-09-2010, 12:15 AM   #1
prgupta
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas?


vert1:/home/dbadmin $ perl tempread.pl
install_driver(ODBC) failed: Can't load '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/ODBC/ODBC.so' for module DBD::ODBC: libodbc.so.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.

And as root on same machine everything works fine:
root@vert1:/usr/local# perl /home/dbadmin/tempread.pl
1
2

Any ideas?
 
Old 07-09-2010, 01:20 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Sounds like your Perl @INC (uincluded modules dirs) list is different for each user. Try
Code:
#!/usr/bin/perl
# lookinc - where to look for modules

$"="\n";

print "@INC\n";
as each user. Adjust she-bang line in script as reqd.
Also check 'which perl' if you are calling it as your qn suggests.
 
Old 07-13-2010, 12:20 AM   #3
prgupta
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Closed - issue was that my LD_LIBRARY_PATH env var was not set correctly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XMMS works for root but not for user bezdomny Linux - Software 1 02-12-2009 11:34 PM
XMMS Works for root, not for user JazzMastaJim Suse/Novell 6 11-20-2004 09:59 PM
X won't start as user, works as root... gsk Linux - General 19 10-06-2004 01:25 AM
X only works with root user joe83 Slackware 14 09-06-2004 08:17 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration