Skip to content

Medusa fails to compile on fresh kali install #3308

Description

@TheToddLuci0

Describe the bug
Installing medusa via bbot fails due to missing openssl headers on a fresh kali install. Manutally installing libssl-dev fixes the issue.

The issue seems to be that the ansible for the module doesn't include the ssl headers. I'd be tempted to open a PR just adding libssl-dev, but that only works on Debian/Ubuntu based distros, most distros seem to distribute it as openssl-devel or similar.

"package": {
"name": [
"autoconf",
"automake",
"libtool",
"gcc",
"make",
],

BBOT Command
bbot --install-all-deps

OS, BBOT Installation Method + Version

Installed via pipx on a fresh Kali install on AWS ec2.

┌──(root㉿kali)-[~]
└─# bbot --version                              
  ______  _____   ____ _______
 |  ___ \|  __ \ / __ \__   __|
 | |___) | |__) | |  | | | |
 |  ___ <|  __ <| |  | | | |
 | |___) | |__) | |__| | | |
 |______/|_____/ \____/  |_|
 BIGHUGE BLS OSINT TOOL 3.0.0

www.blacklanternsecurity.com/bbot

3.0.0
                                                                                                                                                                                                                                                                
┌──(root㉿kali)-[~]
└─# cat /etc/os-release           
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION_ID="2026.2"
VERSION="2026.2"
VERSION_CODENAME=kali-rolling
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"

BBOT Config
N/A

Logs/Screenshots

