Alien::...axminddb(3)

πŸ“¦
version 2.001 Β· 2 versions
, in fedora 43

πŸ’– 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::IP
  • IP::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 πŸ’…


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