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

How to build from source on Arch Linux? #159

Open Freemason-12 opened 2 years ago

Freemason-12 commented 2 years ago

I;m using Arch linux and mostly software providers make short guide on how to build it from source. Here I do not see that and so I do not ahve any idea on how to build it. The tora-git package in AUR also does not work because of unmet qt dependency (weirdly enough I use kde which is all in qt and qt is installed actually).

So how to build the software?

ibre5041 commented 2 years ago

What errors do you get? How this AUR package fails? Tora depends on qscintilla library, preferably QT5 version. But detection of this library in CMAKE is nightmare, every distribution calls it differently and when I fix it for one distro, other distro gets broken.

Freemason-12 commented 2 years ago

I was able to build it using the AUR's PKGBUILD by removing the 'qt' from dependencies field. But now I have a different problem. I cannot connect to my docker oracle database, Oracle SQL Developer connects to it just fine. Here is the docker I'm using if needed: commands are:

docker pull pvargacl/oracle-xe-18.4.0:latest docker run --name oracle18 -d -p 1521:1521 pvargacl/oracle-xe-18.4.0

Any ideas?

ibre5041 commented 2 years ago

Tora 2.x had a problem. When libclntsh.so was not present, Tora would not start. So in ver. I moved Oracle specific code into plugin library poracle.so. When this plugin is not present Tora can not connect to Oracle.

Check the documentation. You should at least export ORACLE_HOME before calling cmake. Then Oracle library(oci.h and libclntsh.so) is detected and connection plugin poracle.so gets compiled.