doushou8299 2013-08-20 07:19
浏览 157
已采纳

Microsoft ODBC驱动程序与安装php-ldap的libodbc.so.2冲突

I have the Microsoft ODBC driver installed under Centos working fine with UnixODBC 2.3.0 as instructed. I am trying to install php-ldap and it will upgrade my php which is fine, except it fails on a dependency which is:

libodbc.so.2()(64bit) is needed by php-odbc-5.4.18-1.el6.remi.x86_64

I remember having trouble with this file which I had to hotlink to libodbc.so.1 to get php-pdo working. Now for the upgrade in PHP it's looking for that file and I guess maybe I have the 32 bit installed instead of the 64 bit. I tried copying over the 2.3.1 version and using the standard 2.2.4 but nothing seems to work.

It lives in

/usr/lib64/libodbc.so.2

I feel like if I get the wrong driver in there, PHP-PDO/MS ODBC will stop working just so php-ldap can work. My current PHP version is 5.4.16 and I'd rather just get the php-ldap for that but all the links seem dead - I just want to install it via RPM. Right now I'm using the remi repo to get the latest PHP version and would like an upgrade path without the libodbc causing issues.

ldd on the file:

linux-vdso.so.1 =>  (0x00007fff25fce000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f5754ac9000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f57548ac000)
libc.so.6 => /lib64/libc.so.6 (0x00007f5754518000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5754f41000)
  • 写回答

2条回答 默认 最新

  • dongsheng4126335 2013-09-10 01:08
    关注

    What I did was manually install php_pdo by forcing the RPM's. It worked so I don't know what the issue really is... it's a difficult installation to perform with microsoft drivers && linux.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。
  • ¥20 CST怎么把天线放在座椅环境中并仿真
  • ¥15 任务A:大数据平台搭建(容器环境)怎么做呢?
  • ¥15 r语言神经网络自变量重要性分析
  • ¥15 基于双目测规则物体尺寸
  • ¥15 wegame打不开英雄联盟
  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型