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: Zion_Huang at focusppo dot com
Subject: Need Help on Installation
Date: May 5 1999 5:24PM

To All the Helpers:

Here is the capture of the steps that I tried to follow to install sybperl
2.10_01 on Linux 2.0.36.

[sybase@linuxppp sybperl-2.10_01]$ perl Makefile.PL
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::CTlib
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase

[sybase@linuxppp sybperl-2.10_01]$ make
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/BCP'
Manifying .././blib/man3/Sybase::BCP.3
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/BCP'
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/CTlib'
cc -c -I/opt/sybase/include -Dbool=char -DHAS_BOOL -I/usr/local/include -O2
    -
DVERSION=\"2.10_01\" -DXS_VERSION=\"2.10_01\" -fpic
-I/usr/lib/perl5/i386-linux/
5.00404/CORE -DCTLIBVS=100 -DSYBPLVER='"2.10_01"' -DDO_TIE CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
chmod 644 CTlib.bs
LD_RUN_PATH="/opt/sybase/lib:/lib" cc -o
.././blib/arch/auto/Sybase/CTlib/CTlib.
so  -L/opt/sybase/lib -shared -L/usr/local/lib CTlib.o    -L/opt/sybase/lib
 -lct
 -lcs -ltcl -lcomn -lintl -linsck -lm
chmod 755 .././blib/arch/auto/Sybase/CTlib/CTlib.so
cp CTlib.bs .././blib/arch/auto/Sybase/CTlib/CTlib.bs
chmod 644 .././blib/arch/auto/Sybase/CTlib/CTlib.bs
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/CTlib'
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/DBlib'
cc -c -I/opt/sybase/include -Dbool=char -DHAS_BOOL -I/usr/local/include -O2
    -
DVERSION=\"2.10_01\" -DXS_VERSION=\"2.10_01\" -fpic
-I/usr/lib/perl5/i386-linux/
5.00404/CORE -DDBLIBVS=1000 -DSYBPLVER='"2.10_01"' -DDO_TIE DBlib.c
Running Mkbootstrap for Sybase::DBlib ()
chmod 644 DBlib.bs
LD_RUN_PATH="/opt/sybase/lib:/lib" cc -o
.././blib/arch/auto/Sybase/DBlib/DBlib.
so  -L/opt/sybase/lib -shared -L/usr/local/lib DBlib.o    -L/opt/sybase/lib
 -lsy
bdb -linsck -lm
chmod 755 .././blib/arch/auto/Sybase/DBlib/DBlib.so
cp DBlib.bs .././blib/arch/auto/Sybase/DBlib/DBlib.bs
chmod 644 .././blib/arch/auto/Sybase/DBlib/DBlib.bs
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/DBlib'
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/Sybperl'
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/Sybperl'

[root@linuxppp sybperl-2.10_01]# make test
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/BCP'
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/BCP'
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/CTlib'
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/CTlib'
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/DBlib'
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/DBlib'
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/Sybperl'
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/Sybperl'
make[1]: Entering directory `/opt/sybase/sybperl-2.10_01/BCP'
PERL_DL_NONLAZY=1 /usr/bin/perl -I.././blib/arch -I.././blib/lib
-I/usr/lib/perl
5/i386-linux/5.00404 -I/usr/lib/perl5 -e 'use Test::Harness qw(&runtests
$verbos
e); $verbose=0; runtests @ARGV;' t/*.t
t/bcp...............Can't call method "sql" without a package or object
referenc
e at t/bcp.t line 47.
dubious
        Test returned status 22 (wstat 5632, 0x1600)
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/Test/Har
ness.pm line 252.
make[1]: *** [test_dynamic] Error 2
make[1]: Leaving directory `/opt/sybase/sybperl-2.10_01/BCP'
make: *** [test] Error 2
[root@linuxppp sybperl-2.10_01]#

Make test failed to work.  Any suggestion of what went wrong?

I can use either root or sybase account to isql to the server without
problem.  The sybase is 11.0.2 and the path is /opt/sybase.

Here is the CONFIG file:
#
# 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=1000


# 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

# Where is the Sybase directory on your system (include files &
# libraries are expected to be found at SYBASE/include & SYBASE/lib
SYBASE=/opt/sybase

# Additional libraries.
# Some systems require -lnsl or -lBSD.
# Solaris 2.x needs -ltli
# 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
EXTRA_LIBS=-linsck

# Library directory. Under Windows/NT, if you are using the Borland
# compilers, then uncomment the line below:
# BORLAND_LIBS=blib

# Additional #defines.
# With Perl 5.001m, you will need -DUNDEF_BUG.
# With Perl 5.002, none are normally needed, but you may wish to
# use -DDO_TIE to get the benefit of stricter checking on the
# Sybase::DBlib and Sybase::CTlib attributes.
# Use -DNCR_BUG if you are on NCR 3.0 and OpenClient 10.0.x
EXTRA_DEFS=-DDO_TIE

I also edited the PWD file with right pasword for the sa and the
servername.

Thanks in advance,


Zion