ABHIONLINUX
Site useful for linux administration and web hosting

Showing posts with label Xdebug. Show all posts
Showing posts with label Xdebug. Show all posts

2010/10/22

Error while installin Xdebug pecl module

[root@server ~]#pecl install xdebug

downloading xdebug-2.0.3.tgz …
Starting to download xdebug-2.0.3.tgz (286,325 bytes)
……………………………….done: 286,325 bytes
66 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
building in /var/tmp/pear-build-root/xdebug-2.0.3
running: /root/tmp/pear/cache/xdebug-2.0.3/configure
checking for egrep… grep -E
checking for a sed that does not truncate output… /bin/sed
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… configure: error: cannot run C compiled programs.
If you meant to cross compile, use `–host’.
See `config.log’ for more details.
ERROR: `/root/tmp/pear/cache/xdebug-2.0.3/configure’ failed

FIX:
Execute the commands:-

[root@server ~]#cd /var/tmp/
[root@server ~]#rm -fr pear pear-build-root
[root@server ~]#ln -s /root/tmp/pear-build-root .
[root@server ~]#mkdir -p /root/tmp/pear/download

Try to install the package now:-

[root@server ~]#pecl install xdebug

It will be installed correctly in the server.