首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >设置配置选项'-- with -pdo-odbc=unixODBC‘时,PHP编译过程停止,并出现错误

设置配置选项'-- with -pdo-odbc=unixODBC‘时,PHP编译过程停止,并出现错误
EN

Stack Overflow用户
提问于 2016-01-19 21:47:31
回答 1查看 163关注 0票数 0

我尝试在Ubuntu 14.04上编译PHP 5.5.31源代码。启用PDO ODBC。Configure命令运行得很流畅,没有错误,但当我开始编译时,我得到了以下错误:

代码语言:javascript
复制
/bin/bash /vagrant/php-5.5.31/libtool --silent --preserve-dup-deps --mode=compile cc -I/vagrant/php-5.5.31/ext  -I/usr/local/include -DPDO_ODBC_TYPE=\"unixODBC\" -Iext/pdo_odbc/ -I/vagrant/php-5.5.31/ext/pdo_odbc/ -DPHP_ATOM_INC -I/vagrant/php-5.5.31/include -I/vagrant/php-5.5.31/main -I/vagrant/php-5.5.31 -I/vagrant/php-5.5.31/ext/date/lib -I/vagrant/php-5.5.31/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/ads/php/include -I/usr/include/freetype2 -I/usr/include/c-client -I/vagrant/php-5.5.31/ext/mbstring/oniguruma -I/vagrant/php-5.5.31/ext/mbstring/libmbfl -I/vagrant/php-5.5.31/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/vagrant/php-5.5.31/ext/sqlite3/libsqlite -I/vagrant/php-5.5.31/TSRM -I/vagrant/php-5.5.31/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c -o ext/pdo_odbc/odbc_driver.lo
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c: In function ‘odbc_handle_closer’:
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:131:16: error: ‘SQL_NULL_HANDLE’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:131:16: note: each undeclared identifier is reported only once for each function it appears in
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c: In function ‘odbc_handle_preparer’:
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:186:32: error: ‘SQL_ATTR_CURSOR_SCROLLABLE’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:186:67: error: ‘SQL_SCROLLABLE’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c: In function ‘odbc_handle_doer’:
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:238:12: error: ‘SQL_NO_DATA’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c: In function ‘odbc_handle_begin’:
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:278:87: error: ‘SQL_IS_INTEGER’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c: In function ‘odbc_handle_commit’:
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:304:86: error: ‘SQL_IS_INTEGER’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c: In function ‘odbc_handle_rollback’:
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:329:86: error: ‘SQL_IS_INTEGER’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c: In function ‘pdo_odbc_handle_factory’:
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:402:33: error: ‘SQL_NULL_HANDLE’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:403:29: error: ‘SQL_ATTR_ODBC_VERSION’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:403:59: error: ‘SQL_OV_ODBC3’ undeclared (first use in this function)
/vagrant/php-5.5.31/ext/pdo_odbc/odbc_driver.c:427:76: error: ‘SQL_IS_INTEGER’ undeclared (first use in this function)
make: *** [ext/pdo_odbc/odbc_driver.lo] Error 1

我做错了什么?

EN

回答 1

Stack Overflow用户

发布于 2016-01-19 22:44:42

看起来它没有找到unixODBC包含文件。请务必安装unixodbc-dev

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34878494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档