首页 > Windows开发 > 详细

windows git bash bash: xxx: command not found

时间:2020-04-06 20:02:19      阅读:467      评论:0      收藏:0      [点我收藏+]

参考以下两种解决:

1.zip

While using git-bash,  you may need the zip command to zip files. Then you will get error like “command not found“. This is because git-bash is really just a cut down version of mingw. Fortunately you can manually install the command yourself, not only zip, but any command you can get from gnuwin32.

Here are the steps you can follow.

1. Go to the following link
https://sourceforge.net/projects/gnuwin32/files/

2. Find out whatever command you are missing
Here I need zip and bzip2 for zip command. Because zip command relies on bzip2.dll to run. Otherwise you will get error “error while loading shared libraries: ?: cannot open shared object file: No such file or directory”.

3. Unzip the downloaded files
Here I am downloading “zip-3.0-bin.zip” for “zip.exe” and “bzip2-1.0.5-bin.zip” for “bzip2.dll” in the bin folder. <unzipped file>/bin/<command>.exe

4. Copy the command exe file into git-bash folder
Here I am copying “zip.exe” and “bzip2.dll” to <Program folder>\Git\usr\bin.

 

2.wget

1, download wget binary installation package, address: https://eternallybored.org/misc/wget/
2. Unzip the installation package and copy wget. Exe to C:\Program Files\Git\mingw64\bin\; (or after unzipping add the path to wget.exe from the unzipping file to the environment variable)
At this point, the installation is complete;
Perform wget validation in git bash, done;

 

windows git bash bash: xxx: command not found

原文:https://www.cnblogs.com/jqpy1994/p/12643580.html

(1)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!