配置pdo_odbc需要/ usr/local /中的文件,但没有文件

Str*_*tic 5 php pdo putty unixodbc

我正在尝试在我的在线服务器上设置pdo_odbc.我使用putty,我在Linux命令方面有一些基本知识.

一开始,在我的在线服务器上,我没有安装PDO.我找到了安装它的方法,它的工作原理.然后我必须安装pdo_odbc,但我迷路了.安装pdo_mysql非常简单,没有问题.使用pdo_mysql我连接了一些mysql数据库.

但对于pdo_odbc,我陷入困境.A已将自己定位到带有pdo_odbc安装文件的文件夹中,我已运行phpize,然后运行命令

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

然后它告诉我,我需要将18个文件的列表包含在文件夹/ usr/local/include /中,但该文件夹中没有文件.

我的问题是我如何找到(如果我能找到)这些文件所在的位置,或者我需要做什么才能在我的服务器上安装这些文件.

这就是我得到的:

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
Run Code Online (Sandbox Code Playgroud)

在我的计算机上,我安装了WAMP,它附带了PDO和pdo_odbc,我已经让PDO与pdo_odbc驱动程序一起使用外部数据库,但是在我的在线服务器上,我无法在线找到解决方案.

谢谢

小智 6

您可以尝试安装unixODBCunixODBC-devel(如果尚未安装)并configure使用选项运行:

./configure --with-pdo-odbc=unixODBC,/usr/
Run Code Online (Sandbox Code Playgroud)

对我而言,这是我一直在寻找的目标