SkipHuffman has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install DBI on an XP laptop under Cygwin. CPAN install failed. Looks like it is failing while trying to install prerequisite Net:Daemon (and perhaps other things). So I tried to install just that.

cpan[6]> test Net::Daemon Running test for module 'Net::Daemon' Running make for M/MN/MNOONING/Net-Daemon/Net-Daemon-0.43.tar.gz CPAN.pm: Going to build M/MN/MNOONING/Net-Daemon/Net-Daemon-0.43.tar +.gz Checking if your kit is complete... Looks good Writing Makefile for Net::Daemon cp lib/Net/Daemon/Test.pm blib/lib/Net/Daemon/Test.pm cp lib/Net/Daemon.pm blib/lib/Net/Daemon.pm cp lib/Net/Daemon/Log.pm blib/lib/Net/Daemon/Log.pm MNOONING/Net-Daemon/Net-Daemon-0.43.tar.gz /usr/bin/make -- OK Running make test /usr/bin/perl5.10.0.exe "-MExtUtils::Command::MM" "-e" "test_harness(0 +, 'blib/li b', 'blib/arch')" t/*.t t/base............ok t/config..........no connection to syslog available - /dev/log is not a socket at blib/lib/Net/Daemon/Log.pm line +114 Server process didn't create a file 'ndtest.prt'. at /cygdrive/c/Docum +ents and S ettings/huffman_s/.cpan/build/Net-Daemon-2UzCir/blib/lib/Net/Daemon/Te +st.pm line 317. t/config.......... Dubious, test returned 2 (wstat 512, 0x200) Failed 5/5 subtests t/fork............no connection to syslog available - /dev/log is not a socket at blib/lib/Net/Daemon/Log.pm line +114 Server process didn't create a file 'ndtest.prt'. at /cygdrive/c/Docum +ents and S ettings/huffman_s/.cpan/build/Net-Daemon-2UzCir/blib/lib/Net/Daemon/Te +st.pm line 317. t/fork............ Failed 5/5 subtests t/forkm...........Unexpected return from Bind(). Server died: no connection to syslog available - /dev/log is not a socket at blib/lib/Net/Daemon/Log.pm line +114 Client: Error Cannot connect: Connection refused at t/forkm.t line 93.

Not sure why this would be. Any suggestions would be welcome. Thanks

Skip

Replies are listed 'Best First'.
Re: Trouble installing DBI::Bundle
by zwon (Abbot) on Dec 29, 2009 at 19:21 UTC

    That's because you doesn't have syslog running or maybe cygwin doesn't emulate local sockets, not sure, I have no experience with cygwin. But AFAIK Net::Daemon is required only for DBD::Proxy, so if you don't need it, you can safely ignore failed tests and force installation of Net::Daemon.

      Thanks. I am learning more about Cygwin than I thought there was to know. I am going to upgrade Cygwin first and see if I can enable syslogd

      Skip

      PS: Dear World, why the heck isn't syslog DEFAULT in cygwin. Seems like a pretty darn core function to me.

        I'm actually not sure that the problem is in Cygwin, it maybe problem with Net::Daemon itself, or with some module it uses, particularly try to update Sys::Syslog. Also check if Cygwin's syslog.exe works, it should log messages into windows event log. Or, as I already told you, just put off with it, most likely you don't need it. Just install DBI instead of Bundle::DBI.