Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Perl DBD::SQLAnywhere API

Installing DBD::SQLAnywhere on Windows Next Page

Installing DBD::SQLAnywhere on Unix


The following procedure documents how to install the DBD::SQLAnywhere interface on the supported Unix platforms, including Mac OS X.

To prepare your computer
  1. Install ActivePerl 5.6.0 build 616 or later.

  2. Install a C compiler.

  3. To install the DBI Perl module on Unix
    1. Download the DBI module source from [external link] www.cpan.org.

    2. Extract the contents of this file into a new directory.

    3. At a command prompt, change to the new directory and execute the following commands to build the DBI module.

      perl Makefile.PL
      make

      If for any reason you need to start over, you can use the command make clean to remove any partially built targets.

    4. Use the following command to test the DBI module.

      make test
    5. To complete the installation, execute the following command at the same prompt.

      make install
    6. Optionally, you can now delete the DBI source tree. It is no longer required.

    To install DBD::SQLAnywhere on Unix
    1. Make sure the environment is set up for SQL Anywhere.

      Depending on which shell you're using, enter the appropriate command to source the SQL Anywhere configuration script from the SQL Anywhere installation directory:

      In this shell ...

      ... use this command

      sh, ksh, or bash

      . /bin/sa_config.sh

      csh or tcsh

      source /bin/sa_config.csh

    2. At a shell prompt, change to the src/perl subdirectory of your SQL Anywhere installation.

    3. At a system command prompt, enter the following commands to build DBD::SQLAnywhere.

      perl Makefile.PL
      make

      If for any reason you need to start over, you can use the command make clean to remove any partially built targets.

    4. To test DBD::SQLAnywhere, copy the sample database file to your DBD::SQLAnywhere directory and make the tests.

      cp /opt/sqlanywhere10/demo.db .
      dbeng10 demo
      make test

      If the tests do not run, ensure that the bin subdirectory of the SQL Anywhere installation is in your path.

    5. To complete the installation, execute the following command at the same prompt.

      make install

    The DBD::SQLAnywhere interface is now ready to use.