gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 11:56:46 26 4
gpt4 key购买 nike

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

pdAdmin III

isql

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

Connect failed!

Error code = -1Status 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 foundERROR(-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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com