关于squid和mysql的认证问题

王朝厨房·作者佚名  2007-01-02
窄屏简体版  字體: |||超大  

我用http://people.fsn.hu/~airween/mysql_auth/这个网址上的mysql_auth提供的作mysql认证,但是我在mysql_auth-0.5编译总是出错

gcc -I/usr/local/include -L/usr/local/lib -c src/mysql_auth.c

src/mysql_auth.c:24: mysql/mysql.h: No such file or directory

*** Error code 1

Stop in /tmp/mysql_auth-0.5.

这个错误是我在freebsd中编译得到的。

[root@squid mysql_auth-0.5]# make

gcc -I/usr/local/include -L/usr/local/lib -c -o src/mysql_auth.o src/mysql_auth.c

src/mysql_auth.c:24:25: mysql/mysql.h: No such file or directory

src/mysql_auth.c: In function `main':

src/mysql_auth.c:37: `MYSQL' undeclared (first use in this function)

src/mysql_auth.c:37: (Each undeclared identifier is reported only once

src/mysql_auth.c:37: for each function it appears in.)

src/mysql_auth.c:37: parse error before "connect"

src/mysql_auth.c:38: `MYSQL_RES' undeclared (first use in this function)

src/mysql_auth.c:38: `result' undeclared (first use in this function)

src/mysql_auth.c:39: `MYSQL_ROW' undeclared (first use in this function)

src/mysql_auth.c:39: parse error before "row"

src/mysql_auth.c:64: `connect' undeclared (first use in this function)

src/mysql_auth.c:188: `row' undeclared (first use in this function)

make: *** [src/mysql_auth.o] Error 1

这个错误是在redhat中得到的,那位大侠帮忙看看把

Make any changes to the source code you need. For example, set up correctly place of configuration file. See that in define.h.

Review the Makefile, and modify based on target platform or site requirements. Setting up the mysql.h header and libmysqlclients.a places. Setting up your squid user and group accounts, and squid root directory.

Setting up correctly the permissions of mysql_auth.conf (mode 600)!

This is very important! This file included a mysql account, with select, update, insert and delete privileges!

Also very important: if you use mysql.log, be very carefull! It contains all transactions! For example:

52 Query UPDATE data SET password = password ("1234") WHERE user LIKE 'airween'

After when you edit what you want, type 'make', then 'make install', then 'make clean'.

'Make install' will put 'mysql_auth' into /usr/local/squid/bin by default, and 'mysql_auth.conf' to /usr/local/squid/etc.

这段话是说明怎么安装的,我有些东西我看的不是很明白的,也希望那位可以详细解释一下。谢谢。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航