Multiplay Labs

tech hits and tips from Multiplay

Archive for the ‘Cygwin’ Category

LWP::Protocol::https::Socket: socket: Address family not supported by protocol

without comments

When trying to build LWP::Protocol::https to add https support to libwww the tests fail with:-

LWP::Protocol::https::Socket: socket: Address family not supported by protocol at /usr/lib/perl5/site_perl/5.10/LWP/Protocol/ line 51

After some investigation it turns out there’s nothing wrong with LWP::Protocol::https but IO::Socket::INET6 was broken and trying to interpret : as an IPv6 address instead of IPv4 address + port. Updating to IO::Socket::INET6 v2.69 from the previous v2.57 fixed the issue.

This was encountered under cygwin on Windows in case this is a key factor.

Written by Dilbert

May 24th, 2012 at 7:56 pm

Posted in Code,Cygwin,Perl,Windows

Building DBD::mysql under Cygwin with mysql 5.5

without comments

The following instructions will enable you to build DBD::mysql under Cygwin using mysql 5.5 sources.

1. First download the latest mysql source from
2. Expand the source and change into the directory e.g. tar -xzf mysql-5.5.21.tar.gz; cd mysql-5.5.21
3. Prepare the Makefiles using cmake, we need to disable shared libs to avoid having to mess with LD_LIBRARY_PATH.


4. Build the client and libs:

make mysqlclient libmysql

4.1. If the build errors with duplicate definition for dtoa, then you can fix it by commenting out the cygwin definition in: /usr/include/stdlib.h (dont forget to remove the comment when done)
5. Install mysql components

sh -c 'for dir in client libmysql scripts include; do cd $dir; make install; cd -; done'

6. Build and install DBD::mysql via CPAN, if you don’t have a running mysql instance you may need to “force” install

perl -MCPAN -e shell
cpan[1]> install DBD::mysql

Written by Dilbert

February 29th, 2012 at 9:29 pm

Posted in Cygwin,Perl

Tagged with , , ,