Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

.bin files

  • 17-01-2005 2:52pm
    #1
    Registered Users, Registered Users 2 Posts: 128 ✭✭


    Im trying to run a file called HGTdata.bin

    first i typed in

    chmod +x HGTdata.bin
    then
    ./HGTdata.bin
    and got this message

    .HGT.bin cannot execute binary file

    has anybody any suggestions thanks


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Hagi1513 wrote:
    Im trying to run a file called HGTdata.bin

    first i typed in

    chmod +x HGTdata.bin
    then
    ./HGTdata.bin
    and got this message

    .HGT.bin cannot execute binary file

    has anybody any suggestions thanks
    maybe this?
    sh HGTdata.bin
    


  • Registered Users, Registered Users 2 Posts: 74 ✭✭Arithon


    Hagi1513 wrote:
    Im trying to run a file called HGTdata.bin

    first i typed in

    chmod +x HGTdata.bin
    then
    ./HGTdata.bin
    and got this message

    .HGT.bin cannot execute binary file

    has anybody any suggestions thanks

    You can use the "file" command to check the type of a file. It could be that the file isn't for your hardware platform (if binary), or that it's a script (as doodle_sketch suggested). I give an example below where I've copied "echo" across from a SPARC box (running Solaris).
    $ file /bin/echo
    /bin/echo: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
    $ /bin/echo
    
    $ file ./echo_solaris
    ./echo_solaris: ELF 32-bit MSB executable, SPARC, version 1 (SYSV), dynamically linked (uses shared libs), stripped
    $ ./echo_solaris
    bash: ./echo_solaris: cannot execute binary file
    

    Basically, it needs to match your system (Intel? Linux? 32-bit?).


  • Moderators, Arts Moderators Posts: 35,788 Mod ✭✭✭✭pickarooney


    Or it's an unfinished/corrupted download.


  • Registered Users, Registered Users 2 Posts: 128 ✭✭Hagi1513


    When i typed in
    sh HGTdata.bin

    i got cannot execute binary file


  • Moderators, Arts Moderators Posts: 35,788 Mod ✭✭✭✭pickarooney


    Did you chmod a+x ? You might have made it executable only for root or something.
    What did file HGTdata.bin give?

    [edit]Actually, I don't think it's a script at all, but a binary data file to be used by another program - see here[/edit]


  • Advertisement
Advertisement