Search code examples
cygwinbc

BC command not working in CYGWIN


I have downloaded CygWin(32-bit) and installed (on Windows 7 32 bit System) today to run shell script but i found one problem that bc command isn't working.
I am getting error -bash: bc: command not found. So please help me out!

enter image description here


Solution

  • You need to select the bc package for installation from the "Select Packages" window.
    By default setup installs only base category that is ~ 50 packages, while the full availability is ~ 4000.

    https://cygwin.com/packages/x86/bc/bc-1.06.95-2