Hello,
welcome to my first post in this forum
:
I have installed Lazarus on a 64bit Centos-Linux, including fpc-web and zeos components.
I have installed Oracle Instant Client so, that the libraries are in usr/lib/oracle/12.1/client64/lib.
I have a remote Oracle-DB.
I can connect to this DB from the Linux-machine using Oracles SQLPlus.
I can connect to this DB from the Linux-machine in a normal GUI-Test-Programm using either zeos components or Lazarus' TOracleConnection, both work.
But in a Web-CGI, compiled on the same machine, running in Apache on the same machine it won't work. Getting the following Error-Messages:
Using TOracleConnection:
Can not load Oracle client library "libociei.so". Is it installed?
Using Zeos:
None of the dynamic libraries can be found or is not loadable: libclntsh.so ! Use TZConnection.LibraryLocation if the location is invalid.
Using Zeos and filling TZConnection.LibraryLocation with above mentioned path:
Client-Library /usr/lib/oracle/12.1/client64/lib found but could not be loaded. Check compile-target and library compatibility!
Imho library is 64bit cgi-exe is 64bit. Compile-Target in Lazarus was "Default".
Why can't it find and/or load the libraries?
I'm new to Linux and Lazarus, so tell me if you need more info.
Crosspost DP