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: "Jesse Soklin" <jesse dot soklin at mci dot com>
Subject: RE: One more time
Date: Mar 15 1999 4:54PM

I got sybperl-2.10 to work with the Sybase 11.9.2 server and Dec Unix 4.0d.
The problem that you are having looks like a problem I had before, I had to
'export SYBASE=/opt/sybase' and 'export LD_LIBRARY_PATH=$SYBASE/lib' before
I ran the make test.  Here are the instructions that I used for my build.

Install Perl version 5.005.02 on the system.
Install the application following all of the default options except the
additional libraries.
Setup:
1) rm -f config.sh
2) sh Configure
a) choose all the defaults till you get to the 'additional libraries', then
choose only -lm (do not select -ldbm or -ldb )
3) make depend
4) make
5) make test
6) make install


Installing sybperl 2.10 with Sybase 11.9.2
1) copy the sqlda.h from the Sybase open client to the server
a) cp /opt/sybase/OC/include/sqlda.h /opt/sybase/include/sqlda.h


2) environmental setup:
a) export SYBASE=/opt/sybase
a) export LD_LIBRARY_PATH=/opt/sybase/lib

3) vi the CONFIG file in the sybperl install kit only change
a) EXTRA_LIBS= -ltli -lsdna -ldnet_stub

5) perl Makefile.PL
6) make   note: on the make ignore the warning for RETVAL =
dbmoretext(dbproc, size, buf).
7) make test
8) make install

perl files:  to make perl files run with the new sybperl the files will need
to be modified.

orig:
#!/bin/perl
use Sybase::Sybperl;

new:
#!/bin/perl
BEGIN {
	$ENV{LD_LIBRARY_PATH} = '/opt/sybase/lib';
}
use Sybase::Sybperl;

Lynn Bogovich writes:
 > >>
 > >> perl Makefile.PL
 > >> make
 > >> make test where is stopped again.
 > >>

Hope this helps
Jesse

Folks - could someone here help Lynn out?

She's trying to build sybperl on Dec Unix 4.0E, and failing
miserably. I've tried to give her some directions, but that hasn't
really helped.

Would someone on the list possibly have a binary available, or clear
instructions on how to build this thing?

Thanks!

Michael

PS - Dec Unix's ld.so is really annoying, in that it doesn't *tell* us
*why* it couldn't load a shared library... grrrrrr.....


 > >
 > >Try just building the Sybase::CTlib module (set DBLIBVS=0).
 > >
 > >If that works, then you'll at least have *something*.
 > >Then set DBLIBVS=1000, and try adding -lsdna and/or -ldnet_stub to the
 > >EXTRA_LIBS line and see if that might fix things.
 > >
 > >DEC Unix really isn't very helpful here as it doesn't tell us *what*
 > >is causing the problem...
 > >
 > ================================================================
 > CONFIG change
 > ==============
 > # Configuration file for Sybperl
 > #
 > # DBlibrary version. Set to 1000 (or higher) if you have System 10
 > # Set to 0 if you do not want to build DBlib or if DBlib is not
available.
 > DBLIBVS=0
 >
 >
 > # CTlib version. Set to 0 if Client Library is not available on your
 > # system, or if you don't want to build the CTlib module. The Client
 > # Library started shipping with System 10.
 > # Set to 100 if you have OpenClient 10.x or later.
 > CTLIBVS=100
 >
 >
 >
 > # make realclean
 > # perl Makefile.PL
 > # make
 > # make test
 > PERL_DL_NONLAZY=1
/usr/bin/perl -I.././blib/arch -I.././blib/lib -I/usr/local/lib/perl5/alpha-
dec_osf/5.00404 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
 > t/ctlib.............Can't load
'.././blib/arch/auto/Sybase/CTlib/CTlib.so' for module Sybase::CTlib:
dlopen: cannot load .././blib/arch/auto/Sybase/CTlib/CTlib.so at
/usr/local/lib/perl5/alpha-dec_osf/5.00404/DynaLoader.pm line 166.
 >
 >  at t/ctlib.t line 8
 > BEGIN failed--compilation aborted at t/ctlib.t line 8.
 > dubious
 >         Test returned status 2 (wstat 512, 0x200)
 > Number found where operator expected at (eval 37) line 1, near ")0"
 >         (Missing operator before 0?)
 > Operator or semicolon missing before &e at (eval 147) line 1.
 > Ambiguous use of & resolved as operator & at (eval 147) line 1.
 > Operator or semicolon missing before &f at (eval 147) line 1.
 > Ambiguous use of & resolved as operator & at (eval 147) line 1.
 > Operator or semicolon missing before &e at (eval 149) line 1.
 > Ambiguous use of & resolved as operator & at (eval 149) line 1.
 > Operator or semicolon missing before &UL at (eval 220) line 1.
 > Ambiguous use of & resolved as operator & at (eval 220) line 1.
 > Number found where operator expected at (eval 372) line 1, near ")0"
 >         (Missing operator before 0?)
 > Number found where operator expected at (eval 373) line 1, near ")1"
 >         (Missing operator before 1?)
 > Number found where operator expected at (eval 374) line 1, near ")2"
 >         (Missing operator before 2?)
 > Number found where operator expected at (eval 375) line 1, near ")3"
 >         (Missing operator before 3?)
 > DIED. FAILED tests 1-30
 >         Failed 30/30 tests, 0.00% okay
 > t/cursor............Can't load
