psqlodbca.so: Cannot open shared object file: File or directory not found

Asked

Viewed 297 times

0

I cannot migrate Postegresql database to mysql due to this error:

psqlodbca.so: Cannot open shared object file: File or directory not found

I am using Ubuntu 64 Postgresql 9x and Workbench 6.x, how should I proceed?

inserir a descrição da imagem aqui

Connection string: ODBC Connection string: DRIVER=Postgresql ANSI;SERVER=127.0.0.1;PORT=5432;DATABASE=financial;UID=postgres;Usedeclarefetch=1;

  • I don’t understand, you are trying to use Mysql Workbench to access Postgres?

  • perform a migration from the postgresql database to mysql

1 answer

1


Seems to me you don’t own the driver ODBC Postgres installed on your system.

You can do this using the package manager apt-get:

$ sudo apt-get install odbc-postgresql

Or manually download the package .deb containing the driver for Ubuntu 17.04 (Zesty Zapus):

$ wget http://archive.ubuntu.com/ubuntu/pool/universe/p/psqlodbc/odbc-postgresql_09.05.0400-2_amd64.deb

And then install the package .deb manually:

$ sudo dpkg -i odbc-postgresql_09.05.0400-2_amd64.deb
  • After executing the command I received this message: E: Sub-process /usr/bin/dpkg returned an error code (1)

  • and keeps repeating the same error: Could not connect to Source DBMS. [00000] [iODBC][Driver Manager]psqlodbca.so: Cannot open shared object file: File or directory not found (0) (Sqldriverconnect)

  • @alexjosesilva: Edited response. Any breakthrough?

  • Same mistake. I restarted the S.O.

  • @alexjosesilva: try manually, which is the error returned ?

  • how to insert odbc inside the Workbench ??

  • @alexjosesilva: Installing the Postgres ODBC driver on your Ubuntu, as I explained in the answer.

  • the error continues...

  • you executed the commands as root? tried in the two ways I explained? you are sure that the package was installed ?

  • yes...I used root made the two installations

  • ja habiliteir no php.ini o postgresql

Show 7 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.