cygwin

Where to source .profile in .bash_profile to install RVM in Cygwin?

三世轮回 提交于 2020-03-06 02:58:07
问题 I am installing RVM on a windows machine using cygwin. I used the command is curl -L https://get.rvm.io | bash -s stable to get RVM. But there is a problem. Please see the WARNING section in the output below and please help me to fix it. # mspc, # # Thank you for using RVM! # We sincerely hope that RVM helps to make your life easier and more enjoyable!!! # # ~Wayne, Michal & team. In case of problems: http://rvm.io/help and https://twitter.com/rvm_io * WARNING: You have '~/.profile' file, you

Windows上的Git:你如何设置合并工具?

感情迁移 提交于 2020-03-05 21:21:22
我在Cygwin上尝试过msysGit和Git。 两者都可以很好地完成它们并且完美地运行gitk和git-gui。 现在我如何配置合并工具? (Vimdiff在Cygwin上工作,但最好是我想为一些喜欢Windows的同事提供一些用户友好的东西。) #1楼 我不得不在Windows 7上使用msysGit删除额外的引用,不知道为什么。 git config --global merge.tool p4merge git config --global mergetool.p4merge.cmd 'p4merge $BASE $LOCAL $REMOTE $MERGED' #2楼 我从他们的手册( http://manual.winmerge.org/CommandLine.html )使用名为WinMerge( http://winmerge.org/ )的应用程序 这是我通过 .gitconfig 从 mergetool 指令使用的bash脚本 #!/bin/sh # using winmerge with git # replaces unix style null files with a newly created empty windows temp file file1=$1 if [ "$file1" == '/dev/null' ] || [ "$file1" ==

windows下编译redis5.0+

纵饮孤独 提交于 2020-03-05 19:05:43
1、首先安装Cygwin, Cygwin传送 ,安装完成将目录加入环境变量。 注意:镜像的时候添加阿里的源,输入 ( http://mirrors.aliyun.com/cygwin/ ),然后点击旁边的Add。 要额外添加 make,gcc-core,gcc-g++ libgcc1 libgccpp1 2、下载 redis 源码,并解压到cygwin安装目录下的home文件夹 3、删除源码deps 目录下的hiredis 目录,并下载最新的代码 hiredis ,然后再hiredis目录执行 make 命令 4、进入lua的目录,执行 make generic 命令。 5、进入linenoise目录,执行 make 命令 6、以上都执行成功,回到redis根目录执行执行 make 命令。 注:如果编译后的redis文件,复制到其他没有安装cygwin环境的机器,则需要复制 cygwin安装目录下bin目录下的cygwin1.dll到redis运行目录 执行成功,会在redis/src目录看到redis相关的exe文件,执行redis-server.exe,看到redis启动则说明编译成功。 来源: oschina 链接: https://my.oschina.net/liucy99/blog/3188688

running Python script placed in PATH (cygwin)

左心房为你撑大大i 提交于 2020-03-05 03:53:49
问题 I want to place my Python script into directory listed in PATH and call that script just by typing its name from any location in cygwin on Windows. I'm using shebang #!/usr/bin/env python that works perfect on Linux machine. Nevertheless by calling the following line from windows cygwin I get an error: $ my_script.py some arguments C:\app\Python36\python.exe: can't open file '/cygdrive/d/11_scripts/my_script.py': [Errno 2] No such file or directory Problem is caused by the fact that cygwin

running Python script placed in PATH (cygwin)

*爱你&永不变心* 提交于 2020-03-05 03:50:27
问题 I want to place my Python script into directory listed in PATH and call that script just by typing its name from any location in cygwin on Windows. I'm using shebang #!/usr/bin/env python that works perfect on Linux machine. Nevertheless by calling the following line from windows cygwin I get an error: $ my_script.py some arguments C:\app\Python36\python.exe: can't open file '/cygdrive/d/11_scripts/my_script.py': [Errno 2] No such file or directory Problem is caused by the fact that cygwin

NDK学习三: 纯手工编译Hello World

孤人 提交于 2020-03-03 13:58:34
ndk学习之旅 http://blog.csdn.net/pathfinder163/article/details/7178909 http://www.cnblogs.com/yejiurui/p/3476565.html 谷歌改良了ndk的开发流程,对于Windows环境下NDK的开发,如果使用的NDK是r7之前的版本,必须要安装Cygwin才能使用NDK。而在NDKr7开始,Google的Windows版的NDK提供了一个ndk-build.cmd的脚本,这样,就可以直接利用这个脚本编译,而不需要使用Cygwin了。只需要为Eclipse Android工程添加一个Builders,而为Eclipse配置的builder,其实就是在执行Cygwin,然后传递ndk-build作为参数,这样就能让Eclipse自动编译NDK了。那么我们现在开始吧: 一、关于NDK的一点解释: NDK全称:Native Development Kit。 NDK提供了一系列的工具,帮助开发者快速开发C(或C++)的动态库,并能自动将so和java应用一起打包成apk。这些工具对开发者的帮助是巨大的。 NDK集成了交叉编译器,并提供了相应的mk文件隔离CPU、平台、ABI等差异,开发人员只需要简单修改mk文件(指出“哪些文件需要编译”、“编译特性要求”等),就可以创建出so。

cygwin学习

只愿长相守 提交于 2020-03-02 14:27:02
原文链接: https://www.cnblogs.com/endv/p/7674720.html 参考链接: https://zhuanlan.zhihu.com/p/56692626 根据cygwin user guide翻译整理,希望对大家有所帮助。有错误清指出。 1 引言 cygwin是一个在windows平台上运行的unix模拟环境,是cygnus solutions公司开发的自由软件(该公司开发了很多好东西,著名的还有eCos,不过现已被Redhat收购)。它对于学习unix/linux操作环境,或者从unix到windows的应用程序移植,或者进行某些特殊的开发工作,尤其是使用gnu工具集在windows上进行嵌入式系统开发,非常有用。随着嵌入式系统开发在国内日渐流行,越来越多的开发者对cygwin产生了兴趣。本文将对其作一介绍。 --------------------------------------------------------------------- 根据cygwin user guide翻译整理,希望对大家有所帮助。有错误清指出。 1 引言 cygwin是一个在windows平台上运行的unix模拟环境,是cygnus solutions公司开发的自由软件(该公司开发了很多好东西,著名的还有eCos,不过现已被Redhat收购)。它对于学习unix

cygwin64 编译 redis2.8.3源码

匆匆过客 提交于 2020-03-01 13:00:48
1) windows 7 64 2) 安装 cygwin 64 下载相关的库 3) 下载redis 2.8.3源码 wget http: //download.redis.io/releases/redis-2.8.3.tar.gz 进入到deps目录,修改文件 deps/hiredis/fmacros.h #ifndef __HIREDIS_FMACRO_H #define __HIREDIS_FMACRO_H #if !defined(_BSD_SOURCE) #define _BSD_SOURCE #endif #if defined(__sun__) #define _POSIX_C_SOURCE 200112L #elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__) #define _XOPEN_SOURCE 600 #else #define _XOPEN_SOURCE #endif //这是添加的. #if defined(__linux__) || defined(__CYGWIN__) #define _GNU_SOURCE #define _DEFAULT_SOURCE #endif #endif 然后编译deps cd deps make lua linenoise

