msys

configure: error: no acceptable C compiler found in $PATH

可紊 提交于 2019-12-07 02:38:35
问题 I am trying to Build and Install the Apache Thrift compiler and libraries I had to type this command is shown in instructions ./configure && make But I get this error: checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/PATH/TO/thrift-0.9.3': configure: error: no acceptable C compiler found in $PATH When I type in my command prompt gcc --version I get this gcc (GCC) 5.3.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the

Wrong path with Git Bash for Windows when using remote add?

冷暖自知 提交于 2019-12-06 16:59:29
I have some bash code like this: repo="/mnt/shared/my/repo path sometimes with spaces.git" echo "\$repo = $repo" git remote add origin "${repo}" git remote -v where /mnt/shared is a mountpoint to a network drive created in the git cygwin fstab file that works fine. I can interact with it through the Git bash shell using ls and pushing and pulling repos from it no problem. I use the above code in a loop to maintain a large set of repos, and if my repo variable is like above without any special characters at all (aside from spaces, which don't affect this situation at all), I get the following

SqlCipher Mingw/msys problem

若如初见. 提交于 2019-12-06 16:45:47
I have a problem - i can't compile SqlCipher. I'm using this http://groups.google.com/group/sqlcipher/browse_thread/thread/55c6296b56bf4533/c792bbec6df7d4f4?tvc=2#c792bbec6df7d4f4 instructions (thx to Sam) but still can't compile it. I do the following: $ ./configure --disable-tcl CFLAGS="-DSQLITE_HAS_CODEC -I/usr/usr/src/openssl/i nclude" LDFLAGS="-leay32" checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking for gcc... gcc checking for C compiler default output file name... rm: cannot remove directory `conftest': Is a directory a.exe checking

Is it possible to mimic process substitution on msys /mingw (with bash 3.x)

╄→尐↘猪︶ㄣ 提交于 2019-12-06 10:37:43
I am trying to use process substitution to avoid using temporary files. I tried the following: diff <(echo "a") <(echo "b") on mingw32/msys (from http://www.mingw.org/ as of Dec 2013), and got: sh: syntax error near unexpected token `(' Running the same thing on Ubuntu 12.04 returns: 1c1 < a --- > b The msys I use probably has bash 3.1. I was wondering if it is possible to work around the issue so that the same job can be done in msys/older bash without using temporary files. Thanks. I mananed to do process substitution in bash 3.x. The syntax is correct. It is supported by bash shell. So I

Error during making “xz-5.2.1” with MinGW/MSYS

烈酒焚心 提交于 2019-12-06 07:53:25
I am trying to compile " xz-5.2.1 " in MinGW/MSYS environment. I see the following errors: #error UINT32_C is not defined and unsigned int is not 32-bit. error: #error size_t is not 32-bit or 64-bit I am not familiar with MinGW, could anyone shed some light on this? It looks like some macro definition are missing. Some header file missing? ADD 1 The commands I used to compile the xz-5.2.1 are: ./configure ./make The error screenshot: Some background, I am following this link to compile the Tesseract-OCR library. And this is just one of the steps. ADD 2 Based on the error message, I checked the

fabric cannot execute remote command on windows

☆樱花仙子☆ 提交于 2019-12-06 04:06:08
问题 I'm using fabric to run some command on a remote windows 7 system. and what i did was like: env.hosts=['192.168.91.235'] env.user='test' env.password='123456' def test_windows(): run("ifconfig",shell=False) pass And it works for "ipconfig" and outputs the network infors of remote system, so i'm sure the ssh connection is OK. But it does not work for any other command i tried, like "cd", "echo hello". The error was : out: Unable to execute command or shell on remote system: Failed to Execute

CMake failing to statically link SDL2

折月煮酒 提交于 2019-12-06 02:25:57
问题 I'm trying to build a simple SDL2 game with CMake and MSYS Makefiles. I want to statically link SDL2 so I can distribute a single executable without having to include the SDL2.dll. Here's my CMakeLists.txt file: project(racer-sdl) cmake_minimum_required(VERSION 2.8) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_EXE_LINKER_FLAGS "-static") include(FindPkgConfig) pkg_search_module(SDL2 sdl2) if (SDL2_FOUND) message(STATUS "Using SDL2") add_definitions(-DUSE_SDL2) include

从 mingw32 转移到 cygwin 然后放弃 cygwin 采用 msys2

旧街凉风 提交于 2019-12-05 18:53:30
mingw32 以及自带的 msys 用着挺舒服的。但是好久都没有更新了,gcc 编译器还是 4.x 。上次编译 assimp 不过,错误消息是 obj 文件太大。搜索了一下还是决定用新版本的 gcc 。而且现在都是用 64 位的 windows,我也想用 64 位编译器,所以决定用 cygwin 了,而且还在不断的更新。 安装完 cygwin64 开始编译 opengl 程序,居然编译不过,错误消息也很微妙。这个时候我看了 GL 的头文件是位于 cygwin64/usr/include/w32api/GL 这个目录下,而 cygwin 是完全模拟 Unix 平台,因此应该重新安装相关的包。我以在 cygwin64 编译 glfw 为例来指明要安装的东西。首先就是要安装 X Window ,参考这里安装。下面是一些要安装的包。安装完后就会发现另外有一个 GL 目录,这个目录的头文件就可以直接使用了。 xorg-server xinit xorg-docs xlaunch libX11-devel for Xlib.h Xutil.h Xmd.h libXrandr-devel 编译 glfw 需要 libXinerama-devel 编译 glfw 需要 libXcursor-devel 编译 glfw 需要 libGL-devel for OpenGL libEGL-devel

MinGW MSYS, MSVCRT, and the TZ environment variable

寵の児 提交于 2019-12-05 17:27:41
In short, how to make both MSVCRT and MinGW MSYS share the TZ environment variable without conflicts? Or, how to make both support timezones without conflicts? Further information In order to have date command of MSYS displaying correct local time, and because MSYS itself uses its own C runtime instead of MSVCRT, I have set TZ environment variable according to GNU C library documentation : export TZ="BRT+3BRST,M10.3.0/0,M2.3.0/0" Unfortunately, this conflicts with Microsoft C runtime specs , which dictates for the DST name part: If daylight saving time is never in effect in the locality, set

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: