Solve cygwin command not found in Windows

Source: Internet
Author: User

 

Region address:

Http://lzsblog.appspot.com/%3Fp%3D282003

 

After the installation, many commands (LS, git, etc.) may be installed, but the command is not found. Here is the solution.

Find the installation directory, which contains cygwin. bat. The shortcut on the desktop points to this place.

In

@ echo off

Add

 

set  CYGWIN= tty  notitle glob set  PATH=%PATH%;d:/cygwin/bin;d:/cygwin/sbin;d:/cygwin/usr/bin;d:/cygwin/usr/sbin;d:/cygwin/usr/ local /bin set  LD_LIBRARY_PATH=d:/cygwin/lib;d:/cygwin/usr/lib;d:/cygwin/usr/ local /lib

Change D:/cygwin to your installation directory. I am on the d drive anyway (I still don't know why I want to split multiple drive letters, obviously NTFS supports multi-partition mounting to a folder ).

Note: Most of these errors occur after the installation of some magical script errors. Currently, these script errors only cause the environment variables to be unable to be properly set (the solution just now is to solve this problem ). If you have any questions about this error, please let me know.

 

Csdn does not support shell syntax highlighting ??!!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.