Relevant build errors ```json { "uuid": "ac6e8e95-007c-4943-9f29-8b5bd1e1a0d6", "counter": 20, "stdout": "\u001b[0;31m[ERROR]: Task failed: Module failed: The command exited with a non-zero return code.\u001b[0m\r\n\u001b[0;31mOrigin: /root/.bbot/cache/depsinstaller/playbook_f15c6a731fa04c1a55aebb2acd15c0d765c2ead9/project/main.json\u001b[0m\r\n\u 001b[0;31m\u001b[0m\r\n\u001b[0;31mfatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": [\"./configure\", \"--prefix=/root/.bbot/temp/medusa/build\"], \"delta\": \"0:00:01.209460\", \"end\": \"2026-07-13 15:00:04.604180\", \"msg\": \"The command exi ted with a non-zero return code.\", \"rc\": 1, \"start\": \"2026-07-13 15:00:03.394720\", \"stderr\": \"configure: WARNING: *** LibCrypto may be required for *BSD ***\\nconfigure: error: *** OpenSSL header files required for SSL support. ***\\n\\n Man y of the Medusa modules depend on the OpenSSL library and header files. If\\n multiple modules are unexpectedly disabled, this is likely the cause. Make sure\\n to install libssl-dev, openssl-devel or whatever package your distribution uses\\n to distribute these files.\\n\\n If the headers are installed in a non-standard location, specify the path with\\n \\\"--with-ssl\\\".\\n\\n \", \"stderr_lines\": [\"configure: WARNING: *** LibCrypto may be required for *BSD ***\", \"configure: error: *** OpenSSL header files required for SSL support. ***\", \"\", \" Many of the Medusa modules depend on the OpenSSL library and header files. If\", \" multiple modules are unexpectedly disabled, this is likely the cause. Make sure\", \" to insta ll libssl-dev, openssl-devel or whatever package your distribution uses\", \" to distribute these files.\", \"\", \" If the headers are installed in a non-standard location, specify the path with\", \" \\\"--with-ssl\\\".\", \"\", \" \"], \"stdou t\": \"checking build system type... x86_64-pc-linux-gnu\\nchecking host system type... x86_64-pc-linux-gnu\\nchecking target system type... x86_64-pc-linux-gnu\\nchecking for a BSD-compatible install... /usr/bin/install -c\\nchecking whether sleep support s fractional seconds... yes\\nchecking filesystem timestamp resolution... 0.01\\nchecking whether build environment is sane... yes\\nchecking for a race-free mkdir -p... /usr/bin/mkdir -p\\nchecking for gawk... no\\nchecking for mawk... mawk\\nchecking whe ther make sets $(MAKE)... yes\\nchecking whether make supports nested variables... yes\\nchecking xargs -n works... yes\\nchecking whether UID '0' is supported by ustar format... yes\\nchecking whether GID '0' is supported by ustar format... yes\\nchecking how to create a ustar tar archive... gnutar\\nchecking for gcc... gcc\\nchecking whether the C compiler works... yes\\nchecking for C compiler default output file name... a.out\\nchecking for suffix of executables... \\nchecking whether we are cross compi ling... no\\nchecking for suffix of object files... o\\nchecking whether the compiler supports GNU C... yes\\nchecking whether gcc accepts -g... yes\\nchecking for gcc option to enable C23 features... none needed\\nchecking whether gcc understands -c and - o together... yes\\nchecking for stdio.h... yes\\nchecking for stdlib.h... yes\\nchecking for string.h... yes\\nchecking for inttypes.h... yes\\nchecking for stdint.h... yes\\nchecking for strings.h... yes\\nchecking for sys/stat.h... yes\\nchecking for sy s/types.h... yes\\nchecking for unistd.h... yes\\nchecking size of int... 4\\nchecking size of long... 8\\nchecking size of long long... 8\\nchecking size of short... 2\\nchecking whether to enable debugging... yes\\nconfigure: checking for pthread support ...\\nchecking for main in -lpthread... yes\\nconfigure: checking for dlopen/dlclose...\\nchecking for dlclose in -ldl... yes\\nchecking for library containing clock_gettime... none required\\nchecking for clock_gettime... yes\\nconfigure: checking for Ope nSSL Library and Header files...\\nchecking /usr//include/openssl/ssl.h... not found\\nchecking /usr/ssl/include/openssl/ssl.h... not found\\nchecking /usr/openssl/include/openssl/ssl.h... not found\\nchecking /usr/local//include/openssl/ssl.h... not found \\nchecking /usr/local/ssl/include/openssl/ssl.h... not found\\nchecking /usr/local/openssl/include/openssl/ssl.h... not found\\nchecking /usr/lib//include/openssl/ssl.h... not found\\nchecking /usr/lib/ssl/include/openssl/ssl.h... not found\\nchecking /us r/lib/openssl/include/openssl/ssl.h... not found\\nchecking /usr/pkg//include/openssl/ssl.h... not found\\nchecking /usr/pkg/ssl/include/openssl/ssl.h... not found\\nchecking /usr/pkg/openssl/include/openssl/ssl.h... not found\\nchecking /opt/local//includ e/openssl/ssl.h... not found\\nchecking /opt/local/ssl/include/openssl/ssl.h... not found\\nchecking /opt/local/openssl/include/openssl/ssl.h... not found\\nchecking /usr/local/opt//include/openssl/ssl.h... not found\\nchecking /usr/local/opt/ssl/include/o penssl/ssl.h... not found\\nchecking /usr/local/opt/openssl/include/openssl/ssl.h... not found\\nchecking /opt//include/openssl/ssl.h... not found\\nchecking /opt/ssl/include/openssl/ssl.h... not found\\nchecking /opt/openssl/include/openssl/ssl.h... not f ound\\nchecking for CRYPTO_lock in -lcrypto... no\\nchecking for openssl/ssl.h... no\", \"stdout_lines\": [\"checking build system type... x86_64-pc-linux-gnu\", \"checking host system type... x86_64-pc-linux-gnu\", \"checking target system type... x86_64- pc-linux-gnu\", \"checking for a BSD-compatible install... /usr/bin/install -c\", \"checking whether sleep supports fractional seconds... yes\", \"checking filesystem timestamp resolution... 0.01\", \"checking whether build environment is sane... yes\", \"ound\\nchecking for CRYPTO_lock in -lcrypto... no\\nchecking for openssl/ssl.h... no\", \"stdout_lines\": [\"checking build system type... x86_64-pc-linux-gnu\", \"checking host system type... x86_64-pc-linux-gnu\", \"checking target syste15:00 [1574/1921] pc-linux-gnu\", \"checking for a BSD-compatible install... /usr/bin/install -c\", \"checking whether sleep supports fractional seconds... yes\", \"checking filesystem timestamp resolution... 0.01\", \"checking whether build environment is sane... yes\", \" checking for a race-free mkdir -p... /usr/bin/mkdir -p\", \"checking for gawk... no\", \"checking for mawk... mawk\", \"checking whether make sets $(MAKE)... yes\", \"checking whether make supports nested variables... yes\", \"checking xargs -n works... ye s\", \"checking whether UID '0' is supported by ustar format... yes\", \"checking whether GID '0' is supported by ustar format... yes\", \"checking how to create a ustar tar archive... gnutar\", \"checking for gcc... gcc\", \"checking whether the C compile r works... yes\", \"checking for C compiler default output file name... a.out\", \"checking for suffix of executables... \", \"checking whether we are cross compiling... no\", \"checking for suffix of object files... o\", \"checking whether the compiler su pports GNU C... yes\", \"checking whether gcc accepts -g... yes\", \"checking for gcc option to enable C23 features... none needed\", \"checking whether gcc understands -c and -o together... yes\", \"checking for stdio.h... yes\", \"checking for stdlib.h.. . yes\", \"checking for string.h... yes\", \"checking for inttypes.h... yes\", \"checking for stdint.h... yes\", \"checking for strings.h... yes\", \"checking for sys/stat.h... yes\", \"checking for sys/types.h... yes\", \"checking for unistd.h... yes\", \ "checking size of int... 4\", \"checking size of long... 8\", \"checking size of long long... 8\", \"checking size of short... 2\", \"checking whether to enable debugging... yes\", \"configure: checking for pthread support...\", \"checking for main in -lpt hread... yes\", \"configure: checking for dlopen/dlclose...\", \"checking for dlclose in -ldl... yes\", \"checking for library containing clock_gettime... none required\", \"checking for clock_gettime... yes\", \"configure: checking for OpenSSL Library and Header files...\", \"checking /usr//include/openssl/ssl.h... not found\", \"checking /usr/ssl/include/openssl/ssl.h... not found\", \"checking /usr/openssl/include/openssl/ssl.h... not found\", \"checking /usr/local//include/openssl/ssl.h... not found\", \"checking /usr/local/ssl/include/openssl/ssl.h... not found\", \"checking /usr/local/openssl/include/openssl/ssl.h... not found\", \"checking /usr/lib//include/openssl/ssl.h... not found\", \"checking /usr/lib/ssl/include/openssl/ssl.h... not found\", \"c hecking /usr/lib/openssl/include/openssl/ssl.h... not found\", \"checking /usr/pkg//include/openssl/ssl.h... not found\", \"checking /usr/pkg/ssl/include/openssl/ssl.h... not found\", \"checking /usr/pkg/openssl/include/openssl/ssl.h... not found\", \"chec king /opt/local//include/openssl/ssl.h... not found\", \"checking /opt/local/ssl/include/openssl/ssl.h... not found\", \"checking /opt/local/openssl/include/openssl/ssl.h... not found\", \"checking /usr/local/opt//include/openssl/ssl.h... not found\", \"ch ecking /usr/local/opt/ssl/include/openssl/ssl.h... not found\", \"checking /usr/local/opt/openssl/include/openssl/ssl.h... not found\", \"checking /opt//include/openssl/ssl.h... not found\", \"checking /opt/ssl/include/openssl/ssl.h... not found\", \"check ing /opt/openssl/include/openssl/ssl.h... not found\", \"checking for CRYPTO_lock in -lcrypto... no\", \"checking for openssl/ssl.h... no\"]}\u001b[0m", "start_line": 19, "end_line": 23, "runner_ident": "a238a2c1-74aa-4dd7-9ebc-26bc0ea99476", "event": "runner_on_failed", "pid": 33255, "created": "2026-07-13T20:00:04.637284+00:00", "parent_uuid": "0636ef77-0705-920a-08ba-000000000008", "event_data": { "playbook": "/root/.bbot/cache/depsinstaller/playbook_f15c6a731fa04c1a55aebb2acd15c0d765c2ead9/project/main.json", "playbook_uuid": "d10d2c05-e0cb-4fb3-b9e1-8127babfb9c4", "play": "all", "play_uuid": "0636ef77-0705-920a-08ba-000000000002", "play_pattern": "all", "task": "Build medusa: configure", "task_uuid": "0636ef77-0705-920a-08ba-000000000008", "task_action": "command", "resolved_action": "ansible.builtin.command", "task_args": "", "task_path": "/root/.bbot/cache/depsinstaller/playbook_f15c6a731fa04c1a55aebb2acd15c0d765c2ead9/project/main.json:1", "host": "localhost", "remote_addr": "localhost", "res": { "changed": true, "exception": "(traceback unavailable)", "msg": "The command exited with a non-zero return code.", "rc": 1, "stdout": "checking build system type... x86_64-pc-linux-gnu\nchecking host system type... x86_64-pc-linux-gnu\nchecking target system type... x86_64-pc-linux-gnu\nchecking for a BSD-compatible install... /usr/bin/install -c\nchecking whether sleep s upports fractional seconds... yes\nchecking filesystem timestamp resolution... 0.01\nchecking whether build environment is sane... yes\nchecking for a race-free mkdir -p... /usr/bin/mkdir -p\nchecking for gawk... no\nchecking for mawk... mawk\nchecking whe ther make sets $(MAKE)... yes\nchecking whether make supports nested variables... yes\nchecking xargs -n works... yes\nchecking whether UID '0' is supported by ustar format... yes\nchecking whether GID '0' is supported by ustar format... yes\nchecking how to create a ustar tar archive... gnutar\nchecking for gcc... gcc\nchecking whether the C compiler works... yes\nchecking for C compiler default output file name... a.out\nchecking for suffix of executables... \nchecking whether we are cross compiling... no \nchecking for suffix of object files... o\nchecking whether the compiler supports GNU C... yes\nchecking whether gcc accepts -g... yes\nchecking for gcc option to enable C23 features... none needed\nchecking whether gcc understands -c and -o together... y es\nchecking for stdio.h... yes\nchecking for stdlib.h... yes\nchecking for string.h... yes\nchecking for inttypes.h... yes\nchecking for stdint.h... yes\nchecking for strings.h... yes\nchecking for sys/stat.h... yes\nchecking for sys/types.h... yes\ncheck ing for unistd.h... yes\nchecking size of int... 4\nchecking size of long... 8\nchecking size of long long... 8\nchecking size of short... 2\nchecking whether to enable debugging... yes\nconfigure: checking for pthread support...\nchecking for main in -lpt hread... yes\nconfigure: checking for dlopen/dlclose...\nchecking for dlclose in -ldl... yes\nchecking for library containing clock_gettime... none required\nchecking for clock_gettime... yes\nconfigure: checking for OpenSSL Library and Header files...\nch ecking /usr//include/openssl/ssl.h... not found\nchecking /usr/ssl/include/openssl/ssl.h... not found\nchecking /usr/openssl/include/openssl/ssl.h... not found\nchecking /usr/local//include/openssl/ssl.h... not found\nchecking /usr/local/ssl/include/openss l/ssl.h... not found\nchecking /usr/local/openssl/include/openssl/ssl.h... not found\nchecking /usr/lib//include/openssl/ssl.h... not found\nchecking /usr/lib/ssl/include/openssl/ssl.h... not found\nchecking /usr/lib/openssl/include/openssl/ssl.h... not fo und\nchecking /usr/pkg//include/openssl/ssl.h... not found\nchecking /usr/pkg/ssl/include/openssl/ssl.h... not found\nchecking /usr/pkg/openssl/include/openssl/ssl.h... not found\nchecking /opt/local//include/openssl/ssl.h... not found\nchecking /opt/local /ssl/include/openssl/ssl.h... not found\nchecking /opt/local/openssl/include/openssl/ssl.h... not found\nchecking /usr/local/opt//include/openssl/ssl.h... not found\nchecking /usr/local/opt/ssl/include/openssl/ssl.h... not found\nchecking /usr/local/opt/op enssl/include/openssl/ssl.h... not found\nchecking /opt//include/openssl/ssl.h... not found\nchecking /opt/ssl/include/openssl/ssl.h... not found\nchecking /opt/openssl/include/openssl/ssl.h... not found\nchecking for CRYPTO_lock in -lcrypto... no\ncheckin g for openssl/ssl.h... no", "stderr": "configure: WARNING: *** LibCrypto may be required for *BSD ***\nconfigure: error: *** OpenSSL header files required for SSL support. ***\n\n Many of the Medusa modules depend on the OpenSSL library and header files. If\n multiple m odules are unexpectedly disabled, this is likely the cause. Make sure\n to install libssl-dev, openssl-devel or whatever package your distribution uses\n to distribute these files.\n\n If the headers are installed in a non-standard location, speci fy the path with\n \"--with-ssl\".\n\n ", "cmd": [ "./configure", "--prefix=/root/.bbot/temp/medusa/build" ], "start": "2026-07-13 15:00:03.394720", "end": "2026-07-13 15:00:04.604180", "delta": "0:00:01.209460", "stdout_lines": [ "checking build system type... x86_64-pc-linux-gnu", "checking host system type... x86_64-pc-linux-gnu", "checking target system type... x86_64-pc-linux-gnu", "checking for a BSD-compatible install... /usr/bin/install -c", "checking whether sleep supports fractional seconds... yes", "checking filesystem timestamp resolution... 0.01", "checking whether build environment is sane... yes", "checking for a race-free mkdir -p... /usr/bin/mkdir -p", "checking for gawk... no", "checking for mawk... mawk", "checking whether make sets $(MAKE)... yes", "checking whether make supports nested variables... yes", "checking xargs -n works... yes", "checking whether make supports nested variables... yes", 15:00 [1497/1921] "checking xargs -n works... yes", "checking whether UID '0' is supported by ustar format... yes", "checking whether GID '0' is supported by ustar format... yes", "checking how to create a ustar tar archive... gnutar", "checking for gcc... gcc", "checking whether the C compiler works... yes", "checking for C compiler default output file name... a.out", "checking for suffix of executables... ", "checking whether we are cross compiling... no", "checking for suffix of object files... o", "checking whether the compiler supports GNU C... yes", "checking whether gcc accepts -g... yes", "checking for gcc option to enable C23 features... none needed", "checking whether gcc understands -c and -o together... yes", "checking for stdio.h... yes", "checking for stdlib.h... yes", "checking for string.h... yes", "checking for inttypes.h... yes", "checking for stdint.h... yes", "checking for strings.h... yes", "checking for sys/stat.h... yes", "checking for sys/types.h... yes", "checking for unistd.h... yes", "checking size of int... 4", "checking size of long... 8", "checking size of long long... 8", "checking size of short... 2", "checking whether to enable debugging... yes", "configure: checking for pthread support...", "checking for main in -lpthread... yes", "configure: checking for dlopen/dlclose...", "checking for dlclose in -ldl... yes", "checking for library containing clock_gettime... none required", "checking for clock_gettime... yes", "configure: checking for OpenSSL Library and Header files...", "checking /usr//include/openssl/ssl.h... not found", "checking /usr/ssl/include/openssl/ssl.h... not found", "checking /usr/openssl/include/openssl/ssl.h... not found", "checking /usr/local//include/openssl/ssl.h... not found", "checking /usr/local/ssl/include/openssl/ssl.h... not found", "checking /usr/local/openssl/include/openssl/ssl.h... not found", "checking /usr/lib//include/openssl/ssl.h... not found", "checking /usr/lib/ssl/include/openssl/ssl.h... not found", "checking /usr/lib/openssl/include/openssl/ssl.h... not found", "checking /usr/pkg//include/openssl/ssl.h... not found", "checking /usr/pkg/ssl/include/openssl/ssl.h... not found", "checking /usr/pkg/openssl/include/openssl/ssl.h... not found", "checking /opt/local//include/openssl/ssl.h... not found", "checking /opt/local/ssl/include/openssl/ssl.h... not found", "checking /opt/local/openssl/include/openssl/ssl.h... not found", "checking /usr/local/opt//include/openssl/ssl.h... not found", "checking /usr/local/opt/ssl/include/openssl/ssl.h... not found", "checking /usr/local/opt/openssl/include/openssl/ssl.h... not found", "checking /opt//include/openssl/ssl.h... not found", "checking /opt/ssl/include/openssl/ssl.h... not found", "checking /opt/openssl/include/openssl/ssl.h... not found", "checking for CRYPTO_lock in -lcrypto... no", "checking for openssl/ssl.h... no" ], "stderr_lines": [ "configure: WARNING: *** LibCrypto may be required for *BSD ***", "configure: error: *** OpenSSL header files required for SSL support. ***", "", " Many of the Medusa modules depend on the OpenSSL library and header files. If", " multiple modules are unexpectedly disabled, this is likely the cause. Make sure", " to install libssl-dev, openssl-devel or whatever package your distribution uses", " to distribute these files.", "", " If the headers are installed in a non-standard location, specify the path with", " \"--with-ssl\".", "", " " ] }, "start": "2026-07-13T20:00:03.160194+00:00", "end": "2026-07-13T20:00:04.636538+00:00", "duration": 1.476344, "ignore_errors": false, "duration": 1.476344, 15:00 [1420/1921] "ignore_errors": false, "event_loop": null, "uuid": "ac6e8e95-007c-4943-9f29-8b5bd1e1a0d6" } ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions