tora-tool / tora

TOra is an open source SQL IDE for Oracle, MySQL and PostgreSQL dbs
http://torasql.com/
GNU General Public License v2.0
290 stars 58 forks source link

TOra crashes on MacOS 10.14 (version 3.0.0 beta) #137

Open cbertelli opened 5 years ago

cbertelli commented 5 years ago

This is the output:

ERROR:Overwrite description of nonmodified (toQSqlConnection:Version)
---- main.cpp:213   int main(int, char **)----
Failed loading plugin parsing
---- main.cpp:225   int main(int, char **)----
Looking for client: Oracle (Instant Client)
 searching: /Applications/TOra.app/Contents
 searching: /opt/instantclient_11_2
 searching: /Applications/TOra.app/Contents/PlugIns
---- utils.cpp:872  static bool Utils::toLibrary::isValidLibrary(QFileInfo)----
Validating:/Applications/TOra.app/Contents/PlugIns/libclntsh.dylib
 dlopen_preflight:/Applications/TOra.app/Contents/PlugIns/libclntsh.dylib OK
 adding: /Applications/TOra.app/Contents/PlugIns/libclntsh.dylib:
---- utils.cpp:872  static bool Utils::toLibrary::isValidLibrary(QFileInfo)----
Validating:/Applications/TOra.app/Contents/PlugIns/libclntsh.dylib.11.1
 dlopen_preflight:/Applications/TOra.app/Contents/PlugIns/libclntsh.dylib.11.1 OK
 adding: /Applications/TOra.app/Contents/PlugIns/libclntsh.dylib.11.1:
---- main.cpp:225   int main(int, char **)----
Looking for client: Oracle (TNS)
---- main.cpp:225   int main(int, char **)----
Looking for client: QSQL
 QT supported driver:'QSQLITE'
 QT supported driver:'QMYSQL'
 QT supported driver:'QMYSQL3'
 QT supported driver:'QODBC'
 QT supported driver:'QODBC3'
 QT supported driver:'QPSQL'
 QT supported driver:'QPSQL7'
 Tora supports:'QMYSQL'
 Tora Supports:'QPSQL'
 Tora Supports:'QODBC'
---- main.cpp:225   int main(int, char **)----
Looking for client: Teradata
 export ORACLE_HOME=/Applications/TOra.app/Contents/PlugIns
 export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
 mkdir -p /Users/carlo/lib
 Loading: libporacle.so
 From: /Applications/TOra.app/Contents/PlugIns
  OK
Segmentation fault: 11
cbertelli commented 5 years ago

I linked the libraries inside the real and working oracle instantclient libraries and it didn't chrash anymore. In my case I had instantclient libraries here /usr/local/opt/osgeo-oracle-client-sdk/lib so I moved the original into a subdirectory (PlugIns/original_client) and I linked the relevant libraries. It worked.