sudo: unable to resolve host

While I was trying to install Mcrypt PHP I got the following error sudo: unable to resolve host.

[email protected]:/home/webroot/my# sudo php5enmod mcrypt
sudo: unable to resolve host scw-XXXX

I had to edit /etc/hosts and add the following entry to it:

127.0.0.1 scw-XXXX

Hooray!

 

Leave a Reply

Your email address will not be published. Required fields are marked *


*