MYSQL ADDON INSTALLATION ERROR

Home » Asterisk Users » MYSQL ADDON INSTALLATION ERROR
Asterisk Users 4 Comments

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.

4 thoughts on - MYSQL ADDON INSTALLATION ERROR

  • Hi Ridwan,

    You would need to install mysql-devel via yum.

    Best Regards,
    Muhammad Nuzaihan Kamal
    Network Consultant
    Mobile: +65 97473874

    Asfa Systems Pte Ltd
    91, Alps Avenue. #03-10. Singapore 498787

    Tel: +65 62538211
    Fax: +65 62504814
    http://www.asfasystems.com.sg

    pub 4096R/36630777 2010-07-10
    Key fingerprint = 670A 4D60 0A2D 43A1 2FE0 DFDA D3A9 3F32 3663 0777
    uid Muhammad Nuzaihan Kamalluddin (Asfa Systems Pte. Ltd.)
    sub 4096R/97E5CBBD 2010-07-10

  • You need mysql-devel. You might also find that most things are case sensitive, maybe your malfunctioning caps-lock is causing problems? 😉

    S