[unixODBC] [驱动程序管理器]无法打开lib'/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so':找不到文件

时间:2019-01-04 17:02:26

标签: linux postgresql ubuntu odbc unixodbc

我已经在Ubuntu 16.04上安装了Postgresql 9.4,并安装了postgresql ODBC和Unix ODBC驱动程序。当我使用isql测试ODBC连接时,它可以正常工作。另外,我能够使用pgadmin III从本地和远程位置连接到数据库。

pdAdmin III

isql

但是,当我尝试安装将使用ODBC创建连接的软件时,出现以下错误

  

连接失败!

     

错误代码= -1   来自数据库系统的状态为:STATE = 01000,CODE = 0,MSG = [unixODBC] [Driver Manager]无法打开lib'/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so':找不到文件   错误(-1)

但是该库实际上位于此位置。请指教。我附上了odbc.ini和odbcinst.ini供您参考。

file: /etc/odbc.ini

[PostgreSQL_DCTM]
Description=PostgreSQL DCTM
Driver=PostgreSQL_ANSI
Trace=No
TraceFile=/tmp/psqlodbc.log
Database=dctmdev
Servername=localhost
UserName=dctmdbadmin
Password=*******
Port=5432
Protocol=7.4-2
ReadOnly=No
RowVersioning=No
ShowSystemTables=No
ShowOidColumn=No
FakeOidIndex=No
UpdateableCursors=Yes
ConnSettings=
DEBUG=Yes

file: /etc/odbcinst.ini

[PostgreSQL_ANSI]
Description=PostgreSQL ODBC driver (ANSI version)
Driver=/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so
Setup=/usr/lib/x86_64-linux-gnu/odbc/libodbcpsqlS.so
Debug=0
CommLog=1
UsageCount=2

[PostgreSQL_Unicode]
Description=PostgreSQL ODBC driver (Unicode version)
Driver=/usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so
Setup=/usr/lib/x86_64-linux-gnu/odbc/libodbcpsqlS.so
Debug=0
CommLog=1
UsageCount=2

Content of folder '/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so'

非常感谢您的帮助!

Update - 08/01/2018

/documentum/product/7.3/install/Server_Configuration_Program.bin: POSIX shell script executable (binary data) 

/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=e76dd2bbea2b741a14671866f35468af7c62acbb, stripped 

The version of the psqlodbca.so is shown as 'stripped'. However, in the documentation of the software that I am trying to install it mentions to use 'not stripped' version. Could you please help me understand how could I procure the 'not stripped' version of the client library?

1 个答案:

答案 0 :(得分:0)

问题出在我用来与数据库通信的软件中的打包库中。从软件lib中删除liblber-2.4.so.2之后,该工具开始工作。

作为参考,如果你们中的任何人在Ubuntu 16.04和PostgreSQL 9.4上安装Opentext Documentum 7.3时都遇到相同的问题,则可能遇到相同的问题。