BC command not working in CYGWIN

2019-02-18 05:37发布

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

标签: cygwin bc
3条回答
仙女界的扛把子
2楼-- · 2019-02-18 06:05

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

查看更多
倾城 Initia
3楼-- · 2019-02-18 06:05

I believe that bc is not installed by default on Cygwin, and you will need to install it manually. This link might help you.

DISCLAIMER: I have never used Cygwin.

查看更多
再贱就再见
4楼-- · 2019-02-18 06:09

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

Cygwin Setup

查看更多
登录 后发表回答