Find the answer to your Linux question:
Results 1 to 3 of 3
make Error - make: c: Command not found First time poster here. Excited to get started w/ my research! I'm trying to build and compile a chemical mechanism solver. In ...
  1. #1
    Just Joined! TheContender's Avatar
    Join Date
    May 2007
    Posts
    4

    Thumbs up make Error - make: c: Command not found

    make Error - make: c: Command not found
    First time poster here. Excited to get started w/ my research!

    I'm trying to build and compile a chemical mechanism solver.

    In the code, of main.mk I have the following line

    %.o: %.f90
    $(F90) $(F90FLAGS) $(LINCLUDES) -c $<

    For some reason that is giving me an error because of the c. The error is this and is repeated about ten times for ten different files.

    c messy_main_constants_mem.f90
    make: c: Command not found
    make: [messy_main_constants_mem.o] Error 127 (ignored)

    Thanks a bunch for all of your help!

    --Luke

  2. #2
    Linux User
    Join Date
    Oct 2004
    Location
    /dev/random
    Posts
    404
    This is because the make variables F90, F90FLAGS and LINCLUDES are not set, so $(F90), $(F90FLAGS) and $(LINCLUDES) evaluate to empty strings - this brings the command down to -c $<. Obviously, there is no standard command/binary with the name c, so the error - command not found.

    NB.: When a make command starts with -, the meaning of - is to suppress stderr.

    HTH
    The Unforgiven
    Registered Linux User #358564

  3. #3
    Just Joined! TheContender's Avatar
    Join Date
    May 2007
    Posts
    4

    Thanks

    Thanks,

    I figured out my issue. I had unblocked a manual compiler options block which was setting all of my compiler options to blanks.

    I got that up and running and now I am having further issues, but ones that are directly related to the automatic configuration of the program's input files.

    Thanks again,

    Luke

Posting Permissions

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