Why do I get permission denied when I try use “make” to install something?

后端 未结 5 389
走了就别回头了
走了就别回头了 2021-02-01 04:47

I\'m trying to install something and it\'s throwing me an error: Permission denied when I try to run make on it.

I\'m not too fond of the unive

5条回答
  •  一整个雨季
    2021-02-01 04:54

    I had a very similar error message as you, although listing a particular file:

    $ make
    make: execvp: ../HoughLineExtractor/houghlineextractor.hh: Permission denied
    make: *** [../HoughLineAccumulator/houghlineaccumulator.o] Error 127
    
    $ sudo make
    make: execvp: ../HoughLineExtractor/houghlineextractor.hh: Permission denied
    make: *** [../HoughLineAccumulator/houghlineaccumulator.o] Error 127
    

    In my case, I forgot to add a trailing slash to indicate continuation of the line as shown:

    ${LINEDETECTOR_OBJECTS}:\
        ../HoughLineAccumulator/houghlineaccumulator.hh  # <-- missing slash!!
        ../HoughLineExtractor/houghlineextractor.hh
    

    Hope that helps someone else who lands here from a search engine.

提交回复
热议问题