cygwin

cygwin的离线安装包

梦想的初衷 提交于 2021-01-31 04:59:07
之前需要再内网的环境中,使用cygwin ,当时cygwin的使用经验不多,所以就将外网的整个cygwin文件夹 copy到了内网,结果存在一些命令无法执行的状况。比如运行“vi”,会提示不能执行二进制文件。 正确的方法应该是这样的。 在一台可以联网的电脑上,安装cygwin, 然后,双击“setup.exe”进行相关包的安装,如果要制作离线安装包,那么,请点击“download without installing" 命令。 默认为 “install from internet”. 输入自己需要安装的命令包,会自动下载相关包以及依赖包。当一切完成后,所有的包都会在cygwindownloads 里面了。 将“setup.exe”以及 cygwindownloads copy到另一台机器,(无需联网),双击“setup.exe”,选择“install from local directory” 之后按着提示选择存放包的路径/ cygwindownloads 后,执行安装,就可以了。 来源: oschina 链接: https://my.oschina.net/u/867090/blog/144745

Ruby won't let me import the BigDecimal library

半世苍凉 提交于 2021-01-29 12:47:47
问题 I tried using require 'bigdecimal' , but I got an error saying that it can't load the file. /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bigdecimal (LoadError) from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' What's going on here? 回答1: ruby-bigdecimal is a separate package in Cygwin. You'll need to install that. 来源: https://stackoverflow.com/questions/51682003/ruby-wont-let-me-import-the-bigdecimal-library

How to fix Cygwin using wrong .ssh directory no matter what I do?

柔情痞子 提交于 2021-01-27 18:54:26
问题 On my Cygwin machine $HOME is cygwdrive/c/Users/me (i.e. not the sometimes default of /home/me ) which I appreciate. However, when I am using git, and trying to use ssh keys, it always checks in /home/me/.ssh for my keys. To get around this, I tried this solution however, putting a config file in ~/.ssh doesn't work because I then have copy that same file to /home/me/.ssh because that is where git (when run from Cygwin) looks. Is there some way I can avoid this? As it stands right now I have

24-Bit Console Color ANSI Codes in Cygwin

余生长醉 提交于 2021-01-27 18:07:24
问题 I wrote this simple C#/.NET Core console app code which outputs a set of color cubes of 7x7x7, testing 24-bit color rather than 256-color mode, as well as a custom TTF font I use that's derived from the "Ultimate Old School PC Font Pack" to include some extra Unicode block characters. It works great in the Windows 10 terminal as seen, but tanks in Cygwin, even though it should be supported according to Github (https://gist.github.com/XVilka/8346728). Any ideas on what could be wrong, if there

24-Bit Console Color ANSI Codes in Cygwin

此生再无相见时 提交于 2021-01-27 17:59:23
问题 I wrote this simple C#/.NET Core console app code which outputs a set of color cubes of 7x7x7, testing 24-bit color rather than 256-color mode, as well as a custom TTF font I use that's derived from the "Ultimate Old School PC Font Pack" to include some extra Unicode block characters. It works great in the Windows 10 terminal as seen, but tanks in Cygwin, even though it should be supported according to Github (https://gist.github.com/XVilka/8346728). Any ideas on what could be wrong, if there

Libraries “rt” and “dl” in Cygwin

假装没事ソ 提交于 2021-01-27 13:55:27
问题 Perhaps this is stupid but I'm unable to find out which package I have to install in Cygwin to fix the following missing libraries: config.status: creating unix.buildinfo config.status: creating include/HsUnixConfig.h cabal.exe: Missing dependencies on foreign libraries: * Missing header file: HsUnix.h * Missing C libraries: rt, dl Any ideas or how do you generally find out which package to install when you get feedback that file xxx is missing (I remember that in gentoo this was quite

How do I make a command in cygwin to run Sublime Text?

随声附和 提交于 2021-01-27 06:32:05
问题 I'm trying to mimic the subl command in iterm for mac computers in cygwin. Basically, I want to be able to open a current folder from cygwin by typing subl . I haven't found any good instructions. I know where my .bashrc file is located. I just dont know what to do to create the command subl and make it so that the path following subl opens with Sublime. Can anyone help? 回答1: You'd want to make an alias and source it from bashrc. Example Create a file ~/.bash_aliases with: alias subl='

How do I make a command in cygwin to run Sublime Text?

时光怂恿深爱的人放手 提交于 2021-01-27 06:31:29
问题 I'm trying to mimic the subl command in iterm for mac computers in cygwin. Basically, I want to be able to open a current folder from cygwin by typing subl . I haven't found any good instructions. I know where my .bashrc file is located. I just dont know what to do to create the command subl and make it so that the path following subl opens with Sublime. Can anyone help? 回答1: You'd want to make an alias and source it from bashrc. Example Create a file ~/.bash_aliases with: alias subl='

Is there a java sdk for cygwin?

妖精的绣舞 提交于 2021-01-27 05:26:28
问题 Is there a java sdk for cygwin? 回答1: It would be nice if there were a native cygwin implementation which used the cygwin file system and X-windows for display, unfortunately I am not aware of such a release. I would assume it is quite an effort to port OpenJDK as well, but I haven't tried. 回答2: Although there is no java sdk for cygwin, you can get the Windows jdk to work if you are willing to accommodate workarounds for various problems: some cygwin paths are not handled as expected by java

Installing gfortran in Cygwin

淺唱寂寞╮ 提交于 2021-01-21 10:44:05
问题 I am trying to compile a modelling program in Cygwin using either a gfortran or g95 compiler. I have installed both compilers, but when I go to configure the program, it checks for the compilers and does not find then ( error : Fortran compiler cannot create executables) . I am new to Cygwin-- I suspect it is something with how/where I installed the compilers...Any ideas? Thank you, L. 回答1: This problem is common for beginners with autotools. It can be: missing libraries; this can be missing