[asterisk-users] MYSQL ADDON INSTALLATION ERROR

Gareth Blades list-asterisk at skycomuk.com
Wed Oct 6 05:37:29 CDT 2010


Rizwan Hisham wrote:
> Hi All,
> Please refresh my memory. I am trying to install asterisk after 2 years. 
> I hav'nt used it since 2008 (version 1.4.2). Now I am trying to install 
> 1.8.0-rc2 on centos 5.5 but getting the following errors.
> 
> app_mysql.c:33:25: error: mysql/mysql.h: No such file or directory
> app_mysql.c: In function ‘mysql_ds_destroy’:
> app_mysql.c:135: warning: implicit declaration of function ‘mysql_close’
> app_mysql.c:138: warning: implicit declaration of function 
> ‘mysql_free_result’
> app_mysql.c: In function ‘aMYSQL_connect’:
> app_mysql.c:319: error: ‘MYSQL’ undeclared (first use in this function)
> app_mysql.c:319: error: (Each undeclared identifier is reported only once
> app_mysql.c:319: error: for each function it appears in.)
> app_mysql.c:319: error: ‘mysql’ undeclared (first use in this function)
> 
> I think i have seen these errors before and did manage to get rid of 
> them but I cant remember how i did it and even dont remember the reason 
> for these errors. Looks like a header file for mysql addon is missing 
> which is actually missing (i have checked). How am I suppose to find it?
> 
> Plz help.
> 
> -- 
> Best Regards
> Rizwan Qureshi
> 
> 

Make sure you have the mysql-devel package installed.



More information about the asterisk-users mailing list