Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2002 23:29:07 -0500
From:      Redmond Militante <r-militante@northwestern.edu>
To:        freebsd-questions@freebsd.org
Subject:   problem installing mysql323-server from ports
Message-ID:  <20020622232907.A11042@darkpossum>

index | next in thread | raw e-mail

[-- Attachment #1 --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi all

i'm getting an error whenever i try to install mysql323-server from ports.

 install -c -o root -g wheel -m 444 ./binary-configure /usr/local/share/mysql/binary-configure
===>   Generating temporary packing list
/usr/local/bin/mysql_install_db
Sorry, the host 'fisk246150' 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.

this is telling me that my /etc/hosts is wrong.  i type 'hostname' and i get the correct hostname.  the first 2 lines in my /etc/hosts is

::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain

i did an nslookup on myself and it gives me the right hostname.

i looked up this error on the internet - apparently other people have gotten this error as well.  

>Description:
I did "make" and then "make install" for the mysql323-server port, and once the program reaches the point where mysql_install_db wants to lookup the hostname it errors and stops saying that the hostname couldn't not be looked up.  It was only using part of my hostname to be looked up....  
>How-To-Repeat:
run "make install" for the port of mysql322-server
>Fix:
 In the mysql_install_db code it says to do "hostname -s" when looking up the hostname, I changed it to just "hostname" without the "-s" and the problem was fixed eventhough I had to do some working around with the make install b.c by re-running the "make install" it tries to reinstall the database and will overwrite the mysql_install_db file that was just edited.  Maybe this is a probkem that should be reported to mysql and not freebsd, but here you go. :)
>Release-Note:
>Audit-Trail:
>Unformatted:

i tried this myself but couldn't get it to work.  i could edit hostname -s to read hostname in mysql_install_db but i couldn't figure out how to get the make install script to keep from overwriting the mysql_install_db file.

i'd like to install mysql323-server from ports, if at all possible, and i've talked to a lot of people who used ports to install it with no problems.  has anyone else had this problem? if so, how did you get around it.

thanks
redmond
















-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9FU6MFNjun16SvHYRAp6NAJ0XJldm+AfWSjmvHjhUd+La3P1P5gCeMmBY
Vy4m0Ml4RXAZaKKzjE901E4=
=nHXg
-----END PGP SIGNATURE-----

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9FU6SFNjun16SvHYRAphdAJ915dGtA+VpOn3Z6EgMjWxQZrvRAQCcC+yc
ZaUkN78KHwV0PgWp3iP4ceQ=
=GXmJ
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020622232907.A11042>