Re: Re: RedHat 7.3 Modular and Customizable PHP RPM's.
| From: | Paul Gardiner | Date: | Mon, 27 Jan 2003 10:19:23 +0000 |
| Subject: | Re: Re: RedHat 7.3 Modular and Customizable PHP RPM's. | ||
| References: | 1 2 3 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-9854@lists.php.net to get a copy of this message | ||
Hi Mitch,
I too keep seeing that people cannot compile on RH8.0 but I just thought I'd
let you know that I have a fully working version one on my machines. Perhaps
it's one of the options that I'm not using that is causing other people
problems. I always seem to have problems with the informix side of things
but everything seems to work.
I've included my stripped down build process below for you to have a look
at.
Regards,
- Paul -
# INFORMIX
#!/bin/sh
#
# buildinformix.sh
#
# This script re-builds $INFORMIXDIR/lib/esql/libifgen.so from libifgen.a
# to enable php to compile without getting 'undefined symbol: stat' error.
mkdir ./tmp
cd tmp
# only backup once to save the original
if [ ! -e "$INFORMIXDIR/lib/esql/libifgen.so.bak" ]; then
cp $INFORMIXDIR/lib/esql/libifgen.so $INFORMIXDIR/lib/esql/libifgen.so.bak
fi
# extract libraries from library archive
ar x $INFORMIXDIR/lib/esql/libifgen.a
# recompile as shared
gcc -shared -o libifgen.so *.o
# replace original
cp libifgen.so $INFORMIXDIR/lib/esql
rm *.*
cd ..
rmdir tmp
# PDFLIB
./configure
make
make install
# APACHE
cd $APACHE_DIR
./configure --prefix=/usr
# PHP
cd ../$PHP_DIR
./configure --with-apache=../$APACHE_DIR \
--without-mysql \
--with-informix \
--with-pdflib=/usr/local \
--with-gd \
--enable-gd-native-ttf \
--with-freetype-dir=/usr \
--with-zlib \
--with-config-file-path=/etc \
--with-ncurses \
--enable-exif \
--enable-ftp \
--with-xml \
--enable-track-vars \
--enable-trans-sid
make
make install
# APACHE
cd ../$APACHE_DIR
# get these by running esql -libs
IFX_LIBS="-lifsql -lifasf -lifgen -lifos -lifgls -lc -lm -ldl \
-lcrypt /opt/informix/lib/esql/checkapi.o -lifglx"
# Add any extra libs in here if required
LIBS="$IFX_LIBS"
export LIBS
./configure --prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc/httpd/conf \
--includedir=/usr/include \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--mandir=/usr/share/man \
--htdocsdir=/var/www/html \
--iconsdir=/var/www/icons \
--cgidir=/var/www/cgi-bin \
--logfiledir=/var/www/logs \
--proxycachedir=/var/www/proxy \
--activate-module=src/modules/php4/libphp4.a
make
make install
----- Original Message -----
From: "Mitch Pirtle" <mitch.pirtle@kuehne-nagel.com>
To: "Lukasz Karapuda" <luki@thenewline.com>; <php-install@lists.php.net>
Sent: Monday, January 27, 2003 9:55 AM
Subject: Re: [PHP-INST] Re: RedHat 7.3 Modular and Customizable PHP RPM's.
Disclaimer: My advice is only good until you get to php-4.3.0, which
apparently will NOT compile on a RedHat8 box. I have heard rumours that it
is possible, but I have no proof that is has actually been done. I am still
waiting for news as to a possible fix or temporary workaround, but lose hope
as the weeks pass without a response...
*** IF YOU KNOW HOW TO BUILD RPMS, SKIP THIS MESSAGE ***
I always look for the SRPM for php. The last one I had was for 4.2.2 (so it
will be used for this example). This basically included the source file and
a spec file. If you do this (as root):
rpm -i php-4.2.2-8.0.6.src.rpm
It will put the source tarball in /usr/src/redhat/SOURCES, and a specfile in
/usr/src/redhat/SPECS. You can now use the specfile (php-4.2.2-8.0.6.spec
in
this example) for future releases of php. Copy it to another name
(typically
for a newer version), and then open it in an editor. Take a look around,
you
will see instructions on what version the source tarball is (change that)
and
other details as well. You will clearly find the options passed to
./configure. Add/remove the options that are not included in the standard
RPM from RedHat, and then issue:
rpm --ba /usr/src/redhat/SPECS/php-YOUR_VERSION.spec
This will create both an SRPM and the collection of RPMS for your machine.
I am forced to do this, as the libraries usually link to an older system
(postgres, for example). So when I rebuild from source, php is linked to
the
new/correct library.
With a working specfile, you can download newer php releases, modify the
specfile for that release, and build your own RPMs. For more detailed
information, freshrpms.net is an excellent resource, as well as the home for
some awesome add-ons for RedHat - like apt for rpm.
Let me know if this helps or not, I'd like to know if this was the answer to
your question or if I am just blabbing -;^>=
-- Mitch
On Saturday 25 January 2003 17:52, Lukasz Karapuda wrote:
> Continuing unfinished post: :-)
> Modular RPM packages:
> http://rpms.arvin.dk/php/rh72/i686/
>
> I am asking someone knowledgable for advice, what is the best way to
> install modularized and customized configurations of PHP on RedHat 7.3.
>
> Cheers,
> ______________________________
> Lukasz Karapuda
> developer -- newline Creations LLC.
> @ luki@thenewline.com
> Y! lukaszkarapuda
> "Lukasz Karapuda" <luki@thenewline.com> wrote in message
> news:20030125165024.70829.qmail@pb1.pair.com...
>
> > Hello.
> >
> > Lately I have been having certain thoughts about the use of PHP RPM's
for
> > RedHat 7.3.
> > As you all know the default set of PHP rpm's for RH 7.3 available via
RHN
>
> is
>
> > composed of the following modules:
> > -----------------------
> > php-4.1.2-7.3.6
> > php-dbg-4.1.2-7
> > php-devel-4.1.2-7.3.6
> > php-imap-4.1.2-7.3.6
> > php-ldap-4.1.2-7.3.6
> > php-manual-4.1.2-7.3.6
> > php-mysql-4.1.2-7.3.6
> > php-odbc-4.1.2-7.3.6
> > php-pgsql-4.1.2-7.3.6
> > php-snmp-4.1.2-7.3.6
> > ------------------------
> >
> > At the same time certain PHP extensions are not compiled in and or NOT
> > available as seperate RPM on RHN (eg. DOMXML, EXIF, JPEG).
> >
> > Personally I require many of the PHP extensions, which are not part of
> > the default RPM compilation.
> > Therefore I see 2 options:
> > 1. Compile PHP by myself, with the necessary extensions.
> > (creates problems, because of the fact that many of the extensions are
> > dependent upon different versions of libaries, than the ones available
on
> > RHN )
> > 2. Find a source for modular PHP RPM's (i.e. different RPM's for
> > different compile options).
> > So far I have found one (does not offer the most recent PHP
version):
> >
> >
> >
> >
> >
> >
> >
> > ______________________________
> > Lukasz Karapuda
> > developer -- newline Creations LLC.
> > @ luki@thenewline.com
> > Y! lukaszkarapuda
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php