54wz 发表于 2014-10-29 10:23:39

求助:安装sybase扩展问题

因环境需要php支持sybase连接,教程按照:https://www.vpser.net/manage/lnmp-php-install-ext.html 进行安装。

环境 :Ubuntu 14 LTS


过程:


#cd /lnmp1.1-full/php-5.2.17/ext/sybase_ct




#/usr/local/php/bin/phpize


返回结果:

PHP Api Version:         20041225Zend Module Api No:      20060613Zend Extension Api No:   220060519configure.in:3: warning: prefer named diversionsconfigure.in:3: warning: prefer named diversions





执行:
./configure --with-php-config=/usr/local/php/bin/php-config


返回结果:

checking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking for cc... ccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether cc accepts -g... yeschecking for cc option to accept ISO C89... none neededchecking how to run the C preprocessor... cc -Echecking for icc... nochecking for suncc... nochecking whether cc understands -c and -o together... yeschecking for system library directory... libchecking if compiler supports -R... nochecking if compiler supports -Wl,-rpath,... yeschecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for PHP prefix... /usr/local/phpchecking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/libchecking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613checking for PHP installed headers prefix... /usr/local/php/include/phpchecking if debug is enabled... nochecking if zts is enabled... nochecking for re2c... re2cchecking for re2c version... 0.13.5 (ok)checking for gawk... gawkchecking for Sybase-CT support... yes, sharedconfigure: error: ctpublic.h missing!





执行:
make && make install


返回结果:
make: *** 没有指明目标并且找不到 makefile。 停止。

54wz 发表于 2014-10-29 10:24:43

军哥,求助。:handshake

licess 发表于 2014-10-29 12:38:21

前面的返回结果:configure: error: ctpublic.h missing!
已经告诉你错误信息了,按缺少什么就再装什么的原则

updatedb 后 locate ctpublic.h 看看有没有,没有的话安装上freetds
而且这个好像得加--with-sybase-ct=shared,/usr 参数

54wz 发表于 2014-11-17 01:27:09

哎,找遍baidu都找不到方法。求教。

id886 发表于 2014-11-20 19:51:20

API 版本不对?

你用的php5.3 么?

54wz 发表于 2014-11-21 20:03:37

是的,5.3,如何解决呢?

id886 发表于 2014-11-21 20:26:03

第一步你应该进入 5.3的目录   cd /lnmp1.1-full/php-5.3.**/ext/sybase_ct    注意这个中间的版号应该就可以了
页: [1]
查看完整版本: 求助:安装sybase扩展问题