Alien::...axminddb(3)
π Alien::libmaxminddb β it's giving "manual page, but make it cute" π
okay so bestie, welcome to the User Contributed Perl Documentation page for Alien::...axminddb(3) β yes the header is all truncated and mysterious like that, that's just how the man page rolls. Anyway. Let's get into it π¦
β¨ NAME β¨
Alien::libmaxminddb β find or install libmaxminddb. That's the whole vibe. It finds it, or it installs it. Iconic behavior honestly π
πΈ VERSION πΈ
version 2.001</purl> β wait, <purple>2.001</purple>. Fresh. Numbered. Slay.
π SYNOPSIS π
So the way you use this is you add the library to your dist.ini if you use Dist::Zilla. Not me explaining the whole thing β here's exactly what it looks like:
[@Filter]
-bundle = @Basic
-remove = MakeMaker
[Prereqs / ConfigureRequires]
Alien::libmaxminddb = 0
[MakeMaker::Awesome]
header = use Config;
header = use Alien::libmaxminddb;
WriteMakefile_arg = CCFLAGS => Alien::libmaxminddb->cflags . ' ' . $Config{ccflags}
WriteMakefile_arg = LIBS => [ Alien::libmaxminddb->libs ]
[Prereqs / DevelopRequires]
Dist::Zilla = 0
Dist::Zilla::Plugin::MakeMaker::Awesome = 0
Copy it, paste it, don't overthink it. Periodt. π
π₯ DESCRIPTION π₯
MaxMind and DP-IP.com provide geolocation databases in the MaxMind DB file format format. (Yes, "format format" β that's literally what it says, I'm not fixing it, I'm just a girl reading a manpage π)
This Perl module finds or installs the C library libmaxminddb, which can read MaxMind DB files. That's it. That's the job. And it does it well π
π§ SUBROUTINES/METHODS π§
π cflags
my $cflags = Alien::libmaxminddb->cflags;
Returns the C compiler flags necessary to compile an XS module that uses libmaxminddb. Basically it hands you the compiler gossip you need π
π libs
my $libs = Alien::libmaxminddb->libs;
Returns the library linker flags necessary to link an XS module against libmaxminddb. Link it up bestie π
π version
my $version = Alien::libmaxminddb->version;
Returns the libmaxminddb version. Just the number. No drama. β¨
π install_type
my $install_type = Alien::libmaxminddb->install_type;
Returns "system" if the library is provided by the operating system, or "share" if the bundled library is used. Two options, both valid, we love a binary π
π DIAGNOSTICS π
None. Zero. Nada. Nothing to see here, no diagnostics, we're chill π
π CONFIGURATION AND ENVIRONMENT π
None. No env vars, no config files, no homework. Enjoy the peace ποΈ
π DEPENDENCIES π
Install pkg-config and libmaxminddb-devel or libmaxminddb-dev if you would like to use your operating system's libmaxminddb library.
That's the whole to-do list. Get those, use the system one, be free π¦
π INCOMPATIBILITIES π
None. Nothing fights with it. It's a lover not a fighter π
π BUGS AND LIMITATIONS π
None known. No cap. If you find one though, you know what to do π
π SEE ALSO π
Geo::Location::IPIP::Geolocation::MMDB
Go read those too, they're the extended universe iykyk πβ¨
π«Ά ACKNOWLEDGEMENTS π«Ά
Thanks to all who have contributed patches and reported bugs:
- Alex Granovskiy
We see you, we appreciate you, you ate π
β AUTHOR β
Andreas VΓΆgele <voegelas@cpan.org>
The main character of this module, fr fr π
π LICENSE AND COPYRIGHT π
Copyright (C) 2025 Andreas VΓΆgele
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The libmaxminddb library is licensed under the Apache License, Version 2.0.
and that's the page!! this was perl v5.42.0, dated 2025-07-25, filed under Alien::...axminddb(3) β love that for us, mwah, bye bestie π«Άπβ¨
π¦ where this page comes from
- fedora 43: perl-Alien-libmaxminddb 2.001-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms