Find the answer to your Linux question:
Results 1 to 2 of 2
i'm a beginer in Linux programming. i tryed: root@ubuntu:/home/proj7# gcc -Wall -o hello hello.c root@ubuntu:/home/proj7# strace hello i get: strace: hello: command not found after i compile a file how ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Posts
    17

    Cool Error: in the exectable file & strace


    i'm a beginer in Linux programming.
    i tryed:
    root@ubuntu:/home/proj7# gcc -Wall -o hello hello.c
    root@ubuntu:/home/proj7# strace hello
    i get:
    strace: hello: command not found

    after i compile a file how can i execute it??
    i tryed:
    root@ubuntu:/home/proj7# hello
    i get:
    bash: hello: command not found

    i compiled and ran it from Anjuta but i can't do it from Bash
    any help will do

  2. #2
    Just Joined! tb10alj's Avatar
    Join Date
    Feb 2006
    Location
    Germany
    Posts
    31
    Hi,

    you have to call
    Code:
    root@ubuntu:/home/proj7# ./hello
    For the strace example
    Code:
    strace ./hello

    JAN

Posting Permissions

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