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: mpeppler at itf1 dot itf dot ch (Michael Peppler)
Subject: Re: problem after upgrade
Date: Mar 20 1996 7:21AM

> From:  nmc@ipac.caltech.edu 
> 
> Need help.  Could anyone out there tell me what went wrong?  
> After upgrade sybperl to 2.04, A who.pl in eg directory gave me a 
> following error.  
> 
> % sybperl-2.04/eg/who.pl 
> Couldn't find Att hash at /usr/local/gnu/lib/perl5/Sybase/Sybperl.pm line
113.  
> Can't locate object method "STORE" via package "Sybase::DBlib::_attribs" 
at 
> /usr/local/gnu/lib/perl5/Sybase/Sybperl.pm line 119.

There's a bug in the installation script:  In perl 5.002, locally added
extensions (such as sybperl) are installed in $PERL5LIB/site_perl/...
instead of $PERL5LIB/...  However, the @INC array looks for things in
$PERL5LIB first, as shown below:

kiruna (8:10am):18 > perl -V
Summary of my perl5 (5.0 patchlevel 2) configuration:
  Platform:
    osname=solaris, osver=2.5, archname=sun4-solaris
    uname='sunos kiruna 5.5 generic sun4m sparc sun4m '
    hint=recommended, useposix=true 
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2
    cppflags=''
    ccflags =''
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G'

@INC: /opt/gnu/lib/perl5/sun4-solaris/5.002 /opt/gnu/lib/perl5 
/opt/gnu/lib/perl5/site_perl/sun4-solaris /opt/gnu/lib/perl5/site_perl .
kiruna (8:15am):19 > 

What this means is that you have to go and delete any Sybase/ directories
in $PERL5LIB, or perl will pick up the OLD (version 2.03 or before)
versions of the .pm files...

I will *try* to put out a new version before next week that corrects this
and other errors, but I don't promise anything.

Michael