VPS侦探论坛

 找回密码
 注册
查看: 5610|回复: 6

求助:安装sybase扩展问题

[复制链接]
发表于 2014-10-29 10:23:39 | 显示全部楼层 |阅读模式

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

环境 :Ubuntu 14 LTS


过程:


  1. #cd /lnmp1.1-full/php-5.2.17/ext/sybase_ct
复制代码





  1. #/usr/local/php/bin/phpize
复制代码



返回结果:

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






执行:
  1. ./configure --with-php-config=/usr/local/php/bin/php-config
复制代码



返回结果:

  1. 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!
复制代码






执行:
  1. make && make install
复制代码



返回结果:
  1. make: *** 没有指明目标并且找不到 makefile。 停止。
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2014-10-29 10:24:43 | 显示全部楼层


军哥,求助。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-10-29 12:38:21 | 显示全部楼层

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

updatedb 后 locate ctpublic.h 看看有没有,没有的话安装上freetds
而且这个好像得加--with-sybase-ct=shared,/usr 参数
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2014-11-17 01:27:09 | 显示全部楼层



哎,找遍baidu都找不到方法。求教。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-11-20 19:51:20 | 显示全部楼层

API 版本不对?

你用的php5.3 么?

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2014-11-21 20:03:37 | 显示全部楼层

是的,5.3,如何解决呢?
发表于 2014-11-21 20:26:03 | 显示全部楼层

第一步你应该进入 5.3的目录   cd /lnmp1.1-full/php-5.3.**/ext/sybase_ct    注意这个中间的版号应该就可以了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 05:44 , Processed in 0.026997 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表