Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
[unixODBC][Driver Manager]可以';t打开lib'/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so';:找不到文件_Linux_Postgresql_Ubuntu_Odbc_Unixodbc - Fatal编程技术网

[unixODBC][Driver Manager]可以';t打开lib'/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so';:找不到文件

[unixODBC][Driver Manager]可以';t打开lib'/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so';:找不到文件,linux,postgresql,ubuntu,odbc,unixodbc,Linux,Postgresql,Ubuntu,Odbc,Unixodbc,我已经在Ubuntu 16.04上安装了Postgresql 9.4,并安装了Postgresql ODBC和Unix ODBC驱动程序。当我用isql测试ODBC连接时,它工作得很好。此外,我能够使用pgadmin III从本地和远程位置连接到数据库 但是,当我试图安装使用ODBC创建连接的软件时,我遇到了以下错误 连接失败 错误代码=-1 数据库系统的状态为:STATE=01000,CODE=0,MSG=[unixODBC][Driver Manager]无法打开lib'/usr/lib

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

但是,当我试图安装使用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

非常感谢你的帮助

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时遇到同样的问题,您可能遇到了同样的问题。

您的新工具是32位还是64位?检查
文件
,如
文件isql
。还要仔细检查
文件/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so
(应该显示64位)。