From owner-freebsd-questions Thu Jan 23 9:49:43 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 932F237B401 for ; Thu, 23 Jan 2003 09:49:41 -0800 (PST) Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC9743EB2 for ; Thu, 23 Jan 2003 09:49:40 -0800 (PST) (envelope-from nospam@hiltonbsd.com) Received: from [209.224.35.126] (helo=daggar.sbgnet.net) by hermes.pressenter.com with smtp (Exim 3.16 #1) id 18blTp-0006ZD-00; Thu, 23 Jan 2003 11:49:33 -0600 Date: Thu, 23 Jan 2003 11:49:28 -0600 From: Stephen Hilton To: freebsd-questions@FreeBSD.ORG Cc: mntkz@mntkz.net Subject: Re: error during mysql323-server installation, how to configure hostname command. Message-Id: <20030123114928.4dbddb8f.nospam@hiltonbsd.com> In-Reply-To: <200301230022.h0N0MIEc028217@mntkz.net> References: <200301230022.h0N0MIEc028217@mntkz.net> X-Mailer: Sylpheed version 0.8.8 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 22 Jan 2003 18:22:18 -0600 (CST) Mantas Kriauciunas wrote: > Hey! > when i try to 'make install' mysql323-server i get: > ===> Generating temporary packing list > /usr/local/bin/mysql_install_db > Sorry, the host 'mntkz' could not be looked up. > Please configure the 'hostname' command to return a correct hostname. > If you want to solve this at a later stage, restart this script with > the --force option > *** Error code 1 > > Stop in /usr/ports/databases/mysql323-server. > > -- > how to fix this? if i do --force on mysql_install_db then make install doesn't work anymore, and i can't start mysql server because of few problems, i guess it doesn't install up to the end. Are you using DHCP to get an IP address for the machine you are installing mysql323-server on ? If so, you need some further DNS/DHCP configuration so the PC has a resolvable address, I use the client MAC address in the DHCP server configuration so this PC always gets the same IP address, and then can "hard code" a host entry in the PC's /etc/hosts or in the DNS server. Alternatly you could not use DHCP for this machines IP address, and give it an IP address in your subnet that is not part of your DHCP pool of available addresses and add static DNS and /etc/hosts entrys for this PC. Regards, Stephen Hilton nospam@hiltonbsd.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message