Hey Guys
I'm trying to install xcache on our web server (php optcode cacher) but I am having the following error. I have download the xcache tar ball, unzipped and when in the unzipped directory attempting to run phpize but it fails with the following error:
[root@server1882 xcache-1.2.2]# phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
Ok, $PHP_AUTOCONF doesn't exist so I made it in my bash profile and set to it /usr/local/bin where autoconf is installed too. After logging in and out it didn't work although the environment variable had correct exported. I checked online some people have mentioned you need libtool installed aswell but I have that too (and automake before you ask, all three are installed and have symbolic links in /usr/bin to /usr/local/bin) but this still isn't working and I can't work it out.
Can anyone shed any light on this for me?
Thanks for reading listee's!
Regards, James.
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++ ------END GEEK CODE BLOCK------
James Bensley wrote on Tue, 6 Jan 2009 13:41:06 +0000:
Can anyone shed any light on this for me?
Don't know. I didn't hear about xcache before (I use eaccelerator). Googling around found me this tutorial http://www.howtoforge.de/howto/xcache-in-php5-mandriva-20080-und-apache2- integrieren/ which lists flex gcc gcc-c++ php-devel as necessary for building on Ubuntu. Any of these missing?
And simply googling for "xcache centos rpm" found me this oen: http://www.easywms.com/easywms/?q=en/node/210
Kai
Hey Kai, thanks for the response, I think I have found the problem;
For some reason if I download the source for xCache or eAccelerator and unpack the tar ball then change to that directory and run phpize I still get the error: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
But someone has posted a source rpm online for download to compile into a binary rpm but when I do I get the error: [root@server1882 /]# rpmbuild -bb /usr/src/redhat/SPECS/php-xcache.spec error: Failed build dependencies: php is needed by php-xcache-5.2.5_1.2.1-jason.1.x86_64 php-devel is needed by php-xcache-5.2.5_1.2.1-jason.1.x86_64
It can't see that php and php-devel are installed but they are, and running beautifully? So I'm guessing that phpize is having the same problems in that it can't seem to understand that fact the autoconf, autoheader, libtool, m4, make etc they are all installed and working?
Does anyone have any idea why this might be?
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++ ------END GEEK CODE BLOCK------
James Bensley napsal(a):
Hey Kai, thanks for the response, I think I have found the problem;
For some reason if I download the source for xCache or eAccelerator and unpack the tar ball then change to that directory and run phpize I still get the error: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
But someone has posted a source rpm online for download to compile into a binary rpm but when I do I get the error: [root@server1882 /]# rpmbuild -bb /usr/src/redhat/SPECS/php-xcache.spec error: Failed build dependencies: php is needed by php-xcache-5.2.5_1.2.1-jason.1.x86_64 php-devel is needed by php-xcache-5.2.5_1.2.1-jason.1.x86_64
It can't see that php and php-devel are installed but they are, and running beautifully? So I'm guessing that phpize is having the same problems in that it can't seem to understand that fact the autoconf, autoheader, libtool, m4, make etc they are all installed and working?
Does anyone have any idea why this might be?
Hi, Do you have autoconf intalled?
rpm -qp --requires php-xcache-1.2.1-jason.1.src.rpm yum install php-devel autoconf automake libtool rpmbuild --rebuild php-xcache-1.2.1-jason.1.src.rpm rpm -ivh /usr/src/redhat/RPMS/i386/php-xcache-5.1.6_1.2.1-jason.1.i386.rpm
BTW: Centos 4/5 binaries are also here: http://fs12.vsb.cz/hrb33/el4/hrb/stable/x86_64/repodata/repoview/php-xcache-... http://fs12.vsb.cz/hrb33/el4/hrb/stable/i386/repodata/repoview/php-xcache-0-... http://fs12.vsb.cz/hrb33/el5/hrb/stable/x86_64/repodata/repoview/php-xcache-... http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repodata/repoview/php-xcache-0-...
Regards, David Hrbác(
Hi David, Thanks for the reply;
Yeah I have everything that is required already installed that's why I'm trying to move away from building to xCache source to using the rpm instead. I downloaded the i386 rpm package you linked to me for CentOS 4 (as I am actually running Red Hat 3.4.5-2!) but got the following error rpm -ivv php-xcache-1.2.2-1.el4.hrb.i386.rpm <snip command output> error: Failed dependencies: php is needed by php-xcache-1.2.2-1.el4.hrb.i386 <snip>
All the other requirements where met but php IS already installed and running, we have three website running on this server so I can't work out why it won't detect php, does anyone know the method it might be using so I can try and investigate further and hopefully solve the issue?
Thanks for everyone's help so far its been great!
Regards, James.
Hi, Do you have autoconf intalled?
rpm -qp --requires php-xcache-1.2.1-jason.1.src.rpm yum install php-devel autoconf automake libtool rpmbuild --rebuild php-xcache-1.2.1-jason.1.src.rpm rpm -ivh /usr/src/redhat/RPMS/i386/php-xcache-5.1.6_1.2.1-jason.1.i386.rpm
BTW: Centos 4/5 binaries are also here: http://fs12.vsb.cz/hrb33/el4/hrb/stable/x86_64/repodata/repoview/php-xcache-... http://fs12.vsb.cz/hrb33/el4/hrb/stable/i386/repodata/repoview/php-xcache-0-... http://fs12.vsb.cz/hrb33/el5/hrb/stable/x86_64/repodata/repoview/php-xcache-... http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repodata/repoview/php-xcache-0-...
Regards, David Hrbác(
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++ ------END GEEK CODE BLOCK------
James Bensley napsal(a):
Hi David, Thanks for the reply;
Yeah I have everything that is required already installed that's why I'm trying to move away from building to xCache source to using the rpm instead. I downloaded the i386 rpm package you linked to me for CentOS 4 (as I am actually running Red Hat 3.4.5-2!) but got the following error rpm -ivv php-xcache-1.2.2-1.el4.hrb.i386.rpm
<snip command output> error: Failed dependencies: php is needed by php-xcache-1.2.2-1.el4.hrb.i386 <snip>
All the other requirements where met but php IS already installed and running, we have three website running on this server so I can't work out why it won't detect php, does anyone know the method it might be using so I can try and investigate further and hopefully solve the issue?
Thanks for everyone's help so far its been great!
Regards, James.
Well, you should mention it first you are running RHEL 3.x. So you are running php 4.3.2. Package you are trying to install is built agains Centos 4 Plus php.
James, do rpm -qa | grep php | sort.
Btw, php-xcache SRPM buils fine on centos 3.x, I have just tried. Regards, David
Hi David,
Well, you should mention it first you are running RHEL 3.x.
Yes, my bad, sorry about that!
So you are running php 4.3.2. Package you are trying to install is built agains Centos 4 Plus php.
I have php 4.4.9. Yeah I was hoping the CentOS 4 build might work on RHEL 3.4.5-2?
James, do rpm -qa | grep php | sort.
This brings back nothing indicating that php isn't installed but it DEFFINATLY is, however we/I/the web dev team compiled it from the source not through rpms (as I didn't actually think it was available this way?) so might it not show up for that reason?
Btw, php-xcache SRPM buils fine on centos 3.x, I have just tried.
I did try to build the source RPM but get:
php is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64 php-devel is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64
So I'm lost, both of these are installed but the rpm manager can't detect them? What am I going to do? I am at a bit of a loss here!
Regards, James
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++ ------END GEEK CODE BLOCK------
James Bensley napsal(a):
This brings back nothing indicating that php isn't installed but it DEFFINATLY is, however we/I/the web dev team compiled it from the source not through rpms (as I didn't actually think it was available this way?) so might it not show up for that reason?
So everything's installed from the source rpm knows nothing about them....
php is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64 php-devel is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64
Try to build it with --nodeps, so it will not looup in rpm db. David
Hi David, Thanks for the speed reply;
So everything's installed from the source rpm knows nothing about them....
php is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64 php-devel is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64
Try to build it with --nodeps, so it will not looup in rpm db. David
Thanks for that idea but unfortunately I am back to square one as the --nodeps option does obviously make rpmbuild command continue on but ultimately, drops out with the same error as when I manually build xCache from the source when it gets to running phpize;
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
I can't understand why this is though, especially since autoconf and autoheader are both listed by the rpm manage with; rpm-qa | grep auto automake-1.9.2-3 autoconf-2.59-5
So they really are there and clearly visible? What is the world coming to ay?
Thanks again for your input, back to square one for me then!
Regards, James ;)
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++ ------END GEEK CODE BLOCK------
James Bensley napsal(a):
I can't understand why this is though, especially since autoconf and autoheader are both listed by the rpm manage with; rpm-qa | grep auto automake-1.9.2-3 autoconf-2.59-5
So they really are there and clearly visible? What is the world coming to ay?
Thanks again for your input, back to square one for me then!
Regards, James ;)
I'd get rid of PHP from source and install php-* packages. David
Hey David, Kai;
Thanks for the replys.
I'd get rid of PHP from source and install php-* packages. David
I didn't think rpm packages for php exist, I am searching on google for some to download but I can't find any?
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++ ------END GEEK CODE BLOCK------
b73ac9417517f@mail.gmail.com>
James Bensley wrote on Wed, 7 Jan 2009 12:43:09 +0000:
I didn't think rpm packages for php exist, I am searching on google for some to download but I can't find any?
The packages for your Red Hat are on the Red Hat servers, of course. I don't know if there are any third-party packages with newer php available. I hope you understand that you need packages that fit your OS and not just a "php rpm"? I'm pretty sure you are just missing a tiny bit in your build invocation or just need a small tweak to the makefile. You really should go to the php newsgroup for this very specific problem or even better to the xcache forum.
Kai
David Hrbác( wrote on Wed, 07 Jan 2009 12:42:44 +0100:
I'd get rid of PHP from source and install php-* packages.
Then he goes back to PHP 4.3.2. You *have* to use the source for xcache. I'd recommend to go the php newsgroup and ask about the phpize problem. And provide all the information you offered here in steps in the first message ;-)
I just stumbled over this snippet from eaccelerator build instructions when searching my notes for "phpize". Try it a last time that way (without the shared line), especially with that php-config hint and the exported php prefix.
Step 1. Compiling eAccelerator
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure \ --enable-eaccelerator=shared \ --with-php-config=$PHP_PREFIX/bin/php-config
make
You must specify the real prefix where PHP is installed in the "export" command. It may be "/usr" "/usr/local", or something else.
Kai
James Bensley wrote on Wed, 7 Jan 2009 07:30:30 +0000:
php is needed by php-xcache-5.2.5_1.2.1-jason.1.x86_64
what does rpm -q php say? And, as has already been said, it's not very nice to omit OS information.
Kai