-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure script fails to detect oracle headers path on Oracle Linux 7 #318
Comments
Hi, Autodetecting oracle assets location had never been a feature but rather a best effort. Thus, taking all of these parameters (different target environments, different Oracle versions, client/server distribution, different distribution primitives like rpm, installers, …), trying to have an universal auto detect mechanism seems to me not easy at all and requires time and effort. Important investment and very low benefit. Thus not a priority. You're welcome to propose an autodetect implementation from configure script that handle server installs and client (multiple) distributions that works on all non Windows environments supported by Oracle : Linux, HP/UX, AIX, MacOS, OpenVMS. Good luck :) Regards, Vincent |
If anyone picks this task up, PHP OCI8 could be an example to look at https://github.com/php/php-src/blob/master/ext/oci8/config.m4 (or older versions). |
About the multiple paths, I believe it is normally impossible to install multiple versions for the same client devel packages - the rpm package manager would not allow it. Anyway, my point was that trying to match I've posted this in the hope is going to be helpful to others, to point that the autodetection will most likely always fail since it only looks for a demonstrative app that most likely nobody is going to install on production machines, as well as to suggest a high probability location. |
the configure script only searches
$ORACLE_HOME/rdbms/public
and$ORACLE_HOME/rdbms/demo
and fails to find the path:[...]
checking for Oracle OCI headers location... configure: error: variable not set or unable to guess
currently to compile under OL7 (with latest updates) it needs to have argument
--with-oracle-headers-path=/usr/include/oracle/21/client64
the script should also try to parse
rpm
output about installedoracle-instantclient-devel
package, which can result in findingoracle-headers-path
at/usr/include/oracle/*/client64
the
rdbms
paths appear to originate from oracle documentation about demonstrative programs, however in practice nobody has these folders installed. instead, rpm packages are available from official oracle repositories.The text was updated successfully, but these errors were encountered: