473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Build RPM PHP with oci8 on Oracle 10g Database - RHEL4

Hi,
I'm Julien from France,
We have recently install a new Web Server for my company

The server is composed :
- Linux RedHat RHEL4 U4
- Httpd-2.0.52-27.ent
- Oracle Database 10.2.0.1
-install in /oracle
-ORACLE_HOME is /oracle/ora102
- Php-4.3.9-3.15

On my website, some pages have to connect with php to Oracle
Database.

Actually those pages work on a Windows 2000 Server with Apache and
Oracle Database 8i with fonctions ora_conn, ora_parse ...

But I see that that to be compatible with Oracle 10g, we have to use
the
oci8 fonctions.

To do that i download the source package of php-4.3.9-3.15 and
modify
php.spec file :

--with-kerberos \
--with-ldap=shared \
--with-mysql=shared,%{_prefix} \

- %{?_with_oci8:--with-oci8=shared,/oracle/ora102} \

%{?_with_mssql:--with-mssql=shared} \
%{?_with_mhash:--with-mhash=shared} \

I rebuild the RPM with this spec and thoses command :

#rpmbuild -bb --with oci8=/oracle/ora102
/usr/src/redhat/SPECS/php.spec

=erreur: Dépendances de construction manquantes:
oracle-instantclient-devel >= 10 est nécessaire pour
php-4.3.9-3.15.i386

#rpmbuild -bb --with oci8=/oracle/ora102 --nodeps
/usr/src/redhat/SPECS/php.spec

=Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

+ popd
/usr/src/redhat/BUILD/php-4.3.9
+ exit 0
Exécution_de(%install): /bin/sh -e /var/tmp/rpm-tmp.56667
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd php-4.3.9
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' /var/tmp/php-root '!=' / ']'
+ rm -rf /var/tmp/php-root
+ pushd build-cgi
/usr/src/redhat/BUILD/php-4.3.9/build-cgi /usr/src/redhat/BUILD/php-
4.3.9
+ make install INSTALL_ROOT=/var/tmp/php-root
Installing PHP SAPI module: cgi
Installing PHP CGI into: /var/tmp/php-root/usr/bin/
Installing shared extensions: /var/tmp/php-root/usr/lib/php4/
Installing PEAR environment: /var/tmp/php-root/usr/share/pear/
[PEAR] Archive_Tar - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR - installed: 1.3.2
Wrote PEAR system config file at: /var/tmp/php-root//etc/pear.conf
You may want to add: /usr/share/pear to your php.ini include_path
[PEAR] DB - installed: 1.6.2
[PEAR] HTTP - installed: 1.2.2
[PEAR] Mail - installed: 1.1.3
[PEAR] Net_SMTP - installed: 1.2.3
[PEAR] Net_Socket - installed: 1.0.1
[PEAR] XML_Parser - installed: 1.0.1
[PEAR] XML_RPC - installed: 1.1.0
Installing build environment: /var/tmp/php-
root/usr/lib/php/build/
Installing header files: /var/tmp/php-root/usr/include/php/
Installing helper programs: /var/tmp/php-root/usr/bin/
program: phpize
program: php-config
program: phpextdist
+ popd
/usr/src/redhat/BUILD/php-4.3.9
+ pushd build-apache
/usr/src/redhat/BUILD/php-4.3.9/build-apache
/usr/src/redhat/BUILD/php-4.3.9
+ make install-sapi INSTALL_ROOT=/var/tmp/php-root
Installing PHP SAPI module: cgi
Installing PHP CGI into: /var/tmp/php-root/usr/bin/
+ popd
/usr/src/redhat/BUILD/php-4.3.9
+ install -m 755 -d /var/tmp/php-root/etc/
+ install -m 644 php.ini-recommended /var/tmp/php-root/etc/php.ini
+ install -m 755 -d /var/tmp/php-root/var/www/icons
+ install -m 644 php.gif /var/tmp/php-root/var/www/icons/
+ install -m 755 -d /var/tmp/php-root/usr/lib/httpd/modules
+ install -m 755 build-apache/libs/libphp4.so
/var/tmp/php-root/usr/lib/httpd/modules
install: cannot stat `build-apache/libs/libphp4.so': No such file or
directory
error: Bad exit status from /var/tmp/rpm-tmp.56667 (%install)
Eroor building RPM:
Bad exit status from /var/tmp/rpm-tmp.56667 (%install)
#rpmbuild -bb /usr/src/redhat/SPECS/php.spec
=same result that the preceding command
My problem is that the compilation dont make the libphp4.so but i
need it.

If someone have the same problem. Thanks to help me

Juliouz

--
--------------------------------- --- -- -
Posted with NewsLeecher v3.8 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Apr 3 '07 #1
0 4732

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Suresh Tri | last post by:
Hi all, I am interested in extracting the class or jar files which are stored as java stored procedures in Oracle. But I want to know if these are stored as references to external files in...
2
by: Seung Y. Kim | last post by:
Hi everyone. I am having a big performance issue with my ASP application with Oracle database. The application itself is a very database-generic one, so I can switch from Access to SQLServer...
0
by: Daisy | last post by:
Download Oracle Data Provider for .NET (http://otn.oracle.com/tech/windows/odpnet/index.html) today to empower your .NET applications with the Oracle Database! Try out the new features for XML...
0
by: Daisy | last post by:
To empower your .NET web services with the Oracle Database, download Oracle Data Provider for .NET (ODP.NET) from : http://otn.oracle.com/tech/windows/odpnet/index.html Try out the new features...
6
by: DravenStone | last post by:
Hi, I had just a horrible day at work, spent pretty much the entire day trying to get php_oci.dll and php_oracle.dll to load. It still never did. Super Quick Background. Jack of all trades IT...
2
by: Mark Brown | last post by:
I'm trying to access an Oracle database vb.net. I found several examples. I tried following each one, but I get the same error no matter what I try. I don't really understand what the error means...
10
by: Reedsp | last post by:
Version: MSAccess 2003 SP2 Explination: I have a database that connects to an oracle database. I have setup an ODBC connection under the System DSN tab in the ODBC Source Administrator. The...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.