473,587 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4771

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

Similar topics

2
11462
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 Oracle database or directly inside the database. In case if it is directly stored inside the database is there any way to extract it?. If I can extract...
2
4827
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 to Oracle with ease. The web-application runs great with Access and SQLServer. But when it comes to Oracle, the performance really lags.
0
1810
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 support like: - Store XML data natively in the database server as the Oracle database native type, XMLType. - Access relational and object...
0
2130
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 for XML support like: - Store XML data natively in the database server as the Oracle database native type, XMLType. - Access relational and...
6
6327
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 guy, have written many tools using perl and JSP in the past. Had a chance to do a big project, and figured I would use it to learn PHP.
2
4067
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 (I've never tried accessing an Oracle database before). The error I get is: ORA-12514: TNS:listener does not currently know of service requested...
10
6941
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 first time I go to a form that has fields from the oracle table, the "Oracle ODBC Driver Connect" window appears, as it should. Once I type in the...
0
3306
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. http://a.uuload.com/Oracle-Database.htm Unlock the Value of Your IT System Confio Software's Ignite for Oracle uses wait-event analysis to...
0
3277
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. http://a.uuload.com/Oracle-Database.htm Unlock the Value of Your IT System Confio Software's Ignite for Oracle uses wait-event analysis to...
0
8339
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.