Problem running binaries ( "no such file or directory" )

4 posts / 0 new
Last post
#1 Tue, 2015-05-19 01:26
pelle
  • pelle's picture
  • Offline
  • Last seen: 2 years 10 months ago
  • Joined: 2015-05-19

Hi all,

I've just started using Alpine Linux (32-bit), and I like how smooth it runs even on modest hardware. Big thanks for making this neat minimal distro w/o systemd and pulseaudio.

I have a little problem in Alpine. When I download precompiled ELF binaries, they fail to run, like newest versions of Firefox or Racket (both 32-bit Linux versions from their respective webpages), with the message "no such file or directory" even though the file is present and has permission to run.

$ file firefox   
firefox: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=2374d5609a96e393c9aef73284879a6260d446f3, stripped
$ ./firefox
zsh: no such file or directory: ./firefox

Those same binaries work fine under Puppy Linux (Precise Puppy) and Debian.

Is it because of Alpine using musl instead of glibc? Any idea for a fix or workaround, for running newest Firefox et al?

Tue, 2015-05-19 13:31
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05

Although musl is somewhat ABI compatible, not all binaries will work.
We have Firefox in aports. It should be recent enough.

Tue, 2015-05-19 14:57 (Reply to #2)
pelle
  • pelle's picture
  • Offline
  • Last seen: 2 years 10 months ago
  • Joined: 2015-05-19

Thanks, just curious as to what was causing it. The Firefox packaged for Alpine is good. However I was also trying to run modified Firefox like Tor Browser Bundle (and new Firefox with Firefox Hello). Running the Window versions with Wine fails, and Tor in Alpine errors with:

Error relocating /usr/bin/tor: evutil_secure_rng_set_urandom_device_file: symbol not found

Apart from that, a lot of free software runs very well in Wine. I was just encountering issues with these particular programs.

Tue, 2015-05-19 19:33
jch
  • jch's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2015-01-10

you need libevent@edge for tor to work.

for this add "@edge http;//your_repo/edge/main" in /etc/apk/repositories,
then apk update
then apk add libevent@edge

Log in or register to post comments