MinGW is a linux-like Development Environment

Source: Internet
Author: User

MinGW installs MSYS by default. Generally, the MinGW Shell is actually MSYS, and MinGW exists as a component.

  • MSYS -- Minimal SYStem, is a Bourne Shell interpreter.
  • MinGW -- Minimalist GNU for Windows. The Development Environment Based on native windows is not a virtual machine.

Take the MinGW installation root directory D: \ MinGW \ as an example.

1. Mount the File System

Mount to MSYS for ease of use. The new version of MinGW is automatically mounted by default.

Other folders can be automatically mounted in the same way.

Configuration file D: \ MinGW \ msys \ etc \ fstab, one-line mounting configuration. The format of "original path Mount location.

d:\MinGW\   //home/jackon/d

By default, only the first line is supported. Therefore, only MinGW is automatically mounted.

Leave a blank line at the end. Because the manually mounted information will also be written to fstab, And the write will not start from another line.

Note the following when manually mounting:

  • 1. All paths must use the '/' in linux format '/'
  • 2. Use an absolute path for the target path to be mounted, and ensure that the path exists.

\ Bin directory.

./configure --prefix=/ 
3. Associate vim in windows

In the D: \ MinGW \ msys \ etc \ profile file, point A alias command to a windows executable program.

Note: if there are spaces in the path, use the Escape Character '\'. For example, associate external vim

alias vim=

After vim is started, local configuration files are not used. Copy the vim configuration file to the MSYS directory.

The method for modifying runtimepath before startup is not found-Try mounting or soft link

4. Display Control

You can change the configuration information by modifying D: \ MinGW \ msys \ etc \ profile, which is the same as the profile file in linux. Jackon @ windows control display text, \ u use local user name, \ h display host address.

export PS1=\[32m\]Jackon@windows \[\[33m\\

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.