Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: inet_pton on Windows Perl

by syphilis (Chancellor)
on Aug 16, 2013 at 13:08 UTC ( #1049737=note: print w/replies, xml ) Need Help??


in reply to Re^2: inet_pton on Windows Perl
in thread inet_pton on Windows Perl

Those combinations would fail to even build Math::Int128

For Math::Int128 you need a 64-bit compiler, and hence a 64-bit build of perl.
Even then, the build is failing due to a bug in either perl itself or the Math-Int128-0.12 source. (Last I heard, the Math::Int128 author was investigating.)

If you have a 64-bit build of Windows perl you can install Math-Int128-0.12 using ppm:
ppm install http://www.sisyphusion.tk/ppm/Math-Int128.ppd --force
That package was built using this patch. (If you want to build Math-Int128-0.12 from source yourself, use that patch in preference to the patch supplied in the afore mentioned bug report.)

And keep an eye out for Math-Int128-0.13 which will hopefully build straight out of the box with MinGW ports of 64-bit gcc.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: inet_pton on Windows Perl
by atreyu (Sexton) on Aug 26, 2013 at 21:25 UTC

    Okay, I tried that Math-Int128 package and it did install successfully on my Active Perl 5.16.3, 64-bit. Thanks for that.

    However, I come back to the same problem: the last package I need to install is MaxMind::DB::Reader, and it requires version 0.12 of Net::Works. The Active repo has version 0.01 so I use cpan to try and install Net::Works 0.12 and dmake barfs on the same `inet_pton' errors:

    C:\apps\Perl64\cpan\build\Net-Works-0.12-8Cw8vA>dmake test C:\apps\Perl64\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harne +ss(0, 'blib\lib', 'blib\arch')" t/*.t t/Address.t ................ Socket::inet_pton not implemented on this + architecture at C:\apps\Perl64\cpan\build\Net-Wor ks-0.12-8Cw8vA\blib\lib/Net/Works/Address.pm line 67. t/Address.t ................ Dubious, test returned 255 (wstat 65280, +0xff00)
    I am using the gcc (rubenvb-4.5.4) and dmake (4.12-20090907) provided by Active's PPM.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049737]
help
Chatterbox?
[Corion]: marioroy: Oh, that's always cool, having API-compatible modules. This makes testing and comparing things much easier
[marioroy]: IPC in MCE::Shared can handle 400k (sends) per second. That's seems a lot for being a pure-Perl module. After making the release, will come back and post a solution for a node by a fellow wanting faster logging.
[Corion]: While working on WWW::Mechanize:: Chrome, I had the suspicion that AnyEvent was doing something wrong, but I was able to swap it out for Mojolicious and the error persisted.
[Corion]: Of course, the error was in my own code ;)
[marioroy]: Corion, start and start_child in MCE::Hobo::Manager return a MCE::Hobo object, whereas P::FM returns the PID. I can have it return the PID though. I tried Hobo::Manager with several P::FM modules, just changed P::FM to MCE::Hobo::Manager and it works.
[marioroy]: I also have a Hobo driver for Forklift allowing folks to use in multiple classes, no conflicts with one another. That's not possible for P::FM.
[Discipulus]: congrats marioroy!
[marioroy]: CORE::wait works well eventhough multiple instances or classes using Hobo::Manager.
[Corion]: marioroy: I'm not sure what the normal use for the PID is in P:FM, but I guess that most programs just ignore or log it

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-05-26 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?