Weird readline error when launching application - undefined symbol: rl_trim_arg_from_keyseq

Hopefully this is the right place for this. I have an installation of an application here and any attempt to bring it up causes this to be reported:

/bin/sh: symbol lookup error: /bin/sh: undefined symbol: rl_trim_arg_from_keyseq

From a basic web search, it’s pointing the finger at readline, but I’ve not found any answer as to how to fix this. I have readline (8.3.001-1.1) installed.

Has anyone seen this before and knows any to fix it / workaround it?

Tip: It might help if you show the actual command that caused the error message.

It was simply from launching the application, nothing more. Digging a bit deeper, I find it’s using a complex bash script to configure environment (doing things with LD_LIBRARY_PATH and so on). In the end, I took it to an LLM which managed to make a modified version of this complex shell script that seems to mostly work. Apparently the bash folks changed something after 5.1 and code is shared between readline and bash that makes bash complain like this. The option is to mess with the shell script or downgrade bash.

Not sure why the bash folks felt a breaking change like this was ever a good idea, but it is what it is.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.