Find the answer to your Linux question:
Results 1 to 5 of 5
iam running the command as ./a.out iam getting the following error as : cannot execute binary file y this error coming and how can i run this file thank u, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    14

    regarding executable file


    iam running the command
    as ./a.out
    iam getting the following error as : cannot execute binary file
    y this error coming
    and how can i run this file
    thank u,
    inadvance,
    sree

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Can please cut and post the exact error message your getting ?
    Explain your problem little bit more?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    14
    :./comm
    bash:./comm:cannot execute binary file
    so wht it means.
    is this file run in linux.
    my distro is rhel5
    thank u

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758

    Post

    Sorry .I still unable to under your question.
    Check the permission of the file.


    Let's go step by step:

    first try this simple C program and save as file.c :


    Code:
    main(){
    printf("Linux - Programmers Paradise");
    }
    To complie:
    Code:
    gcc file.c
    To execute :
    Code:
    ./a.out
    Please post ur output
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  5. #5
    Just Joined!
    Join Date
    Jul 2006
    Posts
    14
    thanks for ur intrest
    actually i know tht
    my friend send some so's and this executable file.
    when i try to runt his file iam getting cannot open binary file
    but he is telling tht this file is executing there.
    but i think binary files will not execute in linux
    am i right?.
    but he is telling that same file in running there
    both using rhel 5
    tht's y iam confirming whether binary files run in linux or not
    thank u
    ssree

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •