Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
building in /tmp/pear/temp/rar
running: phpize
sh: phpize: command not found
rolling back 388 file operations
ERROR: `phpize' failed

getting this error when trying to install the RAR package for php using the command "pecl -v install rar"

what does that means and how can i fix it ? i'm a linux newbie.

share|improve this question
add comment

1 Answer 1

You need to install php-devel as well. Since you are using CentOS :

yum install php-devel

will do the trick

share|improve this answer
    
Already tried. Doesn't work. Error: -bash: yum: command not found –  anarchOi Jun 25 '13 at 7:32
    
there is no yum installed ? then there must be something really really wrong with your system. Are you sure it is CentOS ? –  thanosk Jun 25 '13 at 7:38
    
Sorry my bad, i just checked again and i'm on Debian 6.0 Squeeze. I just bought this dedicated server so i'm a bit confused. –  anarchOi Jun 25 '13 at 18:31
    
then the command is apt-get install php-dev or apt-get install php5-dev depends on your php version. –  thanosk Jun 26 '13 at 6:38
    
this is what i am getting now, after running pecl -v install rar ..... configure: error: in /var/tmp/pear-build-root/rar-3.0.1': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See config.log' for more details rolling back 388 file operations ERROR: `/tmp/pear/temp/rar/configure' failed –  anarchOi Jun 26 '13 at 12:54
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.