BC command not working in CYGWIN

蹲街弑〆低调 提交于 2019-12-19 07:29:02

问题


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!


回答1:


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




回答2:


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

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

sudo apt install bc



回答3:


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.



来源:https://stackoverflow.com/questions/39054508/bc-command-not-working-in-cygwin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!