Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-08-2005, 03:50 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
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.

Old 05-08-2005, 06:42 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Another Red Hat user did it like this .
Old 05-09-2005, 12:18 AM   #3
LQ Newbie
Registered: Mar 2003
Posts: 12

Original Poster
Rep: Reputation: 0
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 05:29 PM
regarding building RPM hinetvenkat Linux - Networking 2 08-29-2005 09:42 AM
Compiling and Building where? matthewa Linux - General 7 06-24-2005 01:06 PM
building and compiling VCDImager-0.7.2 Kilahchris Linux - Software 0 05-18-2005 12:54 AM
[Compiling - building - Installing] Please Help unk Linux - Newbie 2 08-04-2002 11:53 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration