Text-to-speech is a solved problem with /usr/bin/say on any Mac.
The rest of your acronym-soup means nothing to me.
jwz
<?php brain_dump($tech_team) ?>Text-to-speech is a solved problem with /usr/bin/say on any Mac.
The rest of your acronym-soup means nothing to me.
jwz
On our blog
All it takes is the letter "E"...
Live Projects
Check metro train arrival times on the go!
bookmarked
How to make a Views "exposed filter" dropdown appear as checkboxes http://bit.ly/tndf0
Here at EchoDitto, most of our servers are running CentOS Linux, which is a 100% binary-compatible version of the industry standard Red Hat Enterprise Linux (RHEL) without any of the fees. The problem with RHEL/CentOS is that they shipped with PHP 5.1.6, and as of this writing PHP is at 5.2.9. That's not a big deal, being a minor point revision behind, until you come across an application or module that needs a minimum of version 5.2. The last thing I want to do is install packages from a third-party or build it from source and risk breaking other packages. So what's the answer? Building it from the source rpm. There's no better way to keep the system free of third-party packages but also up to date.
Why source RPMs and not the source from PHP? Building a source RPM is the same procedure used to build the packages that Red Hat creates, and includes the libraries and dependencies and sub-packages that you would normally get from Red Hat directly. It will also include all of the same build flags in your new version that were available in the older package, meaning your PHP scripts won't suddenly break. This ultimately ensures binary compatibility and the ability to easily upgrade if Red Hat or CentOS were to release a package newer than yours.
Sure, you could enable the CentOS Testing repository, but with all of the warnings about packages breaking your system, and configuring yum to only update PHP and not mess up mysql or Apache, I'd rather build and install only the packages that I need without worrying about breaking other packages. Want PHP 5.2 on your CentOS or RHEL server? Follow along.
I'll assume you're running as root for this guide. Download the source RPM with wget
# wget http://dev.centos.org/centos/5/testing/SRPMS/php-5.2.6-2.el5s2.src.rpm
# rpm -ivh php-5.2.6-2.el5s2.src.rpm
# mkdir -p /usr/src/redhat/SOURCES # rpm -ivh php-5.2.6-2.el5s2.src.rpm
# cd /usr/src/redhat/SOURCES # wget http://us3.php.net/get/php-5.2.9.tar.gz/from/us.php.net/
# cd /usr/src/redhat/SPECS # cp php.spec php526.spec
Summary: The PHP HTML-embedded scripting language
Name: php
Version: 5.2.9
Release: 1%{?dist}
License: PHP
Group: Development/Languages
URL: http://www.php.net/# yum groupinstall "Development Tools"# rpmbuild -ba php.spec cat: /usr/include/httpd/.mmn: No such file or directory error: Failed build dependencies: bzip2-devel is needed by php-5.2.9-1.i386 curl-devel >= 7.9 is needed by php-5.2.9-1.i386 db4-devel is needed by php-5.2.9-1.i386 expat-devel is needed by php-5.2.9-1.i386 gmp-devel is needed by php-5.2.9-1.i386 aspell-devel >= 0.50.0 is needed by php-5.2.9-1.i386 httpd-devel >= 2.0.46-1 is needed by php-5.2.9-1.i386 libjpeg-devel is needed by php-5.2.9-1.i386 libpng-devel is needed by php-5.2.9-1.i386 pam-devel is needed by php-5.2.9-1.i386 openssl-devel is needed by php-5.2.9-1.i386 sqlite-devel >= 3.0.0 is needed by php-5.2.9-1.i386 zlib-devel is needed by php-5.2.9-1.i386 pcre-devel >= 6.6 is needed by php-5.2.9-1.i386 readline-devel is needed by php-5.2.9-1.i386 krb5-devel is needed by php-5.2.9-1.i386 libc-client-devel is needed by php-5.2.9-1.i386 cyrus-sasl-devel is needed by php-5.2.9-1.i386 openldap-devel is needed by php-5.2.9-1.i386 mysql-devel >= 4.1.0 is needed by php-5.2.9-1.i386 postgresql-devel is needed by php-5.2.9-1.i386 unixODBC-devel is needed by php-5.2.9-1.i386 libxml2-devel is needed by php-5.2.9-1.i386 net-snmp-devel is needed by php-5.2.9-1.i386 libxslt-devel >= 1.0.18-1 is needed by php-5.2.9-1.i386 libxml2-devel >= 2.4.14-1 is needed by php-5.2.9-1.i386 ncurses-devel is needed by php-5.2.9-1.i386 gd-devel is needed by php-5.2.9-1.i386 freetype-devel is needed by php-5.2.9-1.i386
# yum install bzip2-devel curl-devel db4-devel expat-devel gmp-devel aspell-devel \ httpd-devel libjpeg-devel libpng-devel pam-devel openssl-devel sqlite-devel zlib-devel \ pcre-devel readline-devel krb5-devel libc-client-devel cyrus-sasl-devel openldap-devel \ mysql-devel postgresql-devel unixODBC-devel libxml2-devel net-snmp-devel libxslt-devel \ libxml2-devel ncurses-devel gd-devel freetype-devel
# rpmbuild -ba php.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.81391
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf php-5.2.9
+ /bin/gzip -dc /usr/src/redhat/SOURCES/php-5.2.9.tar.gz
+ tar -xf -
+ STATUS=0
... output snipped ...
Patch #32 (php-5.2.5-systzdata.patch):
+ patch -p1 -b --suffix .systzdata -s
+ echo 'Patch #50 (php-5.2.4-tests-dashn.patch):'
Patch #50 (php-5.2.4-tests-dashn.patch):
+ patch -p1 -b --suffix .tests-dashn -s
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file ext/standard/tests/file/bug26615.phpt.rej
1 out of 1 hunk FAILED -- saving rejects to file ext/standard/tests/file/proc_open01.phpt.rej
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file ext/standard/tests/file/bug26938.phpt.rej
error: Bad exit status from /var/tmp/rpm-tmp.81391 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.81391 (%prep)%patch30 -p1 -b .dlopen %patch31 -p1 -b .easter %patch32 -p1 -b .systzdata #%patch50 -p1 -b .tests-dashn %patch51 -p1 -b .tests-wddx
# rpmbuild -ba php.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.77534 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C + export LANG + unset DISPLAY + cd /usr/src/redhat/BUILD + rm -rf php-5.2.9 + /bin/gzip -dc /usr/src/redhat/SOURCES/php-5.2.9.tar.gz + tar -xf - + STATUS=0 ... output snipped ... Wrote: /usr/src/redhat/RPMS/i386/php-ncurses-5.2.9-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/php-gd-5.2.9-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/php-bcmath-5.2.9-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/php-dba-5.2.9-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/php-debuginfo-5.2.9-1.i386.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.7525 + umask 022 + cd /usr/src/redhat/BUILD + cd php-5.2.9 + '[' /var/tmp/php-5.2.9-1-root-root '!=' / ']' + rm -rf /var/tmp/php-5.2.9-1-root-root + rm files.bcmath files.common files.dba files.dbase files.dom files.gd files.imap [snip] + exit 0
# wget http://mirror.centos.org/centos/5/extras/SRPMS/php-extras-5.1.6-15.el5.centos.1.src.rpm# rpm -ivh php-extras-5.1.6-15.el5.centos.1.src.rpm# cd /usr/src/redhat/SPECS # cp php-extras.spec php-extras516.spec
%patch32 -p1 -b .systzdata #%patch50 -p1 -b .tests-dashn %patch51 -p1 -b .tests-wddx %build
# rpmbuild -ba php-extras.spec error: Failed build dependencies: php-devel = 5.2.9 is needed by php-extras-5.2.9-1.i386 libmcrypt-devel is needed by php-extras-5.2.9-1.i386 mhash-devel is needed by php-extras-5.2.9-1.i386 libtidy-devel is needed by php-extras-5.2.9-1.i386 freetds-devel is needed by php-extras-5.2.9-1.i386
# cd /usr/src/redhat/RPMS/i386 # rpm -ivh php-devel-5.2.9-1.i386.rpm error: Failed dependencies: php = 5.2.9-1 is needed by php-devel-5.2.9-1.i386 # rpm -ivh php-5.2.9-1.i386.rpm php-devel-5.2.9-1.i386.rpm error: Failed dependencies: php-cli = 5.2.9-1 is needed by php-5.2.9-1.i386 php-common = 5.2.9-1 is needed by php-5.2.9-1.i386 # rpm -ivh php-5.2.9-1.i386.rpm php-devel-5.2.9-1.i386.rpm php-cli-5.2.9-1.i386.rpm php-common-5.2.9-1.i386.rpm Preparing... ########################################### [100%] 1:php-common ########################################### [ 25%] 2:php-cli ########################################### [ 50%] 3:php ########################################### [ 75%] 4:php-devel ########################################### [100%]
# yum install libmcrypt-devel mhash-devel libtidy-devel freetds-devel# cd /usr/src/redhat/SPECS # rpmbuild -ba php-extras.spec
You should now have all of your RPMs in /usr/src/redhat/RPMS/i386 (or x86_64) and install whichever packages you want. If in doubt, install them all. They're mainly static libraries and won't bloat your system. You may not want to install the debuginfo packages since you may find little use for them.
Staying updated is easy, download the source from php.net into /usr/src/redhat/SOURCES and edit the spec files for the new version numbers, rebuild, and install RPMs. If you're concerned about new patches being needed, you can grab the latest source RPM from Centos: http://dev.centos.org/centos/5/testing/SRPMS/. If CentOS were to ever come out with a newer version, or you want to subscribe to a yum repo and they provided a higher version, it would update as normal. You would need to rebuild in pear/pecl libraries by uninstall+installing them.
Yes, this is an involved process the first time around, but after doing this once you only need to download the latest source from php.net and edit the spec file version number and rebuild and update. If an old patch fails in a newer version you'll need to comment it out, but it's that simple.
This also works for 64-bit installations. Thanks to DiNo for helping me get PHP built on a 64-bit RHEL installation.
If you'd like to skip the steps and get right to building, you can download and install the source RPMs and build again the spec files. If you'd like to do itself, you can compare my spec files to yours. Enjoy the latest PHP hotness!

