SAP Knowledge Base Article - Preview

2153912 - ASE Perl Driver: 'Can't locate DBI.pm in @INC' after running perl samples - SAP SDK

Symptom

  • Installed the SDK for SAP ASE 15.7/16.0 to use perl module for ASE (ASE Database Driver for Perl) and get errors when running the sample firstapp.pl (or custom applications).
  • You might see compilation errors like the following.
  • If Perl version is lower than 5.14:
    • perl firstapp.pl
      Can't locate DBI.pm in @INC
      (@INC contains: /SAP/OCS-15_0/perl/sybaseperl_32/lib/lib /SAP/OCS-15_0/perl/sybaseperl_32/lib/arch
      /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
      /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .)
      at firstapp.pl line 91.
      BEGIN failed--compilation aborted at firstapp.pl line 91.
  • If Perl version is greater than 5.14 (like 5.20.2 for example):
    • perl firstapp.pl
      Perl API version v5.14.0 of DBD::SybaseASE does not match v5.20.0 at
      /usr/local/perl-5.20.2/lib/5.20.2/x86_64-linux-thread-multi/DynaLoader.pm line 216.
      Compilation failed in require at firstapp.pl line 92.
      BEGIN failed--compilation aborted at firstapp.pl line 92.

 


Read more...

Environment

  • ASE Database Driver for Perl [DBD::SybaseASE]
  • ASE 15.7 and 16.0
  • SDK for SAP ASE 15.7/16.0
    • Client-Library 15.7/16.0
  • Supported on:
    • Solaris SPARC and Intel, 32bit, non-threaded
    • IBM P Series Linux 32bit, threaded
    • HP/UX Itanium, 32bit, threaded
    • IBM RS6000 AIX, 32bit, threaded
    • Linux on AMD/Intel 64bit, threaded
    • Windows 64-bit
  • Requires DBI 1.616 or higher
  • Perl 5.14.0, 5.14.1, 5.14.2 [not listed in documentation but does work]

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase SDK 15.7 ; Sybase Software Developer Kit 15.7

Keywords

ASE Module for Perl,pm,script language,SybaseASE.dll,SybaseASE.so,SybaseASE.sl , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.