我想要制作一个脚本来获取和编译OS X上的nginx。当我从终端运行./configure --prefix=.
时,我得到了您所期望的,但是当我将它放到bash脚本中时,我得到:从脚本运行时找不到GCC
checking for OS
+ Darwin 13.0.0 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
make: *** No rule to make target `build', needed by `default'. Stop.
任何想法会导致GCC失踪?
搜索,以便为您的错误信息'错误:C编译器CC没有found',有一对夫妇同一个问题,一个其他职位这些解决方案可能会有所帮助。通过搜索,我的意思是'google'和查询中的'stackoverflow.com'。 – BroSlow