msys2

How to install Python Development tools on MSYS2

与世无争的帅哥 提交于 2019-12-05 16:35:42
I need to install the Python development tools on MSYS2. My Python installation works (by either calling python3.6 or python3 : $ python3.6 Python 3.6.5 (default, Apr 16 2018, 10:17:38) [GCC 7.3.0 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> Setuptools is installed: $ pip3 install setuptools Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (36.4.0) I have tried to install as it suggested in How to install python developer package? . MSYS2 does not have yum so I used pacman : $ pacman -S python-devel error:

How to change HOME directory and start directory on MSYS2?

安稳与你 提交于 2019-12-05 11:52:17
问题 I have installed MinGW-w64 and MSYS2. But how do I change the HOME directory in MSYS2? So that when I type cd $home or cd ~ it goes to another directory that I defined. And how do I write a code so that the starting directory is always where the .bat file is placed on? In cmd I used this code: %~d1 cd "%~p1" call cmd so when I open cmd on my desktop, it starts from the directory on desktop. How can I do a similar thing with msys2? 回答1: If you would like to use your windows home folder as the

openssl build MSYS2

一曲冷凌霜 提交于 2019-12-04 13:56:41
前文 git等各种源码仓库 https://www.cnblogs.com/marklove/p/11831539.html x1 >> O git clone https://github.com/openssl/openssl git submodule update --init --recursive ./configure mingw64 shared ./Configure mingw64 初始化配置 2 pacman -S base-devel pacman -S mingw64/mingw-w64-x86_64-gcc windows 刚开始编译时提示找不到gcc 添加环境变量 export PATH=$PATH:/mingw64/bin $source /etc/profile 将openssl源码复制到C:\msys64\home\world下 MSYS2 SHELL 切换到 /home/world/openssl ./Configure mingw64 make ============================================ ubuntu下 进去openssl perl Configure gcc shared make 常用软件包编译 常用软件包我们可以简单的使用命令直接从官网安装即可,比如安装openssl: 32bit:

How to use gitk with msys2?

我的梦境 提交于 2019-12-04 10:47:40
问题 I am using MSYS2 in Windows 10. git works fine, however gitk gives the error: /usr/bin/gitk: line 3: exec: wish: not found Some googling suggested this may be because TK is not installed, however I tried: pacman -S tk which gave the error: error: target not found: tk How do I get gitk to work in this environment? 回答1: Try running the 64-bit MinGW shell (one of the three environments provided by MSYS2), installing the package mingw-w64-x86_64-tk , and then running gitk . Gitk works on my

Step by step instruction to install Rust and Cargo for mingw with Msys2?

不羁岁月 提交于 2019-12-04 08:35:42
问题 I tried to install Rust on Cygwin but failed to be able link with mingw. Now I am trying to install it with Msys2. I already installed Msys2 and Mingw. I tried to follow this wiki page but I got lost at number 2: Download and install Rust+Cargo using the installer but be sure to disable the Linker and platform libraries option. Is it referring to the "rustup-init.exe" on the install page? Should I double click to run this file or run it from Msys2? I tried to run from Msys2 and got the

How to change HOME directory and start directory on MSYS2?

一笑奈何 提交于 2019-12-04 01:36:38
I have installed MinGW-w64 and MSYS2. But how do I change the HOME directory in MSYS2? So that when I type cd $home or cd ~ it goes to another directory that I defined. And how do I write a code so that the starting directory is always where the .bat file is placed on? In cmd I used this code: %~d1 cd "%~p1" call cmd so when I open cmd on my desktop, it starts from the directory on desktop. How can I do a similar thing with msys2? dr ganjoo If you would like to use your windows home folder as the home folder for MSYS2, you can edit /etc/nsswitch.conf and write: db_home: windows Msys2 will use

win上傻瓜化安装Qt开发环境

感情迁移 提交于 2019-12-03 22:27:18
win上傻瓜化安装Qt开发环境 古老的 MSYS 搭建的开发环境不仅存在一些兼容性问题,而且还很繁琐,幸好 mingw-build 项目的开发者又做了更进一步的改进,他们开发了 MSYS2 项目。这个项目不仅兼容性更好,而且引入了包管理机制,可以直接从网上下载相关的软件,并解决相关的依赖性问题。 这个项目的主页在 http://sourceforge.net/projects/msys2/ 进入项目主页后,根据你的系统选择 32 位或者 64 位,现在大家使用的系统应该都是 64 位的了。下载好 base 包,然后解压缩到什么地方,一般我都是解压缩到 D 盘的根目录下,然后把 bin 目录加入系统 PATH 。在 MSYS2 根目录下有 3 个 bat 文件,它们是启动 MSYS2 的命令,根据需要启动,如果你不做开发,那么只需要启动 msys2_shell.bat 就足够了;如果你需要软件开发,那么就启动 mingw64_shell.bat ,它会在 MSYS 目录下新建一个 mingw64 的目录,里面存放着 mingw 编译器及其类库。首次运行时会进行一些系统设定,等到命令提示符出现就完成了,此时需要退出 MSYS2 ,然后重新进入。 在 MSYS 窗口左上角点击那个图标,弹出的菜单中有 option ,可以设置 MSYS2 的一些参数

Win7下msys64安装mingw工具链

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 20:40:08
1. 安装msys64 安装到指定目录, 例如C:\msys64 2. 命令行更新 运行msys2.exe打开命令行窗口 执行命令 pacman -Syuu 因为执行更新会把之前修改的三个文件覆盖了。你可以先备份修改之后的,然后再恢复! 3. 修改安装源 进入msys64/etc/pacman.d/, 需要修改三个文件, 都添加在Server列表第一行 mirrorlist.mingw32 Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/ mirrorlist.mingw64 Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/ mirrorlist.msys Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch/ 4. 命令行安装 在msys2窗口内, 命令行执行 pacman -S --needed base-devel mingw-w64-x86_64-toolchain git mingw-w64-x86_64-cmake 稍等完成之后就拥有了mingw64 工具链 5. 配置路径 将msys2(你的msys2安装目录一般在C:\msys64)/mingw64/bin/ 添加到PATH目录 这一步很重要

How to get native windows decorations on GTK3 on Windows 7+ and MSYS2

我与影子孤独终老i 提交于 2019-12-03 11:51:47
问题 I am trying to port my application from linux to windows and I have a problem with theming. In linux this works out of a box, just compile it and application is using good theme and looks native. I have installed gtkmm3 and gtk3 in MSYS2 and I am building it with CMake. This is OK, I had to copy all dlls to directory with binary to be able to execute it. I did not copy anything else. I am trying to create "unzip and execute" package. My problem is, that application looks out of place. It does

Installing GTK for use in Code::Blocks on Windows 10

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Original Question I am having trouble installing gtk to start building GUIs in C++ on Code::Blocks. Could anyone nudge me in the right direction? I'm running Windows 10 (64-bit) on a Lenovo. I attempted an installation guide ( https://www.youtube.com/watch?v=jvQXvTtSIQo ), stack overflow ( How do you install GTK+ 3.0 on Windows? ), the official GTK installation guide ( https://www.gtk.org/download/windows.php ), a written guide ( http://www.tarnyko.net/repo/gtk3_build_system/tutorial/gtk3_tutorial.htm ), and just noticed a very similar stack