'.././blib/arch/auto/Sybase/CTlib/CTlib.so' for module Sybase::CTlib:
dlopen: cannot load .././blib/arch/auto/Sybase/CTlib/CTlib.so at
/usr/local/lib/perl5/alpha-dec_osf/5.00404/DynaLoader.pm line 166.
 >
 >  at t/cursor.t line 12
 > BEGIN failed--compilation aborted at t/cursor.t line 12.
 > dubious
 >         Test returned status 2 (wstat 512, 0x200)
 > DIED. FAILED tests 1-22
 >         Failed 22/22 tests, 0.00% okay
 > Failed Test  Status Wstat Total Fail  Failed  List of failed

> --------------------------------------------------------------------------
-----
 > t/ctlib.t         2   512    30   30 100.00%  1-30
 > t/cursor.t        2   512    22   22 100.00%  1-22
 > Failed 2/2 test scripts, 0.00% okay. 52/52 subtests failed, 0.00% okay.
 > #
 >
 >
 > Next Test
 > ==========
 > # Configuration file for Sybperl
 > #
 > # DBlibrary version. Set to 1000 (or higher) if you have System 10
 > # Set to 0 if you do not want to build DBlib or if DBlib is not
available.
 > DBLIBVS=461
 >
 >
 > # CTlib version. Set to 0 if Client Library is not available on your
 > # system, or if you don't want to build the CTlib module. The Client
 > # Library started shipping with System 10.
 > # Set to 100 if you have OpenClient 10.x or later.
 > CTLIBVS=0
 >
 >
 > # DEC OSF/1 needs -ldnet_stub and may need -lsdna
 > #   (Note: Under Dec 3.2 you need to *remove* -lsdna from the
DBlib/Makefile
 > #    for things to work. *sigh*)
 > # SunOS 4.x needs -linsck
 > # HP-UX 10.x needs -linsck
 > # AIX 3.2.5 needs -linsck
 > # Linux needs -linsck
 > # See the Sybase OpenClient Supplement for your OS/Hardware
 > # combination.
 > EXTRA_LIBS=-ltli -lsdna -ldnet_stub
 >
 >
 > # make realclean
 > # perl Makefile.PL
 > # make
 > # make test
 > PERL_DL_NONLAZY=1
/usr/bin/perl -I.././blib/arch -I.././blib/lib -I/usr/local/lib/perl5/alpha-
dec_osf/5.00404 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
 > t/bcp...............Can't load
'.././blib/arch/auto/Sybase/DBlib/DBlib.so' for module Sybase::DBlib:
dlopen: cannot load .././blib/arch/auto/Sybase/DBlib/DBlib.so at
/usr/local/lib/perl5/alpha-dec_osf/5.00404/DynaLoader.pm line 166.
 >
 >  at .././blib/lib/Sybase/BCP.pm line 277
 > BEGIN failed--compilation aborted at .././blib/lib/Sybase/BCP.pm line
277.
 > BEGIN failed--compilation aborted at t/bcp.t line 12.
 > dubious
 >         Test returned status 2 (wstat 512, 0x200)
 > Number found where operator expected at (eval 37) line 1, near ")0"
 >         (Missing operator before 0?)
 > Operator or semicolon missing before &e at (eval 147) line 1.
 > Ambiguous use of & resolved as operator & at (eval 147) line 1.
 > Operator or semicolon missing before &f at (eval 147) line 1.
 > Ambiguous use of & resolved as operator & at (eval 147) line 1.
 > Operator or semicolon missing before &e at (eval 149) line 1.
 > Ambiguous use of & resolved as operator & at (eval 149) line 1.
 > Operator or semicolon missing before &UL at (eval 220) line 1.
 > Ambiguous use of & resolved as operator & at (eval 220) line 1.
 > Number found where operator expected at (eval 372) line 1, near ")0"
 >         (Missing operator before 0?)
 > Number found where operator expected at (eval 373) line 1, near ")1"
 >         (Missing operator before 1?)
 > Number found where operator expected at (eval 374) line 1, near ")2"
 >         (Missing operator before 2?)
 > Number found where operator expected at (eval 375) line 1, near ")3"
 >         (Missing operator before 3?)
 > DIED. FAILED tests 1-9
 >         Failed 9/9 tests, 0.00% okay
 > Failed Test  Status Wstat Total Fail  Failed  List of failed

> --------------------------------------------------------------------------
-----
 > t/bcp.t           2   512     9    9 100.00%  1-9
 > Failed 1/1 test scripts, 0.00% okay. 9/9 subtests failed, 0.00% okay.
 > *** Exit 2
 > Stop.
 > *** Exit 1
 > Stop.
 > #
 >
 > My current environment
 > =======================
 > # env
 > HOME=/
 > LOGNAME=root
 > PATH=/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local/bin
 > SHELL=/bin/sh
 > TERM=xterm
 > USER=root
 > #
 >
 >
 > At least the test gave us different complaints this time.
 > Is it possible to get a set of compiled binaries from somewhere, or do
 > I have to have it compiled on this machine?  What should we try next?
 >
 > Thanks,
 > Lynn
 >                              --^--
 >                             /(o^o)\
 > =========================oOO==(_)==OOo============================
 > Lynn Bogovich
 > Sr. UNIX System Administrator		email:  lynn@stsci.edu
 > Space Telescope Science Institute       phone:  (410) 338-4523
 > 3700 San Martin Drive			fax:	(410) 338-5075
 > Baltimore, MD 21218-2410		URL: http://www.stsci.edu
 > ==================================================================
 > Unix is simple, but it takes a genius to understand its simplicity. -DMR
 > You'll catch me sleeping soundly the night of 12/31/99 - Scott Ponzani
 >
 >

--
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com