My terminal command " ./ " not work only " sh ".

Discussion in 'macOS' started by endy, Nov 27, 2011.

  1. endy macrumors newbie

    Joined:
    Nov 27, 2011
    #1
    My terminal command " ./ " not work only " sh " work fine.
    I want to compile gdb and nothing works because in Makefile exist a command "./"
    My mac has 10.6.8.
    Please help me...
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    ./ is not a command but rather the path.
    what happens when you type ls ./ in the terminal?
     
  3. endy thread starter macrumors newbie

    Joined:
    Nov 27, 2011
  4. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #4
    So what is the error message? You state it does not work, but what exactly occurs
     
  5. endy thread starter macrumors newbie

    Joined:
    Nov 27, 2011
    #5
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing default commands
    config.status: executing depdir commands
    ./observer.sh h ./doc/observer.texi observer.h
    make[2]: ./observer.sh: Permission denied
    make[2]: *** [observer.h] Error 1
    make[1]: *** [all-gdb] Error 2
    make: *** [all] Error 2
     
  6. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #6
    Not sure what you think ./ has to do with the actual error you got. And btw, ./ is not the same as ls.

    Anyway, you have a permissions problem. Find observer.sh and add execute permissions with "chmod +x observer.sh" command.
     
  7. endy thread starter macrumors newbie

    Joined:
    Nov 27, 2011
    #7
    "ls ./" output its same to "ls" output i mean.Thanks. its permisions problem. I solve it.
     

Share This Page