FYI 

Here is what I've done this afternoon to install DBD::Sybase driver, and
hope that might be of help to those who had troubles in installing: 

Operating system running: (gcc version 2.96 20000731 (Red Hat Linux 7.1
2.96-98)) #1 

Some prerequisites: 

# you might need to download a binary distribution rpm from
<http://download.activestate.com/ActivePerl/Linux/5.6/ActivePerl-5.6.1.632-i
686-Linux.rpm> if you decided not to use the one coming with OS ( usually
sits in /usr/bin/ ) 

# Extract and install the rpm -- "rpm -iv
ActivePerl-5.6.1.632-i686-Linux.rpm" (as superuser) If you screw up things,
just wipe out the dir (/usr/local/ActivePerl-5.6) completely and use the cmd
"rpm -iv --force ActivePerl-5.6.1.632-i686-Linux.rpm" to reinstall 

# Ensure that you put "/usr/local/ActivePerl-5.6/bin" into your search path,
you can determine it by running "which perl" 

#Install Perl DBI module 
Run cmd <"perl -MCPAN -e "install Bundle::DBI" > (please don't type in the
arrow signs <> ), a config file "Config.pm" will be generated in
/usr/local/ActivePerl-5.6/lib/5.6.1/CPAN directory when you first time run
it, and then just answer the questions as best you can. 
Notes: If you are running Linux behind firewall or accessing internet via
proxies, you should put down proxy server address something like 
e.g. "<http://proxy??.yourdomain:8080>; and corresponding uid/passwd. 

# If everything goes smoothly, the whole bundle DBI will be installed under
/usr/local/ActivePerl-5.6/lib 


Now the following was what I did to install DBD::Sybase driver for DBI 
====================================================================== 

# Download Syabse ASE12.5 eval OpenClient library ( for Linux/Red Hat) from
sybase site. The two rpms I downloaded are: 
<http://download.sybase.com/eval/ase12.5/linux/RPMS/sybase-common-12.5-3.i38
6.rpm> 
<http://download.sybase.com/eval/ase12.5/linux/RPMS/sybase-openclient-12.5-3
..i386.rpm> 

# The first one got to be installed before proceeding to the next 
# Configure your global vironment variables carefully ensuring that all
'include' and 'lib'(ct-library)are included in the path when it starts to
compile(make) the program. 

# Here is what I put: 
export SYBASE=/opt/sybase-12.5 
export SYBASE_OCS=OCS-12_5 
export
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$SYBASE/$SYBASE_OCS/lib:$SYBASE/$SYBASE_O
CS/lib3p 
export
LD_RUN_PATH=${LD_RUN_PATH}:$SYBASE/$SYBASE_OCS/lib:$SYBASE/$SYBASE_OCS/lib3p


# Create a brand new interface file or copy from somewhere else and make
changes to it, file format should be something like this: 
# e.g. 
+++++++++++++++++++++++++++++++++++++++++++++ 
+ THEFORCE 
+ master tcp eth0 167.26.3.141 2050 
+ query tcp eth0 167.26.3.141 2050 
++++++++++++++++++++++++++++++++++++++++++++++ 
# THEFORCE -- Database SERVER_NAME 
# 167.26.3.141 -- IP address on which the database server is running 
# 2050 -- port number the database server is listening to 
# You should change the values wherever is applicable to suit your own
environment 


# Run < perl -MCAPN -e "install DBD::Sybase" >, as we do with DBI bundle,
What I strongly recommend is to download that perl module directly from CPAN
site and install it manually, that way it's easiler for you to pinpoint the
problems 
# 
# Change to DBD-Sybase-0.94 (latest ver.) dir and execute the following step
by step 
# 
# perl Makefile.PL 
# make ( ensure to have GNU compliant c compiler, usually gcc ) 
# make test ( you have to give out the real database info to test it through
) 
# make install 

I wish you will make it. 

Have a great weekend ! 

Amos Bai
CIBC,Global Technology,161 Bay St. 
BCE9, Toronto, Ontario, M5J 2S8 
Phone:416-956-3861 Fax:416-956-6808
Mailto: [EMAIL PROTECTED]
______________________________________
Click to add my contact info to your organizer:
http://my.infotriever.com/AmosBai

Reply via email to