PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: /G=Charles/S=Phares/OU=CS/O=Sprint dot SAC/PRMD=SPRINT dot VINES/ at sprint dot com
Subject: RE: ct_sql.pl errors...
Date: Nov 30 1995 2:46PM

>Off the top of my head, any of these could be causing your problem:
>*Compare env var LD_LIBRARY_PATH between "root" and the regular user.  It
>  might be that "root" lists "/sybase/lib" (or whatever the path is to 
your
> Sybase libraries) and the regular userID doesn't.  Likewise, compare the
>  settings of env var PERL5LIB.

LD_LIBRARY_PATH is /usr/openwin/lib in both cases.

>
>* Make sure that both users are running the same Perl5 binary, using 
"which"
>  (or "whence", as we KSHers say).
>

perl is /usr/local/bin/perl, an ELF 32-bit MSB executable SPARC Version 1, 
dynamically linked, not stripped. :)

>* Make sure that the regular userID has access to 
/usr/local/lib/perl5/Sybase
> and its subordinate directories.

Yes, I can vi the file which is in the error message, CTlib.pm.  The line 
which errors is a call to bootstrap Sybase::CTlib.  Is this significant?

>
>* Make sure that you're not calling "./ct_sql.pl" from a directory to 
which
>  "root" has access but the regular userID doesn't.

I made a copy of the script, and added the username/password.

>
>* Have you ever built/run Perl and/or Sybperl on this machine before?  I 
mean,
>  is your Perl binary configured to look in /usr/local/lib/perl5/, by 
default?
>  You can check this out with:

This is my first time building Perl/sybperl  on this machine, and the first 
time I have ever built Perl5.

>
>    $ perl -e 'BEGIN { print STDOUT join("\n",@INC); exit(0); }'
>

returns:
	/usr/local/lib/perl5
	/usr/local/lib/perl5/sun4-solaris

>Hope this helps...

Thanks for the reply!  I am still having the problem, and it seems clearly 
to me that it is environmental.  Could something in the file permits be 
causing a problem? /usr/local is
drwxr-sr-x as are all of the directories to the target file.  I don't 
understand the significance of having the s permit for groups on a 
directory.  Should I change this?

>--
>Mark D. Conty                                 c22309@j1xsfs90.is.nwa.com
>Northwest Airlines                                  mdconty@idss.nwa.com
>IS/Applications                   <><                  mdc@winternet.com

	-Chuck