Make sure the environment is set up for SQL Anywhere.
For instructions on setting up the environment for SQL Anywhere, follow the instructions in step 4 of Compiling PHP as an Apache module.
Configure PHP as a CGI executable and with the SQL Anywhere PHP extension.
Execute the following command from the directory where your PHP files were extracted:
$ cd PHP-source-directory $ ./configure --with-sqlanywhere |
For example:
$ cd ~/php-5.2.11 $ ./configure --with-sqlanywhere |
The configuration script will try to determine the version and location of your SQL Anywhere installation. If you examine the output of this command, you should see lines similar to the following:
checking for SQL Anywhere support... yes checking SQL Anywhere install dir... /opt/sqlanywhere12 checking SQL Anywhere version... 12 |
Compile the executable:
$ make |
Install the components.
$ make install |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |