Readline errors when running binary on arch linux
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
Resolve Readline Errors in Fig Binary on Arch Linux
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
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.
bashsudo pacman -S readline - 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.
bashcurl -LO https://github.com/orchardup/fig/releases/download/0.3.2/linux - 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.
bashexport LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH - 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
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.
bashpip 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
Alex Chen
2450 rep