Make all gives me this

libmysql.c: In function `mysql_real_connect':
libmysql.c:2177: warning: passing arg 5 of `gethostbyname_r' from
incompatible pointer type
libmysql.c:2177: too few arguments to function `gethostbyname_r'
libmysql.c:2177: warning: assignment makes pointer from integer without
a cast
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory `/mysqltemp/mysql-4.1.0-alpha/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mysqltemp/mysql-4.1.0-alpha'
make: *** [all] Error 2

-----Original Message-----
From: Adam Carmichael [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2003 11:44 PM
To: Michael Cupp, Jr.
Subject: Re: Installing


> I'm attempting to install using INSTALL-BINARIES and get this message
> while executing mysql_install_db:

Did you download the binaries or compile from source?

> [cuppjr mysql]$ scripts/mysql_install_db
> scripts/mysql_install_db: ./bin/my_print_defaults: cannot execute
binary
> file
> WARNING: The host 'raq2.homeunix.org' could not be looked up with
> resolveip.
> This probably means that your libc libraries are not 100 % compatible


If you downloaded binaries, are they correct for your OS?
Example: I run a bunch of OpenBSD and FreeBSD systems, and the Linux
binaries won't work on them (not unless I do some emulation).
I find it easiest to download the source, uncompress it, and then run
the
following set of commands:
./configure [any options such as ssl]
make all
make install
/usr/local/bin/mysql_install_db
then I log in and set the root password (can be done in mysqladmin I
know,
but there's normally other things I want to do without having to log in
again).

Those stages usually work on *BSD and Linux.

Posting your OS, version of download, will be very helpful. There's also
a
section about incompatible versions of libc (see above) with MySQL,
consider
checking the version of libc that you have against what the MySQL
download
page says.

Adam

--
Adam Carmichael
[EMAIL PROTECTED]

> with this binary MySQL version. The MySQL deamon, mysqld, should work
> normally with the exception that host name resolving will not work.
> This means that you should use IP addresses instead of hostnames
> when specifying MySQL privileges !
> Installing privilege tables
> scripts/mysql_install_db: ./bin/mysqld: cannot execute binary file
> Installation of grant tables failed!
>
> Examine the logs in ./data for more information.
> You can also try to start the mysqld daemon with:
> /bin/mysqld --skip-grant &
> You can use the command line tool
> /bin/mysql to connect to the mysql
> database and look at the grant tables:
>
> shell> ./bin/mysql -u root mysql
> mysql> show tables
>
> Try 'mysqld --help' if you have problems with paths. Using --log
> gives you a log in ./data that may be helpful.
>
> The latest information about MySQL is available on the web at
> http://www.mysql.com
> Please consult the MySQL manual section: 'Problems running
> mysql_install_db',
> and the manual section that describes problems on your OS.
> Another information source is the MySQL email archive.
> Please check all of the above before mailing us!
> And if you do mail us, you MUST use the ./bin/mysqlbug script!
>
>
>
>
>
> Then if I try to run mysql or mysqld I get this:
> bash: /usr/local/mysql/bin/mysql: cannot execute binary file
>
>
>
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]
>
>




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to