php5 on CentOS 4.3 x86_64

Hi,

Does someone knows if it is possible to upgrade your PHP to version 5. on a server with CentOS 4.3 x86_64 ??
If so is there somewhere a HowTo for it ??

Thanks in advance.

Yea you will wanna build some rpm’s for it, keep in mind it’s not supported by the IWORX staff, but php5 does work with interworx.

Here is the links to the rpm’s :
http://updates.interworx.com/iworx/SRPMS/experimental/

make sure you have rpm-build installed

yum install rpm-build

then build those rpm’s for your system :

rpmbuild --rebuild --with rhe4x php#!@#!@#.src.rpm

Not work.

rpmbuild --rebuild --with rhe4x http://updates.interworx.info/iworx/SRPMS/experimental/php-5.1.2-100.iworx.src.rpm
Installing http://updates.interworx.info/iworx/SRPMS/experimental/php-5.1.2-100.iworx.src.rpm
error: Failed build dependencies:
libmhash-devel is needed by php-5.1.2-100.rhe4x.iworx.i386

yum install libmhash-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libmhash-devel
Nothing to do

some ideA? PLEASE !!!

http://www.google.com/search?hl=en&q=libmhash-devel

http://rpmfind.net/linux/rpm2html/search.php?query=libmhash-devel

Find the rpm package for your distro and install it with rpm -ivh rpm-name-here

Paul

thankyou paul, i cant find for centos 4.3 and yum not install.
some idea?

should be able to find a src:

http://dag.wieers.com/packages/libmhash/libmhash-0.9.1-1.dag.src.rpm

Just rebuild it :slight_smile:

well this not work, using that source cant install libmhash

Somebody please can make public php 5 rpms for centos 4.3 ! please!

Grab libmhas from DAG: http://dag.wieers.com/home-made/apt/packages.php

on centos 4.3 should use rpms for rhel4 ?

well i installed that and try compile sorce rpm for php5
now more errors:

error: Bad exit status from /var/tmp/rpm-tmp.74681 (%build)

The last lines on /var/tmp/rpm-tmp.74681 are:

/usr/bin/make -j4
}

Build standalone /usr/bin/php

pushd build-cgi
build --enable-force-cgi-redirect
popd

Build Apache module

pushd build-apache
build --with-apxs2=/usr/sbin/apxs
popd

exit 0

What errors precede the:

error: Bad exit status from /var/tmp/rpm-tmp.74681 (%build)

line?

Thankyou for help, finally fixed

Re: Libmash…

Hey all.

Im running into a similar problem to Dj-Grobe when attempting to install libmash-devel.

I wget’d libmash-devel for rhel4 (I’m running CentOS 4.3) and attempted to rpm -ivh, but I got a failed dependency; i.e. needing libmash.

OK, so I wegt’d and rpm -ivh for libmash and got failed dependencies for 3 versions of lib.so.6.

Feels like I’m going down the dependency hole here…

Any ideas?

When you get messages about missing dependencies you can see if those files are provided by an available rpm by issuing a command like

yum provides lib.so.6.X

that should tell you if an rpm is available in the repos that fulfill that dependency.
If it comes up with something, then do

yum install whatever-the-previous-command-said-provided-the-file

Paul

I tried the “yum provides libc.so.6.x” command and several matches came up for i386 and i686; however, when I attempt to rpm -ivh libmhash…rpm, I get the following error:

warning: libmhash-0.9.1-1.2.el4.rf.x86_64.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libc.so.6()(64bit) is needed by libmhash-0.9.1-1.2.el4.rf.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by libmhash-0.9.1-1.2.el4.rf.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by libmhash-0.9.1-1.2.el4.rf.x86_64

the yum provides command does not show any 64bit libc.so.6.x files. Are the i386 & i686 files for older machines (i.e. pre-64bit cpus)?

I’m running a dual Xeon 2.8ghz/2mb Dell SC 1425. Do I need 64bit versions of libc.so.6 in order to fulfill the missing libc.so.6 dependencies?

Thanks for any clues…

Well, I went for i386 versions of libmhash and libmhash-devel – I have no clue what effect this will have on my dual Xeon system which I believe is 64bit.

In any case, I now get the following error when attempting to rpm rebuild php 5.1.2:


checking lex output file root… ./configure: line 3246: lex: command not found
configure: error: cannot find output from lex; giving up
error: Bad exit status from /var/tmp/rpm-tmp.67144 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.67144 (%build)


Spending too much time on this, but would like to upgrade to PHP5.

Any ideas?

Do a:

yum install flex

Chris

checking for g++… no
checking for gcc… gcc
checking whether the C++ compiler (gcc ) works… no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
error: Bad exit status from /var/tmp/rpm-tmp.93894 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93894 (%build)

Ths error when try build rpmd from source http://updates.interworx.info/iworx/SRPMS/experimental/php-5.2.0-100.iworx.src.rpm under centos 4.4

Some idea please?

did you install gcc, c++ ?

try
yum list ‘gcc

and look if there is a gcc and gcc-c++ installed.

If not do

yum install gcc gcc-c++

Pascal

Try:

yum install gcc-c++

  • edit: yeah, what Pascal said :slight_smile:

Paul