PHP odbc extension for XAMPP 1.7.3

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

PHP odbc extension for XAMPP 1.7.3

Postby bullethole » 01. December 2010 18:56

I have a project which requires that I be able to connect to different DBMS's through ODBC connector. When I try and run my php code under xampp, i get a fatal error: call to undefined function odbc_connect. I think that I need to add the odbc extension to my php.ini for xampp, but can't for the life of me find a pre-built shared object. Can anyone help here.
bullethole
 
Posts: 5
Joined: 01. December 2010 18:52

Re: PHP odbc extension for XAMPP 1.7.3

Postby bullethole » 01. December 2010 20:18

ok.. i made it a little farther. got the xampp devel package from sourceforge. when i do
pecl install pdo_odbc
it first trys to install pdo and it fails with


running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-PDO-1.0.3" install
Installing shared extensions: /var/tmp/pear-build-root/install-PDO-1.0.3/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/
cp: modules/*: No such file or directory
make: *** [install-modules] Error 1
ERROR: `make INSTALL_ROOT="/var/tmp/pear-build-root/install-PDO-1.0.3" install' failed

note, this is on a MAC OSX 10.6.5
bullethole
 
Posts: 5
Joined: 01. December 2010 18:52

Re: PHP odbc extension for XAMPP 1.7.3

Postby bullethole » 01. December 2010 20:34

it appears that no object files are being created on the compile..
bullethole
 
Posts: 5
Joined: 01. December 2010 18:52


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 45 guests