获取mingw - 正确安装 - mingw / msys路径缺失加更多! [英] Getting mingw-get to install correctly - mingw/msys path missing plus more!

查看:584
本文介绍了获取mingw - 正确安装 - mingw / msys路径缺失加更多!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行windows XP。



我一直在关注本教程并下载mingw-get-inst

我这样做了几次,最后一次我检查了boes来安装一切,包括但不限于,gcc,g ++,MSYS和MinGW编译套件。我告诉它也可以创建一个程序菜单快捷方式。



我相信我已经将MinGW / bin正确添加到环境设置路径中。

所以我现在有了MSYS shell的捷径。它转到C:\ MinGW \ msys \ 1.0 \ msys.bat,但整个msys目录不存在!



有很多包已经被下载,据我所知(mingw-get show带来了很多!),但它似乎没有安装正确。



另外,我是否应该能够使用cmd.exe中的g ++ foo.cpp -o foo.exe命令或只能使用MSYS shell命令?因为我无法使用cmd.exe。



请帮助! MSYS和MinGW的安装程序是一场噩梦,多年来一直恶化。如果你只是想编译器套件(没有像sed,grep这样的UNIX工具),那么我建议你去 Twilight Dragon Media 和从那里下载GCC。如果您还需要包括Bash shell在内的所有工具,我发现获取它们的最简单方法是安装适用于Windows的Git (你可能想要),其中包括所有。如果你想要一个可以和GCC一起使用的C ++ IDE,请查看 Code :: Blocks


I'm running windows XP.

I have been following this tutorial and so downloading mingw-get-inst here.

I've done this a couple times and the last time I checked boes to install EVERYTHING including, but not limited to, gcc, g++, MSYS and the MinGW Compiling Suite. I told it to make a program menu shortcut, too.

I believe I have correctly added MinGW/bin to the Environment Settings' Path.

So I have the shortcut to the MSYS shell now. It goes to C:\MinGW\msys\1.0\msys.bat, but the whole msys directory does not exist!

There are tons of "packages" have been downloaded as far as I can tell ("mingw-get show" brings up a lot!), but it doesn't seem like any of it installed correctly.

Also, should I be able to use commands like "g++ foo.cpp -o foo.exe" from cmd.exe or only from the MSYS shell? Because I was unable to use cmd.exe.

Please help!

解决方案

The MSYS and MinGW installation procedure is a nightmare, and has got worse over the years. If you just want the compiler suite (no UNIX tools like sed, grep), then I suggest you go to Twilight Dragon Media and download GCC from there. If you also want all the tools, including the Bash shell, the easiest way I've found to get them is to install Git for Windows (which you may want anyway), which includes them all. And if you want a C++ IDE that works well with GCC, take a look at Code::Blocks.

这篇关于获取mingw - 正确安装 - mingw / msys路径缺失加更多!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