linux - [unixODBC][驱动程序管理器]无法打开 lib '/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so' : file not found

标签 linux postgresql ubuntu odbc unixodbc

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

pdAdmin III

isql

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

Connect failed!

Error code = -1 Status from database system is: STATE=01000, CODE=0, MSG=[unixODBC][Driver Manager]Can't open lib '/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so' : file not found ERROR(-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?

最佳答案

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

供您引用,如果你们中的任何人在 Ubuntu 16.04 和 PostgreSQL 9.4 上安装 Opentext Documentum 7.3 时遇到同样的问题,您可能会遇到同样的问题。

关于linux - [unixODBC][驱动程序管理器]无法打开 lib '/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so' : file not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54043208/

相关文章:

linux - 如何查找非官方安装的软件包?

linux - 找出导致应用程序内存泄漏的原因

postgresql 去加密

postgresql - pgAdmin 对 PostgreSQL 的访问控制

sql - 在集群数据库上运行 PostGIS 命令

ubuntu - 如何恢复默认 ~/.bashrc ubuntu

python - 使用 .grid 时无法在 Tkinter 中调用单选按钮

linux - 基于 Web 的 IDE,带有用于 *nix 的 shell/文件管理集成

正则表达式删除 block 注释也删除 * 选择器

c - 初始化一个指向字符串的指针