zoukankan      html  css  js  c++  java
  • windows git bash bash: xxx: command not found

    参考以下两种解决:

    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>Gitusrin.

    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 FilesGitmingw64in; (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;
    
  • 相关阅读:
    Gradle构建模块化项目
    线程池的理解与应用
    Redis理解
    kafka监听出现的问题,解决和剖析
    shiro利用过期时间,解决用户冻结踢出问题
    信息系统的运行与维护包含的主要内容
    软件维护的内容是什么
    执行顺序
    Chrome/Edge 91版本SameSite by default cookies被移除后的解决方案
    公从号编程
  • 原文地址:https://www.cnblogs.com/jqpy1994/p/12643580.html
Copyright © 2011-2022 走看看