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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101006/619c6467/attachment.htm
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.
Muhammad Nuzaihan Kamalluddin
2010-Oct-06  10:38 UTC
[asterisk-users] 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
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.)
<muhammad at asfasystems.com>
sub   4096R/97E5CBBD 2010-07-10
On 06-Oct-2010, at 6:35 PM, 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
> 
> 
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20101006/b1faa182/attachment.htm
On 6 Oct 2010, at 11:35, 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. > <snip> > Plz help.You need mysql-devel. You might also find that most things are case sensitive, maybe your malfunctioning caps-lock is causing problems? ;) S