Spiga

centos apc install error : apxs: command not found

March 03, 09 by Gabi Solomon

I have been trying to install apc for the past 3 hours on my centos VPS and i was getting these error:

Sorry, I was not able to successfully run APXS. Possible reasons:

1. Perl is not installed;
2. Apache was not compiled with DSO support (–enable-module=so);
3. ‘apxs’ is not in your path. Try to use –with-apxs=/path/to/apxs
The output of apxs follows
/root/tmp/pear/APC/configure: line 3263: apxs: command not found
configure: error: Aborting
ERROR: `/root/tmp/pear/APC/configure –with-apxs’ failed

after a alot of searching i finally found the solution. I had to do a manual install.
Asuming you are logged in as root you need to follow the following steps.

1. Grab APC 3.0.8
wget http://pecl.php.net/get/APC-3.0.8.tgz

2.Extract files
gunzip -c APC-3.0.8.tgz

3. change to directory:
cd APC-3.0.8

4. Actual install
phpize
./configure –enable-apc –enable-apc-mmap –with-apxs=/usr/local/apache/bin/apxs –with-php-config=/usr/bin/php-config
make
make install

take note that –with-apxs also specifies the location
As for the rest as the config i am sure you already have opened a ton of pages telling how to do it, if you encountered this error.

Hope you find this page faster then i did.
Cheers

Install Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion

December 29, 08 by Gabi Solomon

Today i finally decided to go ahead with installing subversion, after a bit of reading i opened a ssh session and input :

[root@servername ~]# yum install subversion

But to my surprise i got an error :(

Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion

After a bit of googling i managed to find a solution on a forum and i thought to post it here, maybe other will find it faster :D

First we need to download the perl(URI) with version greater than 1.17 using the following command.

wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm

Then to install the perl package :

rpm -i perl-URI-1.35-3.noarch.rpm

That is it, you can now install and configure subversion as normal.

Cheers.