cygwin

Change Windows shell in Jenkins (from Cygwin to Git Bash/msys)

ⅰ亾dé卋堺 提交于 2020-01-29 03:45:08
问题 I have a Windows 7 and a Windows Server 2012 slave with the Jenkins agent and Cygwin already set up. I want to avoid Cygwin and just use the Git Bash shell that comes with Git for Windows (I think it's called msysgit). So I renamed C:\cygwin64 to C:\cygwin64.bak , removed C:\cygwin64\bin from the path, and rebooted. The Windows 2012 box now works fine, (Unix) shell scripts run, $OSTYPE = msys , and uname = MSYS_NT-6.3 (indicating that the Git Bash shell is running). The Windows 7 box won't

install arm-none-eabi into cygwin with win10 OS

给你一囗甜甜゛ 提交于 2020-01-28 11:54:37
1 Install Cygwin with WIN10 https://cygwin.com/install.html Installing and Updating Cygwin Packages Installing and Updating Cygwin for 64-bit versions of Windows Run setup-x86_64.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity of this binary using this public key. Installing and Updating Cygwin for 32-bit versions of Windows Run setup-x86.exe any time you want to update or install a Cygwin package for 32-bit windows. The signature for setup-x86.exe can be used to verify the validity of this

windows8.1下安装Cygwin并通过apt-cyg安装软件包

与世无争的帅哥 提交于 2020-01-28 02:40:16
参考 http://yuanshuilee.blog.163.com/blog/static/2176972752014126786185/ http://www.cnblogs.com/zhang-pengcheng/p/4156582.html http://my.oschina.net/funs/blog/109345 Cygwin第一次玩,unix操作系统也是第一次玩,什么都不熟悉,上手慢。 安装Cygwin很简单,网上安装教程很多,我就不细说了,但记住在选择软件包的时候记住把wget组件勾上,下面会用到的。 说说安装apt-cyg和通过apt-cyg下载软件包吧。 首先通过wget把apt-cyg下载下来,Cygwin64 Terminal命令行窗口中输入以下命令 #wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg wget https://github.com/westfly/apt-cyg/blob/master/apt-cyg chmod +x apt-cyg mv apt-cyg ../../bin 不过上面两哥地址下载下来的文件都有问题,不知道为什么。所以只能手动进入链接下载后解压把一个400多行的apt-cyg脚本放进Cygwin安装目录的bin目录下即可。 然后修改下软件源即可下载软件包了: apt

cygwin的安装和简单配置

戏子无情 提交于 2020-01-27 08:06:48
windows和linux各有其优越性,可以安装在同一台电脑上,但切换要重启。同时拥有两台电脑,一台装win,一台装linux,自然非常好,但具备此条件的不多。本文介绍cygwin,它可以让你在win下拥有linux开发环境,并且不用切换。 简单的讲述一下cygwin的安装和配置,入门级教程,还请各位高手指点一二。 首先到 http://www.cygwin.com 下载 setup.exe ,接着建立安装目录,如X:\cygwin,将setup.exe放到此目录,   BEGIN-> 点击setup.exe,Next->选Install from Internet,Next->填写Root Directory,如X:\cygwin,Next->填写Local Package Directory,如X:\cygwin\ftp,Next->   选Direct Connection,Next->   选一个较快的ftp,Next->   到了关键步骤,如果仅想安装基本系统,直接Next;如果想完全安装,点击 All旁边的旋转状图标,将Default切换至Install;如果和我一 样,仅想在命令行下写写程序,则只要将 gcc、make等开发工具选上,还有openssh等;选好后,Next->   开始下载,Take a coffee break。回来后,Next->  

Text file creation issue where new lines created when not really EOL

折月煮酒 提交于 2020-01-26 04:05:14
问题 I am importing some text data from a set of files I have created in python (converting metadata/xml records to text) into excel. It mostly works fine except that there are new lines inserted at points where the text is simply in a paragraph. This is an issue in the file creation process. Is it possible to clean the data automatically to maintain data in the same row until it meets an escape/new character? As this site doesn't allow attachments I have attached examples here. anz*_log.txt --

Can't install uwsgi on cygwin

谁都会走 提交于 2020-01-25 12:47:58
问题 My main OS is windows 10 but I am using cygwin as a terminal. While installing uwsgi through pip3 install uwsgi command , it fails with an error message " AttributeError: module 'os' has no attribute 'uname'" 回答1: uWSGI needs a c compiler to build and the os.uname to use platform.uname needs to be updated in the uwsgiconfig.py file. Here is how to fix for windows 10: cd to uwsgi install directory and open uwsgiconfig.py replace os.uname with platform.uname for the following lines of code:

Cygwin: Perl script $ENV{PATH} call returns unix path. How do I change it?

不羁的心 提交于 2020-01-25 11:54:08
问题 I am calling a Perl script from cygwin. The issue that I am having is that when it calls $ENV{PATH}, the path is receives is a unix path. How do I change my shell so it returns a DOS path? 回答1: Cygwin is a Unix-emulation environment for Windows. It wouldn't work unless $PATH was a Unix-style path. If you want perl to give you a DOS path, use a DOS-compatible Perl, like Strawberry Perl. You can even run Strawberry Perl (or whatever Windows-build of perl you use) from Cygwin if you want to. 回答2

Nutch在Windows中安装之细解

蹲街弑〆低调 提交于 2020-01-25 08:29:59
Nutch在Windows中安装之细解   近来Nutch一词在网络中时有所见,但囿于平常工作繁忙而未能潜心细读与研究,只知道Nutch是Apache组织的一个开源项目,利用它用户可以建立自己内部网的搜索引擎,也可以建立针对整个网络的搜索引擎。好在春节假日期间,终于得空可以从容对其进行一番解读与测试了。在使用Nutch之前,当然是需要先对其进行安装了。用搜索引擎查找了一下相关内容,发现大部分关于Nutch如何安装的文章都是基于Linux的,而基于Windows安装的文章虽有,但非常简略。由于运行Nutch自带的脚本命令需要Linux的环境,所以必须首先安装Cygwin来模拟这种环境,而Cygwin本身的安装与使用也不是一件简单的事。下面,就让笔者对Nutch在Windows系统中的安装进行一番细解吧!   1、安装Cygwin   首先,我们去 http://www-inst.eecs.berkeley.edu/~instcd/iso/ 下载到Cygwin软件的ISO文件,用Daemon软件将其设为虚拟光驱后,双击其中的Setup文件,出现程序安装的向导界面(如图1所示)。   点击“下一步”后,安装向导要求选择Cygwin的安装方式,如图2所示:   图示中共有三种安装方式:   (1)Install from Internet:从Internet上下载并安装软件;   (2

Windows下利用Cygwin搭建C/C++开发环境GCC

爱⌒轻易说出口 提交于 2020-01-24 17:24:30
1.下载cygwin 下载地址: http://www.cygwin.com/ 2.下载完成后点击运行 3.选择镜像时可以选择添加清华镜像,在”User URL”处输入以下地址: https://mirrors.tuna.tsinghua.edu.cn/cygwin/ 点击”Add”按钮, 然后选中” https://mirrors.tuna.tsinghua.edu.cn ”, 点击”下一步”进行安装。 4.在这个页面之后,就是最重要的一个地方了,会自动进入下一步。 5.在画红线处分别搜索 gcc-core、gcc-g++、make、gdb、binutils,以上所有项目都在 devel 文件夹下。 ​原本的 5.3.0-5 位置也是 Skip,在点击一次之后,出现如下界面即可,其他的也一样。 之后点击左下角的下一步。 这里检查要安装的项目,和上面选择的是不一样的,增加了许多相关的文件,不好检查,不过一般没问题,所以直接点击下一步。 此时开始下载并安装Cygwin,时间稍微久一点。 6.将安装目录下的 bin目录 添加到 Path 环境变量。 7.验证是否安装成功。打开命令提示符窗口(自行百度),输入 gcc -v,输出版本号说明安装成功。 --- 内容部分源自: http://blog.sina.com.cn/s/blog_143cf62360102wrgd.html 来源:

Using mingw32 glfw3 and glew32s binaries in cygwin32 without mixing cygwin X11 GLX with WGL

ⅰ亾dé卋堺 提交于 2020-01-24 15:40:32
问题 I want to use the cygwin32 compiler instead of mingw32. According to http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/glfw/ , the GLX programs of gl on cygwin don't work with glfw. So I tried to use mingw32 binaries of glfw3 in cygwin32, which gave errors like 'GL_ARRAY_BUFFER' was not declared in this scope. I solved that by linking with mingw32 binaries of glew32, which gave /usr/include/w32api/GL/glu.h:68:79: error: expected ')' before '*' token which I solved two different ways