Skip Top Menu Navigation
Skip Top Menu Navigation

The FREE Enterprise Open Source Database

  Software Tools Interfaces Development Documentation
 

 
You Are Here:  SAP DB > 7.3 > Development > Development (Linux/UNIX)

SAP DB is now SAP MaxDB! For more information, visit the SAP MaxDB pages in the SAP Developer Network.

SAP DB Development in Linux/UNIX

The software creation process consists of the following steps:
  1. Installing the SAP DB Development Environment
  2. Installing the SAP DB Sources
  3. Building the software


Installing the SAP DB Development Environment in Linux/UNIX


Prerequisites for Working with the Development Environment

The following software is required to build SAP DB:
  • Perl 5.005
  • Python 1.5.2 or greater
  • C/C++ Compiler gcc
  • bison + flex

Installing the Development Environment Package

  1. Download the tgz package.
    Check whether your browser changes the package extension from tgz to tar during the download. If so, rename the package to tgz before installing it.
  2. Extract the archive to its final destination.
    The directory DevTool is created.
  3. Run the Perl script DevTools/installtools.pl.
    This creates a file DevTool/iprofile.tmp.
    Note:
    The script expects to find the Perl and Python executables in your $PATH.


Installing the SAP DB Sources in Linux/UNIX


Prerequisites for Creating the Sources

  • SAP DB Development Tools
  • Space requirements
    • 77 MB for the sources
    • 210 MB after the compilation (without debug information)

Installing the Source Package

  1. Download the source archive (12.9 MB).
    Check whether your browser changes the package extension from tgz to tar during the download. If so, rename the package to tgz before installing it.
  2. Extract the archive to its final destination.
    This creates the directory V73_00_48
  3. Run the Perl script V73_00_48/installsources.pl.
    This creates the file V73_00_48/initDev_SAPDB. Now there are three directories:
    • DevTool (containing the development tools)
    • V73_00_48/SAPDB_ORG (containing the sources)
    • V73_00_48/SAPDB_DEV (here object files and executables are generated)

Setting up the Environment

  1. Open a shell window
  2. Source the file generated in the last step:
    . <source_root>/V73_00_48/initDev_SAPDB
    This sets all the environment variables required and changes the directory to
    <source_root>/V73_00_48/SAPDB_DEV.

Example for an Installation Test

(Based on Previous Version 7.3.00.25)

Key in the following line:

$ imf.pl -n dbmcli

You get the following output:

vmake 9.8.5 28-11-2000
VMAKE_PATH=D:\OpenSourceDev\V73_00_25\SAPDB_DEV,D:\...
07-02-01 13:59:51 start of collection phase
07-02-01 13:59:52 end of collection phase
error opening '/OpenSourceDev/V73_00_25/SAPDB_DEV/...
gsp100.h
dbmcli.rc fast
geo00.h
gsp00_0.h
...
vos76a fast
sqlusr.lib fast
dbmcli.lnk fast

statistics:

macros: 1
programs: 1
dynlinklibs: 1
relocs: 1
libraries: 5
modules: 156
includes: 162
files: 13
commands: 0
extras: 0

Creating the Targets

To create the targets key in

imf.pl <target>

The source distribution allows you to create the following targets and subtargets:
  • all.mac
  • allknl.mac (Kernel and Tools)
    • kernel.shm (Kernel Executable)
    • allrte.mac (Runtime Environment)
    • dbm.mac (Database Manager)
    • ls.mac (Replication Manager)
Web Tools
  • webagent.mac (Web DBM, Web SQL Studio)
  • wahttp.mac (Internal Web Server)

Programming Interfaces
  • odbc.mac (ODBC API)
  • cpc.mac (C/C++ Precompiler)
  • jdbc.mac (JDBC)
  • scriptall.mac (Scripting Interfaces)
    • sapdbpy.mac (SAP DB SQL-Interface for Python)
    • sapdbperl.mac (SAP DB SQL-Interface for Perl, includes DBD::SAP_DB)
    • dbmpy.mac (Interface to the Database Manager for Python)
    • dbmperl.mac (Interface to the Database Manager for Perl)
    • repmanpy.mac (Interface to the Replication Manager for Python)
    • repmanperl.mac (Interface to the Replication Manager for Perl)
Note:

Before editing source files it is highly recommended that you copy them from the directory SAPDB_ORG to the directory SAPDB_DEV. This maintains the original source code and gives you the chance to compare it to your changes.
For more information see the documentation "Development Environment: SAP DB" (PDF, 637 KB) and "Creating the Database Manager CLI" (PDF, 72 KB)


Search
SAP DB Information
See also ...


Questions or comments about the Web site? Contact the webmaster.