简体   繁体   中英

/bin/sh: /bin: Is a directory

I am compiling by code using make command on centos (rhel 7)_, with gcc 7.1, but got stuck in the following error:

/bin/sh: /bin: Is a directory

which sh returns /usr/bin/sh

This means one of the make commands try to execute /bin and cannot (since it is a directory). You then have an incomplete path towards an expected executable file.

You can read your makefile and find the probably missing variable to complete the path.

You can also run make V=1 to have a verbose output and see where the error lies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM