php 5.2.0

Hello,

Can someone give me the info that i must use for installing php 5.2.0 ?
If its possible a auto-install…

Visit:

lynx http://rpm.pbone.net/index.php3?stat=26&dist=12&size=6954032&name=php-5.2.0-9.src.rpm

[size=1][i]Shortuct:

wget ftp://ftp.task.gda.pl/vol/d0s0/ftp.pld-linux.org/dists/2.0/ready/SRPMS/php-5.2.0-9.src.rpm

[/i][/size]

Then do (for RHEL4 or CentOS 4.x):

rpmbuild --rebuild --with rhel4 php-5.2.0-9.src.rpm

Then:

cd /usr/src/redhat/RPMS/i386/

And:

rpm -Uvh php*.rpm

Hope that helps :slight_smile:

i got an error when i used the rpmbuild

[***@ ~]# rpmbuild --rebuild --with rhel4 php-5.2.0-9.src.rpm
-bash: rpmbuild: command not found

There’s going to be a few dependencies you’ll need to install before you can re-build the PHP srpm. The first of which is:

yum install rpm-build

warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root
warning: user builder does not exist - using root

Etc etc etc…

*** Also i use interworx ***

Those warnings about the root user can be ignored.

[@* ~]# rpm -Uvh php-5.2.0-100.iworx.src.rpm
1:php ########################################### [100%]

And now i have installed php 5.2.0?

No, you have only installed the source RPM. You can now build the RPM using rpmbuild. Searching the forums for “rpmbuild” should give you a few examples of how to use rpmbuild to create the RPMs.

Thanks, only i need is 1 thing

error: Failed build dependencies:
libmhash-devel is needed by php-5.2.0-100.iworx.i386

The other 5 things i have installed with yum but “yum install libmhash-devel” doesn’t work, somebody have the correct name?

You need to get them from another repository, like DAG:
http://dag.wieers.com/rpm/packages/libmhash/

You need to download the one specific to your distribution. If you’re using CentOS 4, you want the el4 packages.

#rpmbuild --rebuild --with rhel4 libmhash-0.9.1-1.2.el4.rf.i386.rpm
Installing libmhash-0.9.1-1.2.el4.rf.i386.rpm
error: source package expected, binary found
error: libmhash-0.9.1-1.2.el4.rf.i386.rpm cannot be installed

You’re trying to build a binary package!

Look at the names. If it ends in .rpm, it’s binary, and you only install it. If it’s .src.rpm, then it’s source, and you need to build it.

Use this:

rpm -Uvh libmhash-*.rpm

Also this might help resolve some dependancies:

yum install php-*

[@ ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/mysql.so’ - /usr/lib/php5/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/mysqli.so’ - /usr/lib/php5/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/pdo.so’ - /usr/lib/php5/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/pdo_mysql.so’ - /usr/lib/php5/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.1.4 (cli) (built: Nov 20 2006 23:05:20)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies

What’s the problem now? I have used “yum install php-*”
HTTPD is still running

[SIZE=3]Still i’m using InterWorx![/SIZE]

Are you using a x86 or x86_64 box ?

If you do

ls /usr/lib/php5/

what is the result ?

Where did you set the module library in the ./configure line ?
Look in the php.spec file for more information

Also did you already have php4 insytalled on this box ?

Pascal

lease also provide

rpm -qa | grep php*

and

yum list “php*”

Do you have php-mysql ? installed ?

Pascal

Sorry, i don’t need it anymore

I need php-gd ?

How ?

I apreciate any help.

yum install php-gd ?

yum not work i use http://updates.interworx.info/iworx/SRPMS/experimental/php-5.0.4-100.iworx.src.rpm adn yum repo no have php-gd …soem idea how ad support to installed php 5.0.4 ?

Please see my response here:
http://www.interworx.com/forums/showthread.php?p=11526#post11526