GLFW.jl: GLFW.Window() Segmentation Fault

The GLFW.jl package compiles correctly. pkg> test GLFW results in an error. The error is:

3.4.0 Wayland X11 GLX Null EGL OSMesa monotonic shared
lib for symbol XOpenDisplay is missing

[87904] signal 11 (1): Segmentation fault
in expression starting at HOMEDIR/.julia/packages/GLFW/Zwulj/test/windowclose.jl:3
unknown function (ip: (nil))
Allocations: 1 (Pool: 1; Big: 0); GC: 0
ERROR: Package GLFW errored during testing (received signal: 11)

The line it errors on & can’t execute is GLFW.Window():

julia> GLFW.Window()
lib for symbol XOpenDisplay is missing

[92651] signal 11 (1): Segmentation fault
in expression starting at REPL[4]:1
unknown function (ip: (nil)) at (unknown file)
Allocations: 18166896 (Pool: 18163672; Big: 3224); GC: 18
Segmentation fault (core dumped)

libx11-dev is installed:

libx11-dev is already the newest version (2:1.8.7-1build1).

When I compile the below C code from the same terminal window that I was running julia in, it compiles cleanly and when I run that code it opens a window, without any errors.

// test.c
#include <GLFW/glfw3.h>

int main(void)
{
    GLFWwindow* window;

    /* Initialize the library */
    if (!glfwInit())
        return -1;

    /* Create a windowed mode window and its OpenGL context */
    window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
    if (!window)
    {
        glfwTerminate();
        return -1;
    }

    /* Make the window's context current */
    glfwMakeContextCurrent(window);

    /* Loop until the user closes the window */
    while (!glfwWindowShouldClose(window))
    {
        /* Render here */
        glClear(GL_COLOR_BUFFER_BIT);

        /* Swap front and back buffers */
        glfwSwapBuffers(window);

        /* Poll for and process events */
        glfwPollEvents();
    }

    glfwTerminate();
    return 0;
}

I have tried in previous (v1.11.6) stable (v1.11.7) and the beta versions of julia, installed via juliaup. For beta, version is GLFW v3.4.5. Downgrading the packages multiple versions has not resolved the issue. I am on Ubuntu 24.04.3 LTS.

glxinfo -B is as follows:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1023 MB, largest block: 1023 MB
    VBO free aux. memory - total: 15419 MB, largest block: 15419 MB
    Texture free memory - total: 1023 MB, largest block: 1023 MB
    Texture free aux. memory - total: 15419 MB, largest block: 15419 MB
    Renderbuffer free memory - total: 1023 MB, largest block: 1023 MB
    Renderbuffer free aux. memory - total: 15419 MB, largest block: 15419 MB
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon Graphics
OpenGL core profile version string: 4.6.0 Core Profile Context 25.10.250708
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 Compatibility Profile Context 25.10.250708
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2.0 25.10.250708 
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Am I missing some environmental variable to allow julia to communicate with libx11 properly?

Thanks!