ABHIONLINUX
Site useful for linux administration and web hosting

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.

2010/10/20

Change exim interface IP address

We can change the exim interface IP by editing exim.conf.

1. Open exim.conf in the text editor.

vi /etc/exim.conf

2. Check for the following lines in exim.conf
======================
remote_smtp:

driver = smtp

interface=
======================
You need to modify this as given below

*******************
remote_smtp:

driver = smtp

interface=xx.xx.xx.xx

Where  xx.xx.xx.xx with your IP address.
******************

3. You need to restart exim service in the server.

/etc/init.d/exim restart