anyone Perl guru??
I just installed Perl and DBI on my Suse box. When I test my DBI (perl -e 'use DBI;') from command line using regular account I get this message:
Code:
cdruser1@cdr1:~> perl -e 'use DBI;' cdruser1@cdr1:/usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi> la total 309 drwxr-xr-x 8 root root 312 2007-11-28 12:29 . drwxr-xr-x 3 root root 88 2007-10-17 16:12 .. drwx------ 4 root root 96 2007-11-28 12:29 auto drwx------ 2 root root 72 2007-11-28 12:27 Bundle drwx------ 3 root root 104 2007-11-28 12:29 Date drwx------ 3 root root 256 2007-11-28 12:27 DBD drwx------ 8 root root 536 2007-11-28 12:27 DBI -r--r--r-- 1 root root 289975 2007-10-16 08:42 DBI.pm -r--r--r-- 1 root root 1533 2007-07-16 07:04 dbixs_rev.pl -r--r--r-- 1 root root 15161 2005-03-25 15:57 Roadmap.pod -r--r--r-- 1 root root 1048 2006-09-04 17:33 TASKS.pod drwx------ 2 root root 80 2007-11-28 12:27 Win32 Any ideas what would fix the problem? change file permissions, or primary group for cdruser1? any ideas are appreciated. Thanks |
I think you just answered your own question.
Quote:
So as root, use chown to change the owner to cdruser1. or chgrp to give a group that cdruser1 is in permission to read the file. Here is info on chown - http://en.wikipedia.org/wiki/Chown Here is info on chgrp - http://en.wikipedia.org/wiki/Chgrp Here is some info on another command to alter the read/write/execute permissions on a file - http://en.wikipedia.org/wiki/Chmod |
Quote:
Oh, another weird problem. Maybe someone will know that. I exported two variables in /etc/profile: Code:
export ORACLE_HOME=/home/cdruser1/cdr/orcl_root |
When you su, you don't take root environment variables (user environment variables are preserved). You need to use su - or sudo -s so user environment variables will be read from his .bash_profile or .bashrc. To exit from the user (in this case root) environment to your normal account just type exit or logout.
|
Code:
drwx------ 4 root root 96 2007-11-28 12:29 auto Code:
drwxr-xr-x Cheers, Tink |
Quote:
|
Quote:
any system tasks that require these they may fail. Bad move. I recommend you read a chapter or two on Linux file-systems, ownerships and permissions. Cheers, Tink |
how did you install?
it seems odd that the file permissions are so pants. the last thing you want is them to be root only. personally I would just uninstall and reinstall them using your distro package manager. |
Quote:
|
Quote:
|
Quote:
I don't mean memorised. Cheers, Tink |
Quote:
|
Quote:
Cheers, Tink |
Thank you for you all ;) It's good to find a place where people can help :) It's time to read some chapters now ... :study: :D
|
Actually, it probably isn't a permissions-problem: it is more likely to be the case that Perl cannot find the libraries that you intend to use.
The '@INC' array is where Perl looks. Such things as the PERL5LIB environment-variable, the use lib pragma, and the original list hard-coded into Perl when it was compiled, can all affect that list. |
All times are GMT -5. The time now is 04:12 PM. |