LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-08-2005, 02:50 PM   #1
leisure
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.

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

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Another Red Hat user did it like this .
 
Old 05-08-2005, 11:18 PM   #3
leisure
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
Provides: domxml.so.debug gd.so.debug imap.so.debug ldap.so.debug libphp4.so.debug mbstring.so.debug mysql.so.debug ncurses.so.debug oci8.so.debug odbc.so.debug pgsql.so.debug snmp.so.debug xmlrpc.so.debug
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.

Thx.
 
  


Reply



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 04:29 PM
regarding building RPM hinetvenkat Linux - Networking 2 08-29-2005 08:42 AM
Compiling and Building where? matthewa Linux - General 7 06-24-2005 12:06 PM
building and compiling VCDImager-0.7.2 Kilahchris Linux - Software 0 05-17-2005 11:54 PM
[Compiling - building - Installing] Please Help unk Linux - Newbie 2 08-04-2002 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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