Pdo_odbc config requires files in / usr / local /, but no files

I am trying to set up pdo_odbc on my online server. I am using putty and I have some basic knowledge in Linux commands.

In the beginning, on my online server, I didn't have PDO installed. I found a way to install it and it works. Then I need to install pdo_odbc but I am lost. Installing pdo_mysql was very easy and no problem. With pdo_mysql, I connected to some mysql database.

But for pdo_odbc I am stuck. A ended up in the pdo_odbc installation files folder, I ran phpize and then ran the command

./configure --with-pdo-odbc = unixODBC

And then he tells me that I want a list of 18 files to be included in the / usr / local / include / folder, but there are no files in that folder.

My question is how can I find (if I can find) the location where these files are located, or what do I need to do to get these files on my server.

This is what I get:

checking for odbc.h in /usr/local/include... no 
checking for odbcsdk.h in /usr/local/include... no 
checking for iodbc.h in /usr/local/include... no 
checking for sqlunix.h in /usr/local/include... no 
checking for sqltypes.h in /usr/local/include... no 
checking for sqlucode.h in /usr/local/include... no 
checking for sql.h in /usr/local/include... no 
checking for isql.h in /usr/local/include... no 
checking for sqlext.h in /usr/local/include... no 
checking for isqlext.h in /usr/local/include... no 
checking for udbcext.h in /usr/local/include... no 
checking for sqlcli1.h in /usr/local/include... no 
checking for LibraryManager.h in /usr/local/include... no 
checking for cli0core.h in /usr/local/include... no 
checking for cli0ext.h in /usr/local/include... no 
checking for cli0cli.h in /usr/local/include... no 
checking for cli0defs.h in /usr/local/include... no 
checking for cli0env.h in usr/local/include... no configure: error: Cannot find header file(s) for pdo_odbc

      

On my computer, I have WAMP installed and it comes with PDO and pdo_odbc and I made a PDO to work with an external database with the pdo_odbc driver, but on my online server, I cannot find a solution on the internet.

thank

+3


source to share


1 answer


You can try installing unixODBC

and unixODBC-devel

(if not already installed) and run configure

with parameters:

./configure --with-pdo-odbc=unixODBC,/usr/

      



For me this was the goal I was looking for

+6


source







All Articles