cygwin

Can't call cygwin commands from R

こ雲淡風輕ζ 提交于 2019-12-30 07:48:00
问题 I'm working in windows box, and using cygwin to imitate unix shell. Also I have R and want to run any system comand from it. I believe that system('command') would do this, but it didn't work for each 'command' . For example system('ls') returns /cygdrive/c/cygwin/bin/ls: write error: Bad file descriptor and I think that this is beacause R calls ls >& - which also returns same error. So how solve this problem? 回答1: I hope you are still interested in a solution. Here is what I have: Start R

Unable to set up Anaconda on Windows : Path problems

三世轮回 提交于 2019-12-30 07:27:09
问题 I've been trying to setup Anaconda 1.8 on Windows 8.1 but cant get Windows to detect it for the life of me. I've tried adding it in the system path by editing the environment variables and adding C:\Anaconda . I've tried the Cygwin route and tried to edit .bashrc and .profile , but the path doesn't seem to reflect the presence of Anaconda. Powershell output PS C:\WINDOWS\system32> python Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright

Vim on Cygwin: Warn that vimrc is using windows end of line char

六眼飞鱼酱① 提交于 2019-12-30 06:09:10
问题 I just installed cygwin on my machine and I am just getting everything setup. I created a softlink between .vimrc in my cygwin home dir and my windows home dir but vim is having some difficulties reading the .vimrc file since it is using windows end of line characters. Is there some method that I can use to warn vim that my vimrc file is using windows end of line char? Here is some output. ~ $ ls -la total 43 drwxr-xr-x+ 1 Jake None 0 Mar 30 10:11 . drwxrwxrwt+ 1 Jake root 0 Mar 30 09:33 ..

Installing GMP on Windows with cygwin

瘦欲@ 提交于 2019-12-30 05:24:08
问题 I am new to C++ and I have to handle large integers, so I have to install GMP through Cygwin. Any documentation I can find on installing this already assumes that you know what you are talking about, and I really don't. Anyway, I got the right .tar or whatever, extracted it properly, and now any website I see says to run ./configure --prefix=${gmp_install} ... What in the world is gmp_install ? And what directory do I run configure from? Huh? I can run it from my little Cygwin terminal, but

C++ std library linking with different C++ standards

偶尔善良 提交于 2019-12-30 04:47:25
问题 I am compiling a project using Cygwin (GCC v4.5.0) and I'm having an odd linker problem. I am hoping somebody with some expertise can help. Error: undefined reference to std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&) However, the linking only fails when I compile with the gcc compiler flag: -std=c++0x It succeeds when I don't specify the standard. Some notes: I am informing gcc to

How to create a shared object file from static library

佐手、 提交于 2019-12-30 03:04:04
问题 How to create a shared object file from a static library? I am using Cygwin. Is the following syntax correct? gcc -shared -o libexample.so libexample.a 回答1: gcc -shared -o libexample.so -Wl,--whole-archive libexample.a Pay attention that often you'll want the objects combined in your .so to be compiled as PIC, something you don't often want for a static library. 回答2: It might not work but you can always try: ar -x libexample.a gcc -shared *.o -o libexample.so If it complains about -fPIC, then

Compiling with gcc (cygwin on windows)

跟風遠走 提交于 2019-12-30 02:18:46
问题 I have cygwin on windows through which I run gcc. But after creating .exe files, if I run them on other computers which dont have cygwin, it says cygwin1.dll not found. Is there a way to compile them so that they run on any system? 回答1: In your case, try to copy cygwin1.dll as well (but it could depend on other DLLs as well) (of course you must comply with Cygwin's license with regards to distributing cygwin1.dll) In cygwin, you can always check the needed modules using: objdump -p a.exe |

how to install Matplotlib on Cygwin?

帅比萌擦擦* 提交于 2019-12-30 01:08:31
问题 I'm trying to install Matplotlib 1.0.1 version on latest Cygwin. In the processing, there is a weird fork error cannot be solved. I googled similar questions and found that it might be solved by manually running gcc/g++ with matplotlib 0.98.5.2 : http://innuendopoly.org/arch/matplotlib-cygwin. But it doesn't work under 1.0.1 version. Does anybody encounter the same problem? 回答1: Here are instructions for how to install matplotlib 1.1.0 on Cygwin http://berlinbrowndev.blogspot.com/2012/01

Github/Cygwin error: cygheap base mismatch detected

谁说胖子不能爱 提交于 2019-12-30 01:05:40
问题 Git has been giving me this error 0 [main] sh (47116) C:\Users\Marcus\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x11C7400/0x1297400. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version *should* reside in x:\cygwin\bin, where 'x' is

How do I use my .vimrc file in Cygwin?

瘦欲@ 提交于 2019-12-30 00:51:05
问题 I just installed Cygwin on my work machine and would like to use the .vimrc file I use on my Linux box at home. Is that possible, or does it need to have Cygwin-specific settings? Where would I put the .vimrc file? I'm a little unsure of what directory I'm being dropped into at the bash prompt under Cygwin, but I think I'd create a subdirectory called .vim there, right? 回答1: 1) Yes it is possible. It doesnt need any cygwin specific settings, though you can add some windows specific ones. Just