SAP Knowledge Base Article - Preview

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

Symptom

  • 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: $SYBASE/$SYBASE_OCS/perl/sybaseperl_32/lib/lib $SYBASE/$SYBASE_OCS/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

  • SAP Sybase Software Developer Kit (SDK) 15.7
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0
  • Open Client Client-Library
  • Adaptive Server Enterprise database driver for Perl
  • 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

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 for Me (Login required).

Search for additional results

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