In this tutorial you will learn how to install CUBRID PDO driver on Mac OS X through PECL repository using CUBRID CCI driver.
CUBRID PDO driver has a dynamic dependency on CCI driver. You can download either 64 or 32 bit version of CUBRID CCI diver depending on your Mac OS architecture. Once you download it, you need to copy the contents of the /lib directory to /usr/lib and the contents of /include directory to /usr/include. The following example illustrates how to extract a 64-bit version and copy its contents.
tar zxvf CUBRID-CCI-188.8.131.5209-x64.macosx.tar.gz sudo cp CUBRID-CCI-184.108.40.20609-x64/lib/* /usr/lib sudo cp CUBRID-CCI-220.127.116.1109-x64/include/* /usr/include
Type the following command to install the latest version of CUBRID PDO Driver from PECL repository.
sudo pecl install pdo_cubrid
If you need older version of the driver, you can indicate its exact version like:
sudo pecl install pdo_cubrid-8.4.3.0001
During the installation you will be prompted to enter "CUBRID base install dir [autodetect]:". Enter that same directory where we have extracted CUBRID CCI driver files.
CUBRID base install dir [autodetect] : /usr
Now find the php.ini file and add the following line which instructs your Web server or FastCGI Process Manager to load CUBRID PDO extension with the next restart.
Done! Now restart your Web server to load CUBRID extension.
Create a simple test.php file with the following contents:
<?php phpinfo(); ?>
In your browser visit http://localhost/test.php. Search for "pdo_cubrid". You should see entries like Version, CCI Version, and CUBRID Version.