Compiling PDO_OCI in CentOS / RHEL
Background Similar to the previous post, my yii-framework based PHP application need to access to oracle database tables. Yii requires PDO_OCI PHP extension in order to access oracle database. I will describe steps that I took to compile PDO_OCI extension from php package source SRPMS. Preparation In CentOS, we need to create /etc/yum.repos.d/source.repo because CentOS doesn't come with one : [base-SRPMS-6.5] name=CentOS-$releasever – Base SRPMS baseurl=http://vault.centos.org/6.5/os/Source gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 priority=1 enabled=1 [updates-SRPMS-6.5] name=CentOS-$releasever – Base SRPMS baseurl=http://vault.centos.org/6.5/updates/Source gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 priority=1 enabled=1 We also need yum-utils and rpm-build packages yum install yum-utils rpm-build Then, download the source package file with yumdownloader : [root@essdev ~]# yumdownloa...