473,394 Members | 1,295 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,394 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 4743

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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.