View Full Version : php 5.2.0
daveyw
01-24-2007, 11:30 AM
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
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
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 :)
daveyw
01-24-2007, 12:40 PM
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
IWorx-Socheat
01-24-2007, 12:47 PM
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
daveyw
01-24-2007, 12:49 PM
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 ***
IWorx-Socheat
01-24-2007, 01:00 PM
Those warnings about the root user can be ignored.
daveyw
01-24-2007, 01:03 PM
[*****@****** ~]# rpm -Uvh php-5.2.0-100.iworx.src.rpm
1:php ########################################### [100%]
And now i have installed php 5.2.0?
IWorx-Socheat
01-24-2007, 01:40 PM
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.
daveyw
01-24-2007, 01:44 PM
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?
IWorx-Socheat
01-24-2007, 01:48 PM
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.
daveyw
01-24-2007, 01:51 PM
#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-*
daveyw
01-25-2007, 09:08 AM
[****@**** ~]# 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 (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
What's the problem now? I have used "yum install php-*"
HTTPD is still running
Still i'm using InterWorx!
pascal
02-04-2007, 10:53 AM
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
pascal
02-04-2007, 10:54 AM
lease also provide
rpm -qa | grep php*
and
yum list "php*"
Do you have php-mysql ? installed ?
Pascal
daveyw
02-04-2007, 10:58 AM
Sorry, i don't need it anymore
Dj-Grobe
02-15-2007, 12:12 AM
I need php-gd ?
How ?
I apreciate any help.
daveyw
02-15-2007, 01:22 AM
yum install php-gd ?
Dj-Grobe
02-15-2007, 01:26 AM
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 ?
IWorx-Socheat
02-15-2007, 10:10 AM
Please see my response here:
http://www.interworx.com/forums/showthread.php?p=11526#post11526
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.