Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BC command not working in CYGWIN

Tags:

cygwin

bc

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

like image 876
Sanket Makani Avatar asked Aug 20 '16 13:08

Sanket Makani


1 Answers

On Windows Cygwin, run setup.exe and search for "bc" in the "Math" category, click on it and hit Next to install.

Cygwin Setup

On Unix/Linux you'll probably be needed to install this package Using:

sudo apt install bc
like image 91
mbonness Avatar answered Oct 02 '22 02:10

mbonness