Simon Brown
2004-Mar-28 17:13 UTC
[Asterisk-Users] Error installing/compiling cdr_mysql addon
When I try to compile the cdr_mysql addon, I get the following error: [root@PBX asterisk-addons]# make cc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -lmysqlclient -lz -L/usr/local/mysql/lib /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [cdr_addon_mysql.so] Error 1 I have MySQL installed and have tested it - it is working, I can create databases etc. TIA Simon ----- This mail was content checked for malicious code and viruses by GFI MailSecurity.
Zac Amsler
2004-Mar-28 17:19 UTC
[Asterisk-Users] Error installing/compiling cdr_mysql addon
You will need to install libmysqlclient10 Zac -------------------------- Zac Amsler, Technical Team WNOC.COM <http://www.wnoc.com> Phone: (801) 606-8047 -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Simon Brown Sent: Sunday, March 28, 2004 6:13 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Error installing/compiling cdr_mysql addon When I try to compile the cdr_mysql addon, I get the following error: [root@PBX asterisk-addons]# make cc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -lmysqlclient -lz -L/usr/local/mysql/lib /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [cdr_addon_mysql.so] Error 1 I have MySQL installed and have tested it - it is working, I can create databases etc. TIA Simon ----- This mail was content checked for malicious code and viruses by GFI MailSecurity. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Simon Brown wrote:> I have MySQL installed and have tested it - it is working, I can create > databases etc.You need the dev headers/libs not just the main binaries... most distributions install these separately if you only need the mysql server hooked up to php binaries... -- Best regards, Duane http://www.cacert.org - Free Security Certificates http://www.nodedb.com - Think globally, network locally http://www.sydneywireless.com - Telecommunications Freedom http://happysnapper.com.au - Sell your photos over the net!
Michael Shuler
2004-Mar-28 18:58 UTC
[Asterisk-Users] Error installing/compiling cdr_mysql addon
Actually, its MUCH easier to use the unixODBC and cdr_odbc.so modules. That way if you ever change you database to something other than MySQL you wont have to make any major changes to Asterisk. Also, since the ODBC stuff is in the main code instead of the "addons" you can generally expect it to be better maintained. ---------------------------------------- Michael Shuler, C.E.O. BitWise Systems, Inc. 1301 W. Pioneer Parkway Peoria, IL 61615 Office: (217) 585-0357 Cell: (309) 657-6365 Fax: (309) 213-3500 E-Mail: mike@bwsys.net Customer Service: (877) 976-0711> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Simon Brown > Sent: Sunday, March 28, 2004 6:13 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Error installing/compiling cdr_mysql addon > > > When I try to compile the cdr_mysql addon, I get the following error: > > [root@PBX asterisk-addons]# make > cc -shared -Xlinker -x -o cdr_addon_mysql.so > cdr_addon_mysql.o -lmysqlclient > -lz -L/usr/local/mysql/lib > /usr/bin/ld: cannot find -lmysqlclient > collect2: ld returned 1 exit status > make: *** [cdr_addon_mysql.so] Error 1 > > I have MySQL installed and have tested it - it is working, I > can create > databases etc. > > TIA > > Simon > > ----- > This mail was content checked for malicious code and viruses > by GFI MailSecurity. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Sam Bingner
2004-Mar-28 19:40 UTC
[Asterisk-Users] Error installing/compiling cdr_mysql addon
You need to install the "mysql-devel" rpm if you use redhat Sam -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Simon Brown Sent: Sunday, March 28, 2004 2:13 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Error installing/compiling cdr_mysql addon When I try to compile the cdr_mysql addon, I get the following error: [root@PBX asterisk-addons]# make cc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -lmysqlclient -lz -L/usr/local/mysql/lib /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [cdr_addon_mysql.so] Error 1 I have MySQL installed and have tested it - it is working, I can create databases etc. TIA Simon ----- This mail was content checked for malicious code and viruses by GFI MailSecurity. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3047 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040328/ddb58d56/smime.bin