Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I ve got problem with perl script for asterisk. I've investigate that when tping use DBI; -- all statcks. After that i added:

my @driver_names = DBI->available_drivers;
foreach (@driver_names){print $MYFILE "Driver = $_\n";} 

**OUTPUT**
Driver = DBM
Driver = ExampleP
Driver = File
Driver = Gofer
Driver = Proxy
Driver = Sponge

There is no mysql driver.

I've installed via cpan DBD::mysql -- but no luck. Im using percona mysql 5.5 on ubuntu 12.04 i386, v5.14.2

share|improve this question

1 Answer 1

What do you get for output if you turn the verbosity and debug output up? Also, I'd suggest running asterisk from your session rather than init.d to test the debug output.

share|improve this answer
    
print nothing. just ${SYSTEMSTATUS}=APPERROR. Ive made script more simple: like open (MYFILE, '/tmp/test_ast.log'); and print something there. But script isnt started. cmd System refuses to run perl script as i suppose. –  MealstroM Aug 10 '12 at 7:24
    
I've figured out where is a problem. it is coused by Log::Log4perl; second -- there is no mysql driver. Ill update my question –  MealstroM Aug 10 '12 at 11:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.