msys2

MSYS2: How to disable automatic translation of pathname to drive letter?

孤者浪人 提交于 2019-12-02 11:49:42
I'm facing an issue when testing a C program compiled with mingw in the MSYS2 shell: I wrote a command line parser that accepts options according to the windows convention (starting with / ). If I call my program like this to generate an output file: ./example.exe /o test What ends up in argv[1] is actually O:/ . It works fine when testing from a console window running CMD.EXE . This truly minimal program demonstrates the behavior: #include <stdio.h> int main(int argc, char **argv) { if (argc > 1) { puts(argv[1]); } return 0; } $ ./example.exe /o O:/ So I guess this is the MSYS2 shell trying

Which Python should I install (and how) when using msys2?

假装没事ソ 提交于 2019-11-30 19:55:32
问题 While the current official Python version is 3.6, msys2 provides two packages for python3 : msys/python3 , currently using 3.4 mingw64/mingw-w64-x86_64-python3 , currently using 3.5 So which version should I use when and how? Can't I just use the Windows 3.6 and somehow tell pacman to use that? Or can I get 3.6 running in a msys/mingw'd version and also use that in Windows so I don't need two/three installations? 回答1: This is what I'm using on msys2 to install python3: $ pacman -Syuu Close

一些国内镜像 整理

二次信任 提交于 2019-11-30 06:32:59
国内镜像加速还是很给力的。收集一些常用的镜像。 清华 pypi https://pypi.tuna.tsinghua.edu.cn/simple 临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 设置默认 修改 ~/.config/pip/pip.conf (Linux), %APPDATA%\pip\pip.ini (Windows 10) 或 $HOME/Library/Application Support/pip/pip.conf (macOS) (没有就创建一个), 修改 index-url 至tuna,例如 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple 阿里 pypi https://mirrors.aliyun.com/help/pypi 在 ~/.pip/pip.conf 文件中添加或修改 [global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com 清华 Anaconda 镜像 https://mirrors.tuna.tsinghua.edu.cn

How do I integrate MSYS2 shell into Visual studio code on Window?

柔情痞子 提交于 2019-11-28 17:39:13
I tried to integrate MSYS2 shell into Visual studio Code integrated terminal. Here's my user settings: { "terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe", "terminal.integrated.shellArgs.windows": ["--login", "-i"] } However, I ran into a problem where --login changes the current working directory to Windows home. I want the current directory to be at the root of my workspace. My further attempt was I tried add a flag -c 'cd ${workspaceRoot}' . However, the bash would crashed on start. I could properly get to current directory by removing --login , but without login mode,

How to distribute a GTK+ application on Windows?

ぃ、小莉子 提交于 2019-11-28 10:30:41
I have installed GTK+ (specifically GTK3) via MSYS and MinGW on Windows. I now want to copy the GTK+ dlls to my application directory so that it can be run on a computer without a global GTK+ installation. Which dlls are required for GTK+ to operate? You have some hints on the Windows page of the GTK+ website . This is the section named Building and distributing your application . It features a blog post about distributing a GTK+ application on Windows . The solution proposed there is to create a MSYS2 package for your application, and then install it and all its dependencies (GTK+ among them)

How do I integrate MSYS2 shell into Visual studio code on Window?

放肆的年华 提交于 2019-11-27 10:36:37
问题 I tried to integrate MSYS2 shell into Visual studio Code integrated terminal. Here's my user settings: { "terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe", "terminal.integrated.shellArgs.windows": ["--login", "-i"] } However, I ran into a problem where --login changes the current working directory to Windows home. I want the current directory to be at the root of my workspace. My further attempt was I tried add a flag -c 'cd ${workspaceRoot}' . However, the bash would

How to install MinGW-w64 and MSYS2?

可紊 提交于 2019-11-26 19:18:14
I am trying to build some open source library. I need package management system to easily download the dependencies. At first I am using MinGW+MSYS . But the included packages are limited. Someone told me to use MinGW-w64 + MSYS2 . I downloaded the mingw-w64-install from here . When running, it reports the following error. How to fix it? And btw, from the MinGW-w64 download page, I see a lot of download links. Even Cygwin is listed. How Cygwin and MinGW-w64 are related? My current understanding is, in the time of MinGW+MSYS , MSYS is just a nice addon to MinGW, while in MinGW-w64 + MSYS2 ,

Change the location of the ~ directory in a Windows install of Git Bash

本秂侑毒 提交于 2019-11-26 17:30:24
问题 I am not even sure I am asking the right question. Let me explain my situation: This is about Git on Windows 7. My company sets up the Windows user directory on a network drive, not on the local hard drive (for backup and other purposes beyond the scope of this question). I cannot change that policy. I CAN have local files outside of that scheme however and that is how my Apache server is set up. Entirely local. I installed Git. It installs Bash. When I fire up Bash and cd ~ (change to the

How to install MinGW-w64 and MSYS2?

南笙酒味 提交于 2019-11-26 04:58:28
问题 I am trying to build some open source library. I need package management system to easily download the dependencies. At first I am using MinGW+MSYS . But the included packages are limited. Someone told me to use MinGW-w64 + MSYS2 . I downloaded the mingw-w64-install from here. When running, it reports the following error. How to fix it? And btw, from the MinGW-w64 download page, I see a lot of download links. Even Cygwin is listed. How Cygwin and MinGW-w64 are related? My current

How are msys, msys2, and msysgit related to each other?

不问归期 提交于 2019-11-26 00:39:55
问题 I\'ve been searching around, but I can\'t find a thorough description of what\'s going on with these 3 versions of MSYS. (It\'s entirely possible I just don\'t know what to look for.) I do understand that MSYS is a minimal port of Linux tools to support development using MinGW, but I\'m not clear on the relationship between the three of them or the teams that developed/maintain them. Particular issues to address: Which ones are under active development? (In particular, is MSYS dead and MSYS2