Readline errors when running binary on arch linux
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).
+1 still an issue
+1
:+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
+1
:+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:
pip2 install docker-compose worked for me...
:+1: @jvanveen - DC works when install with PIP2 (and breaks with "pip" version 1)
pip2 install docker-compose
@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:)
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.
Lolz @skarekrow +1 for @nerro's patch
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.
BTW Install seems to work with pip3, but then docker-compose breaks when you run it.
@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, same error on Archlinux with 1.2.0.
@NicolasCARPi, error with my custom release?
I see no errors on my developer machine. If errors exists, send me please pacman -Q output.
@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
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.
One solution would be to fix how this is packaged. A single dynamically linked binary is always going to cause problems.
@psftw @dnephin, Can we make it with Debian dockerfile? I thought the project will be rewritten in Go or I misunderstood something?
- 1