Program "gcc" not found in PATH
2016-10-06 12:24
986 查看
在Windows上搞一套类Unix环境,可以使用MinGW和Cygwin,两者都可以在Windows上使用GNU工具。不同点在于:MinGW必须和MSYS配合使用,Cygwin可单独使用。Cygwin完整模拟了Linux的运行环境,是一套完整的解决方案,而MinGW还需要自己配置最小的Linux环境MSYS。
D:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v4-rev2\mingw64\bin
D:\msys64\usr\bin
GNU
GNU操作系统的内核是Linux。GCC
GNU Compiler Collection,GNU编译器集合,是一套由GNU开发的编程语言编译器。Windows下的GCC有2个版本MinGW和Cygwin。MinGW
Minimalist GNU for Windows的缩写,是一些头文件和端口库的集合,允许人们在没有第三方动态链接库的情况下使用GCC产生Windows程序。所以使用MinGW我们就可以像在Linux下一样使用GNU程序开发工具。MSYS
MSYS全称是Minimal GNU system on Windows,是小型的GNU环境,包括基本的bash,make等。Cygwin
Cygwin是一个在Windows平台上运行的类UNIX模拟环境。使用Cygwin编译后的二进制码必须依赖cygwin1.dll才能执行Trouble shooting
安装MinGW
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download安装MSYS
https://sourceforge.net/projects/msys2/files/Base/x86_64/配置环境变量
将以下路径加入Path中,然后重启电脑D:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v4-rev2\mingw64\bin
D:\msys64\usr\bin
相关文章推荐
- Eclipse + CDT Program "gcc" not found in PATH
- eclipse 移植cocos2d-x工程 报错: Program "bash" is not found in PATH
- Error: Program "bash" not found in PATH
- omnet Program "g++" not found in PATH Program "gcc" not found in PATH
- eclipse: Program "g++" not found in PATH
- Program "g++" not found in PATH
- 安卓代码迁移:Program "sh" not found in PATH
- 【转】报错:Program "sh" not found in PATH
- Error: Program "C:\android\android-ndk-r10\ndk-build.cmd" not found in PATH
- Eclipse 报错:Error: Program "sh" not found in PATH
- Cocos2dx Cannot run program "bash": Launching failed Error: Program "bash" not found in PATH
- Error: Program "/ndk-build.cmd" is not found in PATH
- cocos2d-x Program "bash" is not found in PATH
- eclipse cdt Program "make" not found in PATH
- Program "make" not found in PATH
- Eclipse 报错:Error: Program "sh" not found in PATH
- eclipse 移植cocos2d-x工程 报错: Program "bash" is not found in PATH
- Cocos2dx 报错:Error: Program "make" is not found in PATH
- eclipse移植cocos2dx工程报错:Program "bash" is not found in PATH
- Program "make" is not found in PATH