MySQL problem

Miloš Lesák lesak na uvn.sk
Úterý Březen 16 07:00:44 CET 2004


TM> zkuste si pustit mysql_config --libs nebo --cflags, popr.  s --libmysqld-libs ...

TM> takze Vase gcc bude

TM> gcc `mysql_config --libs` `mysql_config --cflags` sql_auth.c -o sql_auth

TM> zkuste to

TM> TM

Tak som to dne skusil ale nepodarilo sa. Dopadlo to takto:

[root na milos tmp]# gcc `mysql_config --libs` `mysql_config --cflags` sql_auth.c -o sql_auth
-bash: mysql_config: command not found
-bash: mysql_config: command not found
sql_auth.c:9:25: mysql/mysql.h: No such file or directory
sql_auth.c:17: parse error before '*' token
sql_auth.c: In function `main':
sql_auth.c:21: `MYSQL' undeclared (first use in this function)
sql_auth.c:21: (Each undeclared identifier is reported only once
sql_auth.c:21: for each function it appears in.)
sql_auth.c:21: parse error before "auth_server"
sql_auth.c:24: `retv' undeclared (first use in this function)
sql_auth.c:24: `auth_server' undeclared (first use in this function)
sql_auth.c: At top level:
sql_auth.c:63: parse error before '*' token
sql_auth.c: In function `auth_ok':
sql_auth.c:65: `MYSQL_RES' undeclared (first use in this function)
sql_auth.c:65: `pres' undeclared (first use in this function)
sql_auth.c:66: `MYSQL_ROW' undeclared (first use in this function)
sql_auth.c:66: parse error before "row"
sql_auth.c:72: `login' undeclared (first use in this function)
sql_auth.c:73: `srvr' undeclared (first use in this function)
sql_auth.c:77: `row' undeclared (first use in this function)
sql_auth.c:78: `pass' undeclared (first use in this function)

Ako keby nepoznal kniznice.
Vcera som skusil MySQL nainstalovat na cisty system a stale som dostal
predchadzajuce chybove vypisy.
Nie som si isty, ale nie je problem s prepinacom -lmysqlclient?
Nechyba mi tam nieco?
Mysql som instaloval zo zdrojakov mysql-4.0.18.tar.gz
System je RedHat 9.
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.



Další informace o konferenci Linux