Gundemarie Scholz
2005-Jun-03 05:27 UTC
[Asterisk-Users] Installation of Asterisk addons 1.0.7 fails (longish)
Good morning! Sorry if this gets posted twice, I tried via NNTP before, and it didn't seem to work. After having downloaded the tarball for Asterisk addons via FTP from ftp.asterisk.org I am trying to install it following the instructions on http://www.voip-info.org/wiki-Asterisk+addon+asterisk-addons, so far without success. Could somebody maybe advise where I am taking the wrong path? System: Suse 9.3, kernel 2.6 MySQL is installed and running. I guess "Ensure your root@localhost user does not have a password" means "an empty password" rather than "no password", and it is meant to be for the MySQL database user root. Trying to run the command perl -MCPAN -e "install DBD::mysql" produces lots of errors: "Can't exec "mysql_config": No such file or directory" etc. Being completely unknowing about Perl I started Yast to see if maybe there I could take a different way, and it seems the packet "perl-DBD-mysql" is already installed, so I wonder if I need to take this step at all. Leaving it out for now "make clean" worked fine, "make install" gave me the following errors: app_addon_sql_mysql.c:31:25: mysql/mysql.h: No such file or directory cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory cdr_addon_mysql.c:33:19: mysql.h: No such file or directory cdr_addon_mysql.c:34:20: errmsg.h: No such file or directory Adding the lines CFLAGS+=-I../asterisk-1.0.7 CFLAGS+=-I/usr/include/php/ext/mysql/libmysql fixed them though, and "make install" didn't produce any further errors. Following the instructions on http://www.voip-info.org/wiki-Asterisk+cdr+mysql the file /etc/asterisk/cdr_mysql.conf does exist, and I have added to modules.conf the following line: load => cdr_addon_mysql.so When trying to starting Asterisk now I get the following errors: WARNING[8316]: loader.c:258 ast_load_resource: /usr/lib/asterisk/modules/cdr_addon_mysql.so: cannot open shared object file: No such file or directory WARNING[8316]: loader.c:391 load_modules: Loading module cdr_addon_mysql.so failed! Warning, flexibel rate not heavily tested! Ouch ... error while writing audio data: : Broken pipe Shouldn't the needed file cdr_addon_mysql.so have been created and placed in the right directory during the installation process? In case you need any additional information or output - just ask. Best regards, Gunde