doushou8299 2013-08-19 23:19
浏览 159
已采纳

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-09 17: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条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部