Why can’t I run the file located in the bin?

Asked

Viewed 118 times

1

I need to use the file flare and flasm, which chown and permission are correct. Why can I execute only one and not the other?

    -rwxr-xr-x  1 daniela.morais sudo    64808 Mar 19 13:54 flare*
    -rwxr-xr-x  1 daniela.morais sudo   108525 Mar 19 13:48 flasm*
    daniela.morais@tusk:/usr/local/bin$ flare

    Flare 0.6 build Jun 11 2007

    Copyright (c) 2003-2005 Igor Kogan
    All rights reserved. See LICENSE.TXT for terms of use.

    Usage: flare filename.swf
    Decompiled ActionScript code is stored in filename.flr.
    daniela.morais@tusk:/usr/local/bin$ flasm
    bash: /usr/local/bin/flasm: No such file or directory

Flare: http://www.nowrap.de/flare.html Flasm: http://www.nowrap.de/flasm.html

  • That one flasm is a file even, or a symbolic link? (if it is a link, maybe the file does not exist in the place where this link is pointing...) If you are in doubt, try it ls -la

  • @mgibsonbr It is a file. The asterisk at the end of the file name indicates that it is an executable.

  • Permissions are correct, which is the output of the command which flasm? I don’t know if this is the case, but also try to update the cache of this file with hash -d flasm, the path for your command may have been cached with a wrong value.

  • in addition to what has already been suggested, you can update the post with the output of the command file flare flasm? Just to make sure both files can be run.

  • @Qmechanic73, the asterisk at command exit ls just indicates that the file has execution permission due to some shell boot configuration. This has no relation to it being executable or not.

  • @Brunocoimbra I may have misinterpreted what’s written here. =)

  • @Qmechanic73 daniela.morais@tusk:~$ which flasm
/usr/local/bin/flasm
daniela.morais@tusk:~$ hash -d flasm
daniela.morais@tusk:~$ flasm
bash: /usr/local/bin/flasm: No such file or directory

  • @BrunoCoimbra daniela.morais@tusk:/usr/local/bin$ file flare flasm
flare: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, stripped
flasm: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically Linked (uses Shared libs), for GNU/Linux 2.2.5, Stripped

  • Daniela.morais@tusk:~/Downloads/config$ file flasm flasm: ELF 32-bit LSB Executable, Intel 80386, version 1 (SYSV), dynamically Linked (uses Shared libs), for GNU/Linux 2.2.5, Stripped .

Show 4 more comments

1 answer

1


I got the/ These packages needed to be installed:

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.