compose icon indicating copy to clipboard operation
compose copied to clipboard

Readline errors when running binary on arch linux

Open renato-zannon opened this issue 12 years ago • 45 comments

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:

$ /usr/local/bin/fig --version
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
fig 0.3.2

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).

renato-zannon avatar Mar 26 '14 15:03 renato-zannon

+1 still an issue

toddpi314 avatar Feb 28 '15 17:02 toddpi314

+1

Ovski4 avatar Mar 05 '15 14:03 Ovski4

:+1: . I'm using "docker-compose".

$ docker-compose --version
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
docker-compose 1.1.0

mariorez avatar Mar 05 '15 19:03 mariorez

+1

k2s avatar Mar 05 '15 20:03 k2s

:+1: same problem

$ docker-compose --version
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
sh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook
docker-compose 1.1.0

$ uname -a
Linux jupiter 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64 GNU/Linux

[update]: For all archlinux users. I built the binary on my ArchLinux server and publish the new release (v1.1.0-archlinux) on the fork. It works on my machine :smile:

nerro avatar Mar 07 '15 10:03 nerro

pip2 install docker-compose worked for me...

ghost avatar Mar 16 '15 09:03 ghost

:+1: @jvanveen - DC works when install with PIP2 (and breaks with "pip" version 1) pip2 install docker-compose

mariorez avatar Mar 17 '15 14:03 mariorez

@jvanveen, you're right, it works with python2-pip package, but this package has python2 and python2-setuptools as dependencies :worried:. As crazy minimalist I try to keep my system clean and with minimal package count (currently 220 :wink:)

nerro avatar Mar 17 '15 21:03 nerro

You could also just use a container for this. Like : https://registry.hub.docker.com/u/dduportal/docker-compose and set up an alias. That works everywhere you use docker.

skarekrow avatar Mar 27 '15 20:03 skarekrow

Lolz @skarekrow +1 for @nerro's patch

toddpi314 avatar Apr 21 '15 10:04 toddpi314

I was serious ;) It works great for me.

On Tue, Apr 21, 2015, 5:53 AM Todd Morrison [email protected] wrote:

Lolz @skarekrow https://github.com/skarekrow

— Reply to this email directly or view it on GitHub https://github.com/docker/compose/issues/170#issuecomment-94743551.

skarekrow avatar Apr 21 '15 11:04 skarekrow

BTW Install seems to work with pip3, but then docker-compose breaks when you run it.

hardbyte avatar Apr 21 '15 23:04 hardbyte

@toddpi314 thanks for motivational kick :smile:. I will release version 1.2.0 for archlinux today.

[update]: For all archlinux users. The next release (v1.2.0-archlinux) is published. I tested it on Ubuntu, Debian and CentOS.

nerro avatar Apr 26 '15 22:04 nerro

@nerro, same error on Archlinux with 1.2.0.

NicolasCARPi avatar May 13 '15 12:05 NicolasCARPi

@NicolasCARPi, error with my custom release? I see no errors on my developer machine. If errors exists, send me please pacman -Q output.

nerro avatar May 13 '15 20:05 nerro

@nerro, nope sorry I was speaking of the official release. I just tried with yours and it's fine (thank you for providing it :)).

Cheers. ~Nico

NicolasCARPi avatar May 15 '15 12:05 NicolasCARPi

I'm not sure there is a good solution here. The users with this issue are executing the binary release on a system with libreadline > 6.2 (in my case Gentoo and Arch) and the binary is not expecting this newer version. I see where we switched from ubuntu:14.04 down to debian:wheezy to accommodate users with older glibc, in the opposite scenario. I confirmed that by switching the build environment to Jessie, I can produce a binary that can interop with my local libreadline 6.3, but then it introduces the version 'GLIBC_2.14' not found issue (for other older systems with < 2.14 such as centos6). So we have glibc which requires us to compile against on an older version to be forwards-compatible, and libreadline which requires us to compile against a newer version to be backwards-compatible. Sorry, don't have a good solution in mind, but I think I understand the problem better now.

psftw avatar May 22 '15 19:05 psftw

One solution would be to fix how this is packaged. A single dynamically linked binary is always going to cause problems.

dnephin avatar May 24 '15 18:05 dnephin

@psftw @dnephin, Can we make it with Debian dockerfile? I thought the project will be rewritten in Go or I misunderstood something?

nerro avatar May 24 '15 20:05 nerro

  • 1

eggman64 avatar Jun 10 '15 13:06 eggman64