Categories
gentoo

Your machine must NOT be named localhost

If you receive error similar to this one (in this case during mysql installation):

* ERROR: dev-db/mysql-5.0.60-r1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called pkg_setup
*               ebuild.sh, line 1244:  Called mysql_pkg_setup
*            mysql.eclass, line  481:  Called die
* The specific snippet of code:
*      [[ “${HOSTNAME}” == “localhost” ]] && die “Your machine must NOT be named localhost”
*  The die message:
*   Your machine must NOT be named localhost

Make sure you have hostname variable set in /etc/conf.d/hostname file

Leave a Reply

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

+ 4 = 9