C++ 未安装在 Cygwin 中
我刚刚安装了 Cygwin,可以从 Windows 启动 bash shell,执行 ls
、emacs
、vi
等。但是,当我执行 >g++
它说找不到命令。
我以为 Cygwin 中默认安装了 g++
? 如果不是这种情况,我可以将 g++
作为包添加到我的 cygwin 中的确切类别是什么?
I just installed Cygwin and can launch a bash shell from windows, do ls
, emacs
, vi
, etc. However, when I do g++
it says command not found.
I thought g++
was installed by default in Cygwin? If that's not the case, what are the exact categories under which I can add g++
as a package to my cygwin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您安装了
Devel
软件包吗?我建议您阅读本教程来启动并运行。
Did you install the
Devel
packages?I would suggest you read this tutorial to get up and running.
最好使用 CygWin 安装所有内容。 当您运行安装程序时,只需单击顶部的圆形图标,直到它显示“完整”而不是“默认” - 这将安装所有软件包。
有时,由于依赖关系,我在安装单个软件包时遇到问题,但完整安装不会受到同样问题的影响。
磁盘空间很便宜,但你花时间试图找出为什么事情不起作用的时间却很便宜。
It's a good idea to just install everything with CygWin. When you run setup, just click on the circular icon at the top level until it reads "Full" rather then "Default" - that will install all the packages.
I've sometimes had trouble installing single packages due to dependencies but a full install is not affected by that same problem.
Disk space is cheap, your time spent trying to figure out why things don't work is not.