FG
💻 Software☁️ Cloud & DevOpsDocker

Readline errors when running binary on arch linux

Fresh5 days ago
Mar 14, 20260 views
Confidence Score55%
55%

Problem

Hi! If I get the binary from `https://github.com/orchardup/fig/releases/download/0.3.2/linux` and run on my Arch Linux, I get a few errors on startup: [code block] However, if I install directly from pip, these errors don't appear. From a bit of googling it seems to me they are related to the readline version... Might be some incompatibility with a bundled library in the binary version. I haven't had any issues apart from the annoying messages though (console apps work fine).

Error Output

error: sh: undefined symbol: rl_signal_event_hook

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Resolve Readline Errors in Fig Binary on Arch Linux

Medium Risk

The errors encountered are due to an incompatibility between the bundled readline library in the Fig binary and the version of readline installed on Arch Linux. The symbol 'rl_signal_event_hook' is not found, indicating that the binary is expecting a different version of the readline library than what is available on the system.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Install Readline Development Package

    Ensure that the readline development package is installed on your system. This package provides the necessary headers and libraries that might be required for compatibility.

    bash
    sudo pacman -S readline
  2. 2

    Download the Latest Fig Binary

    Download the latest version of the Fig binary from the official GitHub releases page. This ensures you have the most recent updates which may include fixes for compatibility issues.

    bash
    curl -LO https://github.com/orchardup/fig/releases/download/0.3.2/linux
  3. 3

    Set Environment Variable for Readline

    Set the environment variable to point to the correct readline library. This can help the binary locate the correct version of the library at runtime.

    bash
    export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
  4. 4

    Run the Fig Binary

    Attempt to run the Fig binary again to check if the readline errors persist. If the errors are resolved, the binary should start without issues.

    bash
    ./linux
  5. 5

    Consider Using Pip as an Alternative

    If the issue persists, consider using pip to install Fig as it does not exhibit the readline errors. This can be done using the command below.

    bash
    pip install fig

Validation

To confirm the fix worked, run the Fig binary again and check for any readline-related error messages. If no errors appear and the application starts successfully, the issue is resolved.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

dockerdocker-composecontainers