-   Linux - Software (
-   -   Help with compiling/building RPM (

leisure 05-08-2005 02:50 PM

Help with compiling/building RPM
I am trying to re-compile the version of PHP distributed with Fedora Core 3 to enable support with Oracle 10g (OCI8). I've downloaded and installed all packages necessary to compile and build RPMs into /usr/src/redhat/......

Actually I am able to compile everything with using under /usr/src/redhat/SPECS

%rmpbuild -ba php.spec

My problem is that I know I have to setup the --with-oci8=$ORACLE_HOME flag, however, I have no clue how to do this.

My spec file reads something like:

%define with_oci8 %{?_with_oci8:1}%{!?_with_oci8:0}
%{?_with_oci8:--with-oci8=shared} \

I've tried to replace the %{?_with_oci8:--with-oci8=shared} \ line with

--with-oci8=/usr/local/oracle/product/10.1.0/Db_1 \

But it doesn't seem to work. No RPM is built.


bigrigdriver 05-08-2005 05:42 PM

Another Red Hat user did it like this .

leisure 05-08-2005 11:18 PM

Error finding files
I "forced" it by putting a 1 on the %define line. But now, I get the following error:

Processing files: php-debuginfo-4.3.11-2.5
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1

RPM build errors:
Could not open %files file /usr/src/redhat/BUILD/php-4.3.11/files.oci8: No such file or directory

I can't seem to figure out what is the file that it is looking for.


All times are GMT -5. The time now is 07:07 PM.