Open
Description
Describe the bug
Generating a DBM file for use by RewriteMap in Apache (httpd) fails for the default configuration.
To Reproduce
Steps to reproduce the behavior:
- Install
httpd
withsudo dnf install httpd
- Generate an empty file
touch test.txt
- Try to convert it to a DBM file
httxt2dbm -i test.txt -o test.map
- Command fails with
Error: Cannot open output DBM 'test.map': (20019) DSO load failed
Expected behavior
Command should generate a valid map for RewriteMap.
Screenshots
Output of httxt2dbm
, note that berkeley DB is listed as unavailable
httxt2dbm -- Program to Create DBM Files for use by RewriteMap
Usage: httxt2dbm [-v] [-f format] -i SOURCE_TXT -o OUTPUT_DBM
Options:
-v More verbose output
-i Source Text File. If '-', use stdin.
-o Output DBM.
-f DBM Format. If not specified, will use the APR Default.
GDBM for GDBM files (unavailable)
SDBM for SDBM files (available)
DB for berkeley DB files (unavailable)
NDBM for NDBM files (unavailable)
default for the default DBM type
Desktop (please complete the following information):
- OS: al2023-ami-2023.0.20230329.0-kernel-6.1-x86_64
Additional context
On Amazon Linux 2 the command does succeed, and berkeley DB is shown as available:
Usage: httxt2dbm [-v] [-f format] -i SOURCE_TXT -o OUTPUT_DBM
Options:
-v More verbose output
-i Source Text File. If '-', use stdin.
-o Output DBM.
-f DBM Format. If not specified, will use the APR Default.
GDBM for GDBM files (unavailable)
SDBM for SDBM files (available)
DB for berkeley DB files (available)
NDBM for NDBM files (unavailable)
default for the default DBM type
Comparing the packages, on AL2 the package apr-util-bdb
is available, but this package is not included in Amazon Linux 2023.