Windows 7 64位下编译Redis-2.8.3/Redis-3.2.0

∥☆過路亽.° 提交于 2020-03-01 12:21:01
互联网上也有提供windows版本的Redis,但一般会比官方低两个版本以上,但这里,我们要亲自动手进行最新版本的编译。 ###在win平台下编译Redis一般有两种方式: ####1. 基于MS VC进行编译,生成原生可执行文件 该方式需要创建MSVC项目文件以及对Redis源码进行适当调整。 这里提供一个可行版本,由微软开放团队进行维护,目前版本是Redis 2.6, 有MS VC的朋友可以尝试一下: 猛击: https://github.com/MSOpenTech/redis ####2. 基于Cygwin进行编译 Cygwin是运行在windows平台上的POSIX系统(例如unix,linux,bsd)模拟环境,为我们提供编译环境。 ###本文将以Cygwin方式进行Redis常用版本的编译,这里先说明一下编译环境: Windows 7 64位 + Cygwin 64位 (已安装好gcc 4.8.1 及 make环境) ###下面进行详细描述: ####1. 安装Cygwin(需要4~6G disk space) 其安装过程时间会较长,大家可以先去干一些喜欢做的事情,安装过程就省略了 ####2. 运行Cygwin,检查编辑译环境 $ gcc -v ... Target: x86_64-pc-cygwin ... Thread model: posix gcc

wireshark windows 编译

℡╲_俬逩灬. 提交于 2020-02-29 02:41:55
@echo off set baseDir=%cd% set WIRESHARK_LIB_DIR=%baseDir%/libs/wireshark-win32-libs-2.2 set WIRESHARK_LIBS=%baseDir%/libs/wireshark-win32-libs-2.2 set WIRESHARK_CYGWIN_INSTALL_PATH=D:\GNU\CygWin set DEVENVCOM="%VS120COMNTOOLS%..\..\Common7\IDE\devenv.com" cd build cmake -G"Visual Studio 12 2013" ../wireshark-2.2.1 %DEVENVCOM% Wireshark.sln /rebuild "Debug|Win32" pause 建议使用vs 2013,vs2015编译报错 参考:http://blog.csdn.net/mawu_1014/article/details/51693766 设置cygwin组件,如果安装遗漏可以在http://mirrors.163.com/cygwin/x86_64/release/找到对应的包,解压放入对应目录 下载https://anonsvn.wireshark.org/wireshark-win32-libs/trunk