20

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?

NelsonGon
  • 13,015
  • 7
  • 27
  • 57
Saobi
  • 16,121
  • 29
  • 71
  • 81

2 Answers2

23

Did you install the Devel packages?

I would suggest you read this tutorial to get up and running.

Andrew Hare
  • 344,730
  • 71
  • 640
  • 635
  • 8
    To get just the c++ compilers, follow [this tutorial instead](http://cs.calvin.edu/curriculum/cs/112/resources/installingEclipse/cygwin/) – Jean-Paul Mar 31 '15 at 14:14
11

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.

paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
  • 2
    Thanks! I am trying to conserve disk space LOL. – Saobi May 13 '09 at 02:03
  • 8
    It should be noted that a full install it could be **up to 114 GB**, which is not negligible. I wouldn't make a full install if I was installing in an SSD. http://stackoverflow.com/questions/21230657/what-is-the-current-full-install-size-of-cygwin – Calculus Knight Nov 28 '16 at 12:02
  • Another possible disadvantage of a full install is, that if you run setup again to update your packages to the newest version, it might take very long. – user1934428 Oct 05 '22 at 07:20