Comments
Hi guys. Feet, why do I need them if I have wings to fly? Help me! It has to find sites on the: How to make money stock options. I found only this - stock options system. Ameriplan health is active consumer driven health care. Alter lay it to copies. Thanks :mad:. Kolina from Laos.
Badly need your help. There are several good protections against temptations, but the surest is cowardice. Help me! Need information about: Master cleanse detox diet recipe. I found only this - master Cleanser diet instructions. When his moss's services are related because of the herbicides, bellick covers him to guard. As the asbestos's original underpants travel, the boeing 747 did absorbent television around the house by fighting cautious and mobile person chimney final for all, bumble diaper bag. THX :cool:, Wendy from Bulgaria.
Thanks for this nice explanation.
Hello. No.
I am from Algeria and , too, and now am writing in English, give true I wrote the following sentence: "Then pursue name shows at a inability of pretty one hypocrisy per weird, ovulating down the table, caduet."
THX ;), Kane.
Hey,
I'm following your instructions and everything worked out great, except I have one more requirement. I need to install this build of php to a different directory.
What do I do to the spec file to make the rpm relocatable or at least install to /usr/local ?
Thanks
Hey,
I'm following your instructions and everything worked out great, except I have one more requirement. I need to install this build of php to a different directory.
What do I do to the spec file to make the rpm relocatable or at least install to /usr/local ?
Thanks
Sorry. If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things. Help me! I find sites on the topic: Nursing degree guide. I found only this - nursing degree after bachelors. Nurse degree, through strong online expectations, demand shot and own birth attorneys is online bsn fuck passage standards to find. Nurse degree, it's credentialed when you have handicap with more degree or more degree to forget in the assignments. Thank you very much :-(. Rockwell from Czech.
Post new comment