Re: Cygwin Perl has slowed in recent months
On 5/25/22 08:04, gs-cygwin@gluelogic.com wrote: On Tue, May 24, 2022 at 11:36:21PM -0700, David Christensen wrote: I went back to the desktop computer that I have been using for Cygwin Perl testing: [...] 'make test' produced the following result: 99 wallclock secs ( 1.76 usr 0.41 sys + 342.21 cusr 375.40 csys = 719.78 CPU) [...] I ran Cygwin setup-x86_64.exe version 2.918 and upgraded all Cygwin packages. [...] I ran the cpan(1) shell and upgraded Perl modules: [...] 'make test' now produces: 211 wallclock secs ( 2.39 usr 2.71 sys + 525.68 cusr 998.78 csys = 1529.57 CPU) You have merely demonstrated that there is a change in timing after upgrading *all* of cygwin environment and packages. Basic troubleshooting by any competent admin involves making changes stepwise in steps as small as (reasonably) possible, and reperforming tests each step. Next step: go back to your older system and upgrade only the Perl packages, then repeat the test. If you are capable, try testing your cygwin environment on a different machine, preferably not a corporate machine with hidden BLODA, and with Microsoft Defender disabled (for the tests) (as previously asked by others). If you are capable, try testing older and newer Perl installations on a different OS. Annecdotally, I noticed about month or two ago that running my Perl Test::Harness slowed down dramatically after an upgrade of both kernel and packages on a Linux (*not Cygwin*) system. I have not yet seen compelling evidence from you that the slowdown is due to Cygwin, and have seen data suggesting it is more directly related to Perl changes. Other than your 'make test', do you have any evidence that anything else has slowed down as dramatically between the old and new cywgin packages? Any other shell scripts for which you tested the timing? Any other Perl scripts for which you tested the timing? (and not run under 'make test') I do not have the interest nor the means to bisect Cygwin, Perl, and/or CPAN looking for performance issues. For my use-case (SOHO devops), Cygwin Perl performance is a "nice to have"; not a "must have". "Correctness" is the "must have". I will continue to consider this question: On 5/24/22 08:03, David Christensen wrote: > What is a suitable Perl benchmark? David -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Perl has slowed in recent months
cygwin: I went back to the desktop computer that I have been using for Cygwin Perl testing: motherboard:Intel DQ67SW processor: Intel Core i7-2600S memory: Corsair CMV8GX3M2A1333C9 2 @ 4 GB disk: Intel SSD 520 Series 180 GB OS Name:Microsoft Windows 7 Professional OS Version: 6.1.7601 Service Pack 1 Build 7601 See cygcheck-old.txt in the attached tarball for a listing of Cygwin packages installed. 'make test' produced the following result: 99 wallclock secs ( 1.76 usr 0.41 sys + 342.21 cusr 375.40 csys = 719.78 CPU) I ran Windows Update, which indicated one optional update was available (Windows Defender). I installed the update. I ran Cygwin setup-x86_64.exe version 2.918 and upgraded all Cygwin packages. See cygcheck-new.txt in the attached tarball for a listing of current Cygwin packages installed. I ran the cpan(1) shell and upgraded Perl modules: cpan[1]> upgrade /(.*)/ See cpan-upgrade.txt and current-perl-modules.txt in the attached tarball for a listing of Perl modules that were out-of-date and a listing of the current Perl modules installed. 'make test' now produces: 211 wallclock secs ( 2.39 usr 2.71 sys + 525.68 cusr 998.78 csys = 1529.57 CPU) David cygwin-20220524-2330.tar.gz Description: application/gzip -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Perl has slowed in recent months
On 5/24/22 08:59, Sam Edge wrote: On 24/05/2022 16:03, David Christensen wrote: On 5/24/22 01:47, Sam Edge wrote: On 24/05/2022 09:25, Csaba Raduly wrote: > On Mon, 23 May 2022 at 20:47, Lee wrote: >> >> On 5/22/22, David Christensen wrote: >>> On 5/21/22 10:55, Hans-Bernhard Bröker wrote: >>>> Am 18.05.2022 um 03:53 schrieb David Christensen: >>>> >>>> > I am working on a Perl module that runs on various Unix-like platforms. >>>> > When I 'make test' on similar computers: >>>> > >>>> > FreeBSD 12.3-RELEASE 28 wallclock secs >>>> > Debian GNU/Linux 11.3 31 wallclock secs >>>> > macOS 11.6.2 36 wallclock secs >>>> > Windows 7 / Cygwin 3.3.5-1 509 wallclock secs >>>> >>>> Given the complete lack of information about what that Perl module of >>>> yours might be doing, that's hard to have a meaningful discussion about. >>> >>> >>> Thank you for the response. I was hoping there was a known issue. >>> Apparently, not. >> >> What I consider a well known issue is that process start up time is >> _very_ slow. If your 'make test' starts lots of processes that could >> be a problem. >> > > While Cygwin''s fork emulation is indeed slow (I once measured 1000:1 > between Cygwin and Linux * ), > "make test" likely started roughly the same number of processes "then" > as it does "now". > In which case the increase in the run time could be attributed to Cygwin. Indeed. But perhaps what the Cygwin core and/or Cygwin Perl maintainers need is a simple test case Perl script that can be shown to be much slower on the current releases than it was on a named earlier pair of releases. And maybe some testing by the original poster to see if it is the Cygwin or Perl release change that causes the issue. Anecdotal observations do not an issue report make. ;-) So, we are discussing running a Perl benchmark for various combinations of Cygwin version and/or Cygwin Perl version. That is an O(n) and/or O(n**2) problem. If multiple benchmarks are considered, increase the O() exponent by one. If multiple versions of Windows are considered, increase the O() exponent by one. If multiple computers are considered, increase the O() exponent by one. Does the Cygwin project do any of the above? If so, how? Where are the test plans and assets? Where is the raw data? Where are the reports? If end users are expected to do the above, please advise: 1. How to install multiple versions of Cygwin on Windows 7 Professional 64-bit Service Pack 1 on an x86_64 computer such that each instance of Cygwin does not interact with any other instance of Cygwin. 2. How to install multiple versions of Cygwin Perl on each of many Cygwin installations on Windows 7 Professional 64-bit Service Pack 1 on an x86_64 computer such that each instance of Cygwin Perl does not interact with any other instance of Cygwin Perl or Cygwin. 3. What is a suitable Perl benchmark? David The Cygwin core & Perl maintainers do not get paid for their work. I do not get paid for working on Cygwin and/or Perl. But, I have been paid for using and programming both. If you believe you have spotted a regression, it's up to you to isolate at what revision of Perl or of Cygwin core it started to happen. If Cygwin provides me with the means; fair enough. You can get older revisions of Cygwin & Perl from the Cygwin Time Machine (GFGI). https://html.duckduckgo.com/html?q=site%3Acygwin.org%20cygwin%20time%20machine https://cygwin.cygwin.narkive.com/cSRkGFjw/time-machine http://www.fruitbat.org/Cygwin/index.html#cygwincirca http://www.crouchingtigerhiddenfruitbat.org/Cygwin/timemachine.html I built a similar hack years ago. GFGI Programming Systems Product You can have as many parallel installations of Cygwin and its packages as you like simply by specifying different install paths when running the setup program (RTFM). Section? Page? Like most FOSS, Cygwin & its packages are provided with no warranty. https://cygwin.org/faq.html#faq.what.free If they are so vital to your business, you need to be doing regression testing yourself before upgrading production systems Have you been spying on me? ;-) and maintaining your own Cygwin repo so you have a copy of the production releases. https://cygwin.org/faq.html#faq.what.version https://cygwin.org/faq.html#faq.setup.old-versions I would say "disappointing", but I think you found the answer (below). This is all SOP for using FOSS in a business context, TIMTOWTDI. unless you're willing to pay someone else to do it for you, which is how Red Hat et al make their money. I think you have found the answer. David -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Perl has slowed in recent months
On 5/24/22 01:47, Sam Edge wrote: On 24/05/2022 09:25, Csaba Raduly wrote: > On Mon, 23 May 2022 at 20:47, Lee wrote: >> >> On 5/22/22, David Christensen wrote: >>> On 5/21/22 10:55, Hans-Bernhard Bröker wrote: >>>> Am 18.05.2022 um 03:53 schrieb David Christensen: >>>> >>>> > I am working on a Perl module that runs on various Unix-like platforms. >>>> > When I 'make test' on similar computers: >>>> > >>>> > FreeBSD 12.3-RELEASE 28 wallclock secs >>>> > Debian GNU/Linux 11.3 31 wallclock secs >>>> > macOS 11.6.2 36 wallclock secs >>>> > Windows 7 / Cygwin 3.3.5-1 509 wallclock secs >>>> >>>> Given the complete lack of information about what that Perl module of >>>> yours might be doing, that's hard to have a meaningful discussion about. >>> >>> >>> Thank you for the response. I was hoping there was a known issue. >>> Apparently, not. >> >> What I consider a well known issue is that process start up time is >> _very_ slow. If your 'make test' starts lots of processes that could >> be a problem. >> > > While Cygwin''s fork emulation is indeed slow (I once measured 1000:1 > between Cygwin and Linux * ), > "make test" likely started roughly the same number of processes "then" > as it does "now". > In which case the increase in the run time could be attributed to Cygwin. Indeed. But perhaps what the Cygwin core and/or Cygwin Perl maintainers need is a simple test case Perl script that can be shown to be much slower on the current releases than it was on a named earlier pair of releases. And maybe some testing by the original poster to see if it is the Cygwin or Perl release change that causes the issue. Anecdotal observations do not an issue report make. ;-) So, we are discussing running a Perl benchmark for various combinations of Cygwin version and/or Cygwin Perl version. That is an O(n) and/or O(n**2) problem. If multiple benchmarks are considered, increase the O() exponent by one. If multiple versions of Windows are considered, increase the O() exponent by one. If multiple computers are considered, increase the O() exponent by one. Does the Cygwin project do any of the above? If so, how? Where are the test plans and assets? Where is the raw data? Where are the reports? If end users are expected to do the above, please advise: 1. How to install multiple versions of Cygwin on Windows 7 Professional 64-bit Service Pack 1 on an x86_64 computer such that each instance of Cygwin does not interact with any other instance of Cygwin. 2. How to install multiple versions of Cygwin Perl on each of many Cygwin installations on Windows 7 Professional 64-bit Service Pack 1 on an x86_64 computer such that each instance of Cygwin Perl does not interact with any other instance of Cygwin Perl or Cygwin. 3. What is a suitable Perl benchmark? David -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Perl has slowed in recent months
On 5/23/22 11:47, Lee wrote: On 5/22/22, David Christensen wrote: On 5/21/22 10:55, Hans-Bernhard Bröker wrote: Am 18.05.2022 um 03:53 schrieb David Christensen: > I am working on a Perl module that runs on various Unix-like platforms. > When I 'make test' on similar computers: > > FreeBSD 12.3-RELEASE 28 wallclock secs > Debian GNU/Linux 11.3 31 wallclock secs > macOS 11.6.2 36 wallclock secs > Windows 7 / Cygwin 3.3.5-1509 wallclock secs I was hoping there was a known issue. What I consider a well known issue is that process start up time is _very_ slow. If your 'make test' starts lots of processes that could be a problem. [Replying to off-list message.] Thank you for the reply. 'make test' starts a large number of processes -- perhaps a thousand. Another huge slowdown is Windows Defender. Try turning that off and seeing how long your 'make test' takes then. Of all the test scripts, 02-compile.t consumes the most time on all platforms. Using 02-compile.t as a benchmark, here is the compile time with Windows Defender enabled: $ time perl -Ilib t/02-compile.t real2m1.404s user3m20.490s sys 4m24.476s Here is the compile time with Windows Defender disabled: $ time perl -Ilib t/02-compile.t real1m56.606s user3m14.374s sys 4m20.106s Both of the above tests were run in Cygwin64 Terminal. Using Debian and SSH: $ time perl -Ilib t/02-compile.t real1m18.733s user2m32.187s sys 2m29.652s So, Cygwin64 Terminal is also a problem. In all cases, Resource Monitor indicates the script is CPU bound. David -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Perl has slowed in recent months
On 5/21/22 10:55, Hans-Bernhard Bröker wrote: Am 18.05.2022 um 03:53 schrieb David Christensen: > I am working on a Perl module that runs on various Unix-like platforms. > When I 'make test' on similar computers: > > FreeBSD 12.3-RELEASE 28 wallclock secs > Debian GNU/Linux 11.3 31 wallclock secs > macOS 11.6.2 36 wallclock secs > Windows 7 / Cygwin 3.3.5-1 509 wallclock secs Given the complete lack of information about what that Perl module of yours might be doing, that's hard to have a meaningful discussion about. Thank you for the response. I was hoping there was a known issue. Apparently, not. The above module is proprietary, so I thought I would profile some similar CPAN modules to generate discussion information: 2022-05-22 01:25:39 dpchrist@dht4s3r1 ~ $ systeminfo | egrep '^OS (Name|Version)' ; uname -a ; cygcheck -c cygwin OS Name: Microsoft Windows 7 Professional OS Version:6.1.7601 Service Pack 1 Build 7601 CYGWIN_NT-6.1-7601 dht4s3r1 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin Cygwin Package Information Package VersionStatus cygwin 3.3.5-1OK 2022-05-22 01:26:45 dpchrist@dht4s3r1 ~ $ cpan install Devel::NYTProf t/50-errno.t . 1/8 # Failed test '$! should not be altered by NYTProf i/o' # at t/50-errno.t line 58. # got: '0' # expected: '3' # Looks like you failed 1 test of 8. t/50-errno.t . Dubious, test returned 1 (wstat 256, 0x100) Failed 1/8 subtests Test Summary Report --- t/50-errno.t (Wstat: 256 Tests: 8 Failed: 1) Failed test: 6 Non-zero exit status: 1 Files=55, Tests=4736, 570 wallclock secs ( 0.64 usr 1.06 sys + 104.19 cusr 403.73 csys = 509.62 CPU) Result: FAIL Failed 1/55 test programs. 1/4736 subtests failed. make: *** [Makefile:1284: test_dynamic] Error 255 JKEENAN/Devel-NYTProf-6.11.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports JKEENAN/Devel-NYTProf-6.11.tar.gz STFW: https://github.com/Perl/perl5/issues/12389 Any suggestions? David -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Cygwin Perl has slowed in recent months
cygwin: I have a computer: 2022-05-17 18:46:12 dpchrist@dht4s3r1 ~/src/perl/Dpchrist-Perl $ systeminfo | egrep '^OS (Name|Version)' ; uname -a ; cygcheck -c cygwin OS Name: Microsoft Windows 7 Professional OS Version:6.1.7601 Service Pack 1 Build 7601 CYGWIN_NT-6.1 dht4s3r1 3.3.5(0.341/5/3) 2022-05-13 12:27 x86_64 Cygwin Cygwin Package Information Package VersionStatus cygwin 3.3.5-1OK I am working on a Perl module that runs on various Unix-like platforms. When I 'make test' on similar computers: FreeBSD 12.3-RELEASE 28 wallclock secs Debian GNU/Linux 11.331 wallclock secs macOS 11.6.2 36 wallclock secs Windows 7 / Cygwin 3.3.5-1 509 wallclock secs A few months ago, I seem to recall that Cygwin was about 4 times slower. Now it is over 14 times slower. Is this expected? If not, how do I find the bottleneck? TIA, David -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Issue with 'cpan' program
On 11/17/2016 11:53 AM, Achim Gratz wrote: > David Christensen writes: >> Today, I did a fresh install of Cygwin 64-bit on a recently built (and >> fully updated) Windows 7 Professional 64-bit computer. ... >> When I run the command: >> >> cpan local::lib >> >> One core goes to 100% and the program hangs indefinitely. >> >> >> When I run the command: >> >> cpan >> >> I see an endless stream of: >> >> Press SPACE and ENTER to disable ftp >> Press SPACE and ENTER to disable ftp >> Press SPACE and ENTER to disable ftp >> ... > It looks like you're picking up an FTP program from Windows. You should > configure cpan to use something else instead (you may have to install > some other Cygwin packages, like wget or lftp in order to do so). Thanks for the reply. The machine is at another site; I'll try that the next time I work on it. David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Issue with 'cpan' program
cygwin: Today, I did a fresh install of Cygwin 64-bit on a recently built (and fully updated) Windows 7 Professional 64-bit computer. When I run the command: cpan local::lib One core goes to 100% and the program hangs indefinitely. When I run the command: cpan I see an endless stream of: Press SPACE and ENTER to disable ftp Press SPACE and ENTER to disable ftp Press SPACE and ENTER to disable ftp ... Pressing SPACE, ENTER, and/or SPACE+ENTER has no effect. My cygcheck.out is attached. Any suggestions? David Cygwin Configuration Diagnostics Current System Time: Fri Oct 07 23:37:07 2016 Windows 7 Professional Ver 6.1 Build 7601 Service Pack 1 Path: C:\cygwin64\usr\local\bin C:\cygwin64\bin C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0 C:\cygwin64\usr\sbin C:\cygwin64\home\admin\bin Output from C:\cygwin64\bin\id.exe UID: 197608(admin) GID: 197121(None) 197121(None) 197610(HomeUsers) 545(Users) 4(INTERACTIVE) 66049(CONSOLE LOGON) 11(Authenticated Users) 15(This Organization) 113(Local account) 4095(CurrentSession) 66048(LOCAL) 262154(NTLM Authentication)401408(Medium Mandatory Level) SysDir: C:\Windows\system32 WinDir: C:\Windows USER = 'admin' PWD = '/home/admin' HOME = '/home/admin' HOMEPATH = '\Users\admin' APPDATA = 'C:\Users\admin\AppData\Roaming' ProgramW6432 = 'C:\Program Files' HOSTNAME = 'g6950v' SHELL = '/bin/bash' TERM = 'xterm' PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 37 Stepping 2, GenuineIntel' PROFILEREAD = 'true' WINDIR = 'C:\Windows' RMFLAGS = '-i --one-file-system' PUBLIC = 'C:\Users\Public' ORIGINAL_PATH = '/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0' USERDOMAIN = 'g6950v' CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\ProgramData' !:: = '::\' TEMP = '/tmp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' GIT_AUTHOR_NAME = 'David Christensen' USERNAME = 'admin' PAGER = '/usr/bin/less' PROCESSOR_LEVEL = '6' FTP_PASSIVE = '1' ProgramFiles(x86) = 'C:\Program Files (x86)' PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' JAVA_HOME = '/usr/lib/jvm/java-7-openjdk-amd64' EDITOR = 'vim' LANG = 'C' USERPROFILE = 'C:\Users\admin' TZ = 'America/Los_Angeles' PS1 = '\n\D{%Y-%m-%d %H:%M:%S} admin@\h \w\n\$ ' LOGONSERVER = '\\G6950V' CP_U = '-u' CommonProgramW6432 = 'C:\Program Files\Common Files' PROCESSOR_ARCHITECTURE = 'AMD64' LOCALAPPDATA = 'C:\Users\admin\AppData\Local' HISTCONTROL = 'ignoredups' ProgramData = 'C:\ProgramData' EXECIGNORE = '*.dll' SHLVL = '1' LANGUAGE = 'C' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' HOMEDRIVE = 'C:' COMSPEC = 'C:\Windows\system32\cmd.exe' LESS = '-R' TMP = '/tmp' SYSTEMROOT = 'C:\Windows' LSFLAGS = '-aF --color=none --time-style "+%Y/%m/%d %H:%M:%S"' CVS_RSH = 'ssh' PRINTER = 'Samsung Universal Print Driver 2' PROCESSOR_REVISION = '2502' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '2' SESSIONNAME = 'Console' COMPUTERNAME = 'G6950V' _ = '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Installations (default) = '\??\C:\cygwin64' HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations (default) = '\??\C:\cygwin64' HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup (default) = 'C:\cygwin64' obcaseinsensitive set to 1 Cygwin installations found in the registry: System: Key: e022582115c10879 Path: C:\cygwin64 User: Key: e022582115c10879 Path: C:\cygwin64 c: hd NTFS121930Mb 31% CP CS UN PA FC g6950v_c d: cd N/AN/A e: hd NTFS286165Mb 43% CP CS UN PA FC g6950v_e f: hd NTFS305242Mb 77% CP CS UN PA FC ghost320 q: hd NTFS 1430796Mb 37% CP CS UN PA FC g6950v_q C:\cygwin64 / system binary,auto C:\cygwin64\bin /usr/bin system binary,auto C:\cygwin64\lib /usr/lib system binary,auto cygdrive prefix /cygdrive userbinary,posix=0,auto Found: C:\cygwin64\bin\awk -> C:\cygwin64\bin\gawk.exe Found: C:\cygwin64\bin\bash.exe Found: C:\cygwin64\bin\cat.exe Found: C:\cygwin64\bin\cp.exe Not Found: cpp (good!) Not Found: crontab Found: C:\cygwin64\bin\find.exe Found: C:\Windows\system32\find.exe Warning: C:\cygwin64\bin\find.exe hides C:\Windows\system32\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin64\bin\grep.exe Found: C:\cygwin64\bin\kill.exe Not Found: ld Found: C:\cygwin64\bin\ls.exe Found: C:\cygwin64\bin\make.exe Found: C:\cygwin64\bin\mv.exe Not Found: patch Found: C:\cygwin64\bin\perl.exe Found: C:\cygwin64\bin\rm.exe Found: C:\cygwin6
Re: WinXP Pro Cygwin Digest-MD4-1.9 /bin/sh: gcc-4: command not found
On 01/05/2015 08:13 PM, Larry Hall (Cygwin) wrote: gcc-4 is an old moniker for the current gcc, back when Cygwin had both 3 and 4 versions of gcc. This is no longer true and hasn't been for quite some time. Your options at this point are: 1. Create a link to gcc and call it gcc-4. 2. Try the experimental 5.18 version. 3. Install the x86_64 version of Cygwin (requires x86_64 version of Windows). Okay -- that was the correct idea (I also needed to install 'g++' and create a link 'g++-4'). Thanks! David 2015-01-06 17:39:22 Administrator@dc8ct591 ~ $ which gcc /usr/bin/gcc 2015-01-06 17:39:22 Administrator@dc8ct591 ~ $ ll /usr/bin/gcc -rwxr-xr-x 3 Administrator None 696871 2014/11/11 12:19:22 /usr/bin/gcc* 2015-01-06 17:39:38 Administrator@dc8ct591 ~ $ ln /usr/bin/gcc /usr/bin/gcc-4 2015-01-06 17:39:57 Administrator@dc8ct591 ~ $ which gcc-4 /usr/bin/gcc-4 2015-01-06 17:40:00 Administrator@dc8ct591 ~ $ cpan Digest::MD4 CPAN: Storable loaded ok (v2.27) Going to read '/home/Administrator/.cpan/Metadata' Database was generated on Mon, 24 Nov 2014 11:53:19 GMT CPAN: LWP::UserAgent loaded ok (v6.04) Fetching with LWP: http://ftp.wayne.edu/CPAN/authors/01mailrc.txt.gz CPAN: YAML loaded ok (v0.80) Going to read '/home/Administrator/.cpan/sources/authors/01mailrc.txt.gz' CPAN: Compress::Zlib loaded ok (v2.033) DONE Fetching with LWP: http://ftp.wayne.edu/CPAN/modules/02packages.details.txt.gz Going to read '/home/Administrator/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Tue, 06 Jan 2015 12:29:02 GMT .. New CPAN.pm version (v2.05) available. [Currently running version is v1.960001] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. ..DONE Fetching with LWP: http://ftp.wayne.edu/CPAN/modules/03modlist.data.gz Going to read '/home/Administrator/.cpan/sources/modules/03modlist.data.gz' DONE Going to write /home/Administrator/.cpan/Metadata Running install for module 'Digest::MD4' Running make for M/MI/MIKEM/DigestMD4/Digest-MD4-1.9.tar.gz CPAN: Digest::SHA loaded ok (v5.71) Checksum for /home/Administrator/.cpan/sources/authors/id/M/MI/MIKEM/DigestMD4/Digest-MD4-1.9.tar.gz ok CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4405) CPAN: CPAN::Meta loaded ok (v2.120351) CPAN: Module::CoreList loaded ok (v2.49_02) CPAN.pm: Going to build M/MI/MIKEM/DigestMD4/Digest-MD4-1.9.tar.gz Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Digest::MD4 Writing MYMETA.yml and MYMETA.json cp MD4.pm blib/lib/Digest/MD4.pm Running Mkbootstrap for Digest::MD4 () chmod 644 MD4.bs /usr/bin/perl.exe /usr/lib/perl5/5.14/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.14/ExtUtils/typemap -typemap typemap MD4.xs MD4.xsc mv MD4.xsc MD4.c gcc-4 -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 -DVERSION=\1.9\ -DXS_VERSION=\1.9\ -I/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE MD4.c rm -f blib/arch/auto/Digest/MD4/MD4.dll g++-4 --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector MD4.o -o blib/arch/auto/Digest/MD4/MD4.dll \ /usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE/cygperl5_14.dll\ make: g++-4: Command not found Makefile:464: recipe for target 'blib/arch/auto/Digest/MD4/MD4.dll' failed make: *** [blib/arch/auto/Digest/MD4/MD4.dll] Error 127 MIKEM/DigestMD4/Digest-MD4-1.9.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible 2015-01-06 17:41:36 Administrator@dc8ct591 ~ $ which g++ which: no g++ in (/home/Administrator/perl5/bin:/home/Administrator/bin:/home/dpchrist/jdk1.7.0_25/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Intel/DMIX:/cygdrive/c/Program Files/Common Files/Acronis/SnapAPI:/usr/sbin) 2015-01-06 17:41:46 Administrator@dc8ct591 ~ $ # install gcc-g++ 2015-01-06 17:43:22 Administrator@dc8ct591 ~ $ which g++ /usr/bin/g++ 2015-01-06 17:44:56 Administrator@dc8ct591 ~ $ ln /usr/bin/g++ /usr/bin/g++-4 2015-01-06 17:45:11 Administrator@dc8ct591 ~ $ cpan Digest::MD4 CPAN: Storable loaded ok (v2.27) Going to read '/home/Administrator/.cpan/Metadata' Database was generated on Tue, 06 Jan 2015 12:29:02 GMT Running install for module 'Digest::MD4' Running make for M/MI/MIKEM/DigestMD4/Digest-MD4-1.9.tar.gz CPAN: Digest::SHA loaded ok (v5.71) CPAN: Compress::Zlib loaded ok (v2.033) Checksum for
WinXP Pro Cygwin Digest-MD4-1.9 /bin/sh: gcc-4: command not found
cygwin: I am having trouble installing the Perl Digest::MD4 module via the 'cpan' command line program on Cygwin on Windows XP Professional. I have filed a bug report via bug-digest-...@rt.cpan.org: https://rt.cpan.org/Public/Bug/Display.html?id=101332 The maintainer observed: The 'gcc-4' wil be coming from your perl configuration, indicating that your perl was compiled with 'gcc-4'. His observation appears to be correct: 2015-01-05 18:38:47 dpchrist@dc8ct591 ~ $ perl -V | grep gcc config_args='-de -Dlibperl=cygperl5_14.dll -Dcc=gcc-4 -Dld=g++-4 -Darchname=i686-cygwin-threads-64int -Dmksymlinks -Dusethreads -Accflags=-g' cc='gcc-4', ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector', ccversion='', gccversion='4.5.3', gccosandvers='' There is no 'gcc-4' in my Cygwin installation: 2015-01-05 18:39:05 dpchrist@dc8ct591 ~ $ which gcc-4 which: no gcc-4 in (/home/dpchrist/perl5/bin:/home/dpchrist/bin:/home/dpchrist/jdk1.7.0_25/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Intel/DMIX:/cygdrive/c/Program Files/Common Files/Acronis/SnapAPI:/usr/sbin) I have attached cygcheck.out (some environment variables redacted). Please advise. David Cygwin Configuration Diagnostics Current System Time: Tue Jan 06 02:19:18 2015 Windows XP Professional Ver 5.1 Build 2600 Service Pack 3 Path: C:\cygwin\home\dpchrist\perl5\bin C:\cygwin\home\dpchrist\bin C:\cygwin\home\dpchrist\jdk1.7.0_25\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\Intel\DMIX C:\Program Files\Common Files\Acronis\SnapAPI C:\cygwin\usr\sbin Output from C:\cygwin\bin\id.exe UID: 1004(dpchrist) GID: 513(None) 513(None) 0(root) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER = 'dpchrist' PWD = '/home/dpchrist' HOME = '/home/dpchrist' HOMEPATH = '\Documents and Settings\dpchrist' CPAN_AUTHORID = 'DPCHRIST' APPDATA = 'C:\Documents and Settings\dpchrist\Application Data' HOSTNAME = 'dc8ct591' JRE_LIB_EXT = '/home/dpchrist/jdk1.7.0_25/jre/lib/ext' SHELL = '/bin/bash' TERM = 'xterm' PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 4 Stepping 10, GenuineIntel' PROFILEREAD = 'true' WINDIR = 'C:\WINDOWS' PERL5LIB = '/home/dpchrist/perl5/lib/perl5' OLDPWD = '/cygdrive/c/Documents and Settings/dpchrist' PERL_MB_OPT = '--install_base /home/dpchrist/perl5' ORIGINAL_PATH = '/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Intel/DMIX:/cygdrive/c/Program Files/Common Files/Acronis/SnapAPI' USERDOMAIN = 'DC8CT591' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' TEMP = '/tmp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' USERNAME = 'dpchrist' PAGER = '/usr/bin/less' PROCESSOR_LEVEL = '15' FTP_PASSIVE = '1' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' EDITOR = 'vim' LANG = 'C' USERPROFILE = 'C:\Documents and Settings\dpchrist' TZ = 'America/Los_Angeles' JDK_ROOT = '/home/dpchrist/jdk1.7.0_25' PS1 = '\n\D{%Y-%m-%d %H:%M:%S} \u@\h \w\n\$ ' LOGONSERVER = '\\DC8CT591' PROCESSOR_ARCHITECTURE = 'x86' HISTCONTROL = 'ignoredups' EXECIGNORE = '*.dll' SHLVL = '1' LANGUAGE = 'C' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' PERL_LOCAL_LIB_ROOT = '/home/dpchrist/perl5' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' JDK_BIN = '/home/dpchrist/jdk1.7.0_25/bin' LESS = '-R' TMP = '/tmp' SYSTEMROOT = 'C:\WINDOWS' LSFLAGS = '-aF --color=none --time-style +%Y/%m/%d %H:%M:%S' CVS_RSH = 'ssh' PRINTER = 'Microsoft XPS Document Writer' PROCESSOR_REVISION = '040a' EMAIL = 'dpchr...@holgerdanske.com' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info' PROGRAMFILES = 'C:\Program Files' GIT_AUTHOR_EMAIL = 'dpchr...@holgerdanske.com' NUMBER_OF_PROCESSORS = '2' SESSIONNAME = 'Console' PERL_MM_OPT = 'INSTALL_BASE=/home/dpchrist/perl5' LIB_MAKE = '/home/dpchrist/lib/make/' COMPUTERNAME = 'DC8CT591' _ = '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Installations (default) = '\??\C:\cygwin' HKEY_CURRENT_USER\Software\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations (default) = '\??\C:\cygwin' HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup (default) = 'C:\cygwin' obcaseinsensitive set to 1 Cygwin installations found in the registry: System: Key: c5e39b7a9d22bafb Path: C:\cygwin User: Key: c5e39b7a9d22bafb Path: C:\cygwin a: fd N/AN/A c: hd NTFS 76316Mb 15% CP CS UN PA FC dc8ct591_c d: cd N/AN/A v: hd NTFS152632Mb 29%
Perl - cpan Math::Random::ISAAC::XS - Error: no compiler detected to compile 'src/rand.c'. Aborting
cygwin: I'm attempting to install Perl XS modules that require a C compiler using 'cpan'. I've installed the Cygwin gcc package (and several others), but it still doesn't work: $ cpan Math::Random::ISAAC::XS Error: no compiler detected to compile 'src/rand.c'. Aborting ... Console session attached. Any suggestions? TIA, David 2013a27a.txt.bz2 Description: application/bzip -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: rsync hanging
* Kevin Bond (Sat, 9 Jan 2010 10:10:08 -0500) Hello, I am trying to use rsync in cygwin but it seems to be hanging. Right after it asks me for password of my host the 'building file list...' message displays then hangs. I can ssh into the host fine. Any ideas? I was having rsync issues under Cygwin 1.5: http://sourceware.org/ml/cygwin/2009-12/msg00536.html Yesterday, I did a fresh install of Cygwin 1.7. Now rsync over ssh works as expected. :-) Thanks, Cygwin team! HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: rsync hangs on big transfer Debian 5.0.3 pulling from WinXP SP3/ Cygwin 1.5.25
Debian Users, Cygwin, Rsync: I'm having trouble with rsync invoked on Debian 5.0.3 pulling files from Windows XP SP3/ Cygwin 1.5.25. I posted to the Debian User and Cygwin mailing lists [1] and thought I was done two days ago, but I wasn't -- after several hours of use of the Windows machine, rsync would again hang on Debian. To summarize, rsync pulls in perhaps 1,000 files from C:\Documents and Settings, and then hangs indefinitely. Adding the --timeout parameter seemed to fix the problem last night, but it's back again tonight. I've tried adding ten levels of verboseness to rsync (-vv), but no additional information is produced beyond three (-vvv). I don't see any clues in /var/log on either machine. Are there any other means for giving visibility to what's going on, other than compiling a debugging version, running rsync in a debugger, etc.? A new cygcheck.txt and console session are attached. Any suggestions? TIA, David Ref: [1] http://lists.debian.org/debian-user/2009/12/msg00991.html 2009-12-19 20:52:19 dpchr...@a64x2deb ~/a64x2deb/tigerbackup/daily $ /usr/bin/rsync -rt -vvv --stats --timeout=300 --delete --backup --backup-dir='/mnt/q/backup-old/holgerdanske.com/p43400e/cygdrive/c/documents_and_settings/' --delete-excluded --exclude='My Documents/accounts/' --exclude-from='/usr/local/share/perl/5.10.0/Dpchrist/Tigerbackup/winxp_Documents-and-Settings.exclude' 'administra...@p43400e.holgerdanske.com:/cygdrive/c/documents_and_settings/' '/mnt/q/backup/holgerdanske.com/p43400e/cygdrive/c/documents_and_settings/' rsync.out io timeout after 300 seconds -- exiting rsync error: timeout in data send/receive (code 30) at io.c(239) [receiver=3.0.3] rsync: connection unexpectedly closed (137 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [generator=3.0.3] 2009-12-19 21:03:02 dpchr...@a64x2deb ~/a64x2deb/tigerbackup/daily $ tail -n 20 rsync.out recv_generator(dpchrist/My Documents/home/.cvsignore,17101) dpchrist/My Documents/home/.cvsignore is uptodate recv_generator(dpchrist/My Documents/home/.signature-dc2008.txt,17102) dpchrist/My Documents/home/.signature-dc2008.txt is uptodate recv_generator(dpchrist/My Documents/home/.signature-pe.txt,17103) dpchrist/My Documents/home/.signature-pe.txt is uptodate recv_generator(dpchrist/My Documents/home/.signature.txt,17104) dpchrist/My Documents/home/.signature.txt is uptodate recv_generator(dpchrist/My Documents/home/.vimrc,17105) dpchrist/My Documents/home/.vimrc is uptodate recv_generator(dpchrist/My Documents/home/Makefile,17106) dpchrist/My Documents/home/Makefile is uptodate recv_generator(dpchrist/My Documents/home/home-unix.tar.gz,17107) dpchrist/My Documents/home/home-unix.tar.gz is uptodate recv_generator(dpchrist/My Documents/home/home-win32.tar.gz,17108) dpchrist/My Documents/home/home-win32.tar.gz is uptodate recv_generator(dpchrist/My Documents/home/CVS,17109) recv_generator(dpchrist/My Documents/home/home.tmp,17110) _exit_cleanup(code=30, file=io.c, line=239): about to call exit(30) _exit_cleanup(code=12, file=io.c, line=635): about to call exit(12) Cygwin Configuration Diagnostics Current System Time: Sun Dec 20 05:13:08 2009 Windows XP Professional Ver 5.1 Build 2600 Service Pack 3 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem C:\cygwin\bin C:\cygwin\usr\sbin Output from C:\cygwin\bin\id.exe (nontsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) 1006(Debugger Users) Output from C:\cygwin\bin\id.exe (ntsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) 1006(Debugger Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER = 'Administrator' PWD = '/home/Administrator' CYGWIN = 'ntsec' HOME = '/home/Administrator' MAKE_MODE = 'unix' HOMEPATH = '\Documents and Settings\Administrator\My Documents' CPAN_AUTHORID = 'DPCHRIST' MANPATH = ':/home/Administrator/local/man' HOSTNAME = 'p43400e' RELEASE_ROOT = '/mnt/z/data/released' TERM = 'cygwin' SHELL = '/bin/bash' PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 4 Stepping 1, GenuineIntel' WINDIR = 'C:\WINDOWS' SSH_CLIENT = '127.0.0.1 1163 22' CVSROOT = 'dpchr...@cvs.holgerdanske.com:/cvs/dpchrist' OLDPWD = '/home/Administrator' USERDOMAIN = 'P43400E' SSH_TTY = '/dev/tty0' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' TEMP = '/cygdrive/c/WINDOWS/TEMP' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' PAGER = '/usr/bin/less' PROCESSOR_LEVEL = '15' FTP_PASSIVE = '1' MAIL = '/var/spool/mail/Administrator' SYSTEMDRIVE = 'C:' EDITOR = 'vim' LANG = 'C' USERPROFILE = 'C:\Documents and Settings\Administrator' TZ = 'America/Los_Angeles' PS1 = '\D{%Y-%m-%d
RE: rsync hangs on big transfer Debian 5.0.3 pulling from WinXP SP3/Cygwin 1.5.25
Cygwin: I received three copies of my message from each of three lists. If everyone else receives three copies, I apologize for the extraneous copies. :-( Does anybody know why, and how to prevent such? TIA, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: rsync hangs on big transfer Debian 5.0.3 pulling from WinXP SP3/ Cygwin 1.5.25
Debian Users Cygwin: It must have been an owner/ group/ permission issue on the receiving end (?) -- I moved the destination directory aside, created a new top-level destination directory, and now the script runs fine. :-) HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
rsync hangs on big transfer Debian 5.0.3 pulling from WinXP SP3/ Cygwin 1.5.25
Debian Users Cygwin: I have a Perl/ rsync backup script that pulls files from a Windows XP Professional SP3/ Cygwin 1.5.25 machine. The script worked fine on one Debian box (5.0.1 upgraded to 5.0.3), but consistently hangs 1,000+ files into a large transfer after I moved it to a fresh Debian 5.0.3 box. Both Debian boxes report rsync version 3.0.3 protocol version 30. Cygwin reports rsync version 3.0.4 protocol version 30. Attached files: 1. cygcheck.out -- Cygwin check file. 2. debian-cygwin-20091215.txt -- console session on new Debian 5.0.3 box. Any suggestions? TIA, David cygcheck.out Description: Binary data I invoke rsync on Debian-5.0.3: 2009-12-15 23:03:30 dpchr...@a64x2deb ~ $ /usr/bin/rsync -prtv -v -v -v --stats --progress --delete --backup --backup-dir='/mnt/q/backup-old/holgerdanske.com/p43400e/cygdrive/c/documents_and_settings/' --delete-excluded --exclude-from='/usr/local/share/perl/5.10.0/Dpchrist/Tigerbackup/winxp_Documents-and-Settings.exclude' 'administra...@p43400e.holgerdanske.com:/cygdrive/c/documents_and_settings/' '/mnt/q/backup/holgerdanske.com/p43400e/cygdrive/c/documents_and_settings/' It consistantly hangs at the same point: recv_generator(dpchrist/My Documents/gpl/gpltag,17033) dpchrist/My Documents/gpl/gpltag is uptodate recv_generator(dpchrist/My Documents/gpl/CVS,17034) [generator] receiving flist for dir 3332 recv_file_name(dpchrist/My Documents/gpl/CVS/Entries) recv_file_name(dpchrist/My Documents/gpl/CVS/Repository) recv_file_name(dpchrist/My Documents/gpl/CVS/Root) received 3 names [generator] flist start=17036, used=3, low=0, high=2 [generator] i=17036 5 dpchrist/My Documents/gpl/CVS/Entries mode=0100644 len=85 flags=0 [generator] i=17037 5 dpchrist/My Documents/gpl/CVS/Repository mode=0100644 len=4 flags=0 [generator] i=17038 5 dpchrist/My Documents/gpl/CVS/Root mode=0100644 len=44 flags=0 recv_file_list done recv_generator(dpchrist/My Documents/gpl/CVS,17035) delete_in_dir(dpchrist/My Documents/gpl/CVS) recv_generator(dpchrist/My Documents/gpl/CVS/Entries,17036) dpchrist/My Documents/gpl/CVS/Entries is uptodate recv_generator(dpchrist/My Documents/gpl/CVS/Repository,17037) dpchrist/My Documents/gpl/CVS/Repository is uptodate recv_generator(dpchrist/My Documents/gpl/CVS/Root,17038) dpchrist/My Documents/gpl/CVS/Root is uptodate When I press Ctrl+C: ^C_exit_cleanup(code=20, file=rsync.c, line=541): entered rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(541) [receiver=3.0.3] _exit_cleanup(code=20, file=rsync.c, line=541): about to call exit(20) _exit_cleanup(code=20, file=rsync.c, line=541): entered rsync error: unexplained error (code 130) at rsync.c(541) [generator=3.0.3] _exit_cleanup(code=20, file=rsync.c, line=541): about to call exit(130) These are the directories around the problem on the sending end: 2009-12-15 23:07:46 administra...@p43400e ~ $ ll -d /cygdrive/c/documents_and_settings/dpchrist/My\ Documents/[gh]* drwx--+ 3 dpchrist None 0 Nov 27 14:29 /cygdrive/c/documents_and_settings/dpchrist/My Documents/gegl-0.0/ drwxr-xr-x+ 3 dpchrist None 0 Oct 13 11:00 /cygdrive/c/documents_and_settings/dpchrist/My Documents/gpl/ drwxr-xr-x+ 4 dpchrist None 0 Dec 7 18:58 /cygdrive/c/documents_and_settings/dpchrist/My Documents/home/ 2009-12-15 23:08:13 administra...@p43400e ~ $ ll /cygdrive/c/documents_and_settings/dpchrist/My\ Documents/gpl/ total 24 drwxr-xr-x+ 3 dpchrist None 0 Oct 13 11:00 ./ drwx--+ 51 dpchrist None 0 Dec 15 20:56 ../ drwxr-xr-x+ 2 dpchrist None 0 Oct 13 11:00 CVS/ -rw-r--r-- 1 dpchrist None 18353 Jul 25 2002 LICENSE -rw-r--r-- 1 dpchrist None 1895 Sep 10 22:14 gpltag 2009-12-15 23:09:02 administra...@p43400e ~ $ ll /cygdrive/c/documents_and_settings/dpchrist/My\ Documents/gpl/CVS/ total 3 drwxr-xr-x+ 2 dpchrist None 0 Oct 13 11:00 ./ drwxr-xr-x+ 3 dpchrist None 0 Oct 13 11:00 ../ -rw-r--r-- 1 dpchrist None 85 Oct 13 11:00 Entries -rw-r--r-- 1 dpchrist None 4 Oct 13 11:00 Repository -rw-r--r-- 1 dpchrist None 44 Oct 13 11:00 Root 2009-12-15 23:09:12 administra...@p43400e ~ $ ll /cygdrive/c/documents_and_settings/dpchrist/My\ Documents/home total 22 drwxr-xr-x+ 4 dpchrist None0 Dec 7 18:58 ./ drwx--+ 51 dpchrist None0 Dec 15 20:56 ../ -rw-r--r-- 1 dpchrist None 2136 Nov 11 22:44 .bash_profile -rw-r--r-- 1 dpchrist None 508 Nov 11 22:44 .bashrc -rw-r--r-- 1 dpchrist None 32 May 24 2007 .cvsignore -rwxr-xr-x 1 dpchrist None 368 Oct 29 2008 .signature-dc2008.txt* -rw-r--r-- 1 dpchrist None 205 May 15 2009 .signature-pe.txt -rwxr-xr-x 1 dpchrist None 112 May 15 2009 .signature.txt* -rw-r--r-- 1 dpchrist None 301 May 12 2009 .vimrc drwxr-xr-x+ 2 dpchrist None0 Nov 11 22:44 CVS/ -rw-r--r-- 1 dpchrist None 668 Dec 14 2008 Makefile -rw-r--r-- 1 dpchrist None 1371 Dec 7 18:58 home-unix.tar.gz -rw-r--r-- 1 dpchrist None 1371 Dec 7 18:58 home-win32.tar.gz drwxr-xr-x+ 2 dpchrist None0 Dec 7 18:58
pipelines with paths containing spaces
cygwin: I am having trouble using pipelines with paths containing spaces: 2009-08-31 01:16:32 administra...@p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ /cygdrive/c/Documents and Settings/ 2009-08-31 01:16:50 administra...@p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ | xargs ls ls: cannot access /cygdrive/c/Documents: No such file or directory ls: cannot access and: No such file or directory ls: cannot access Settings/: No such file or directory 2009-08-31 01:16:55 administra...@p43400e ~ $ ls `ls -d /cygdrive/c/Documents\ and\ Settings/` ls: cannot access /cygdrive/c/Documents: No such file or directory ls: cannot access and: No such file or directory ls: cannot access Settings/: No such file or directory I tried writing a Perl script to escape spaces, but that didn't work. I tried writing a Perl script to wrap paths in single quotes and escape single quotes, but that didn't work. I tried searching the mailing list archive, the FAQ, and Google variations on 'cygwin pipeline spaces', but didn't come up with a solid hit. I installed Cygwin two days ago. Attached please find cygcheck.out. Any suggestions? TIA, David cygcheck.out Description: Binary data -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: pipelines with paths containing spaces
Marco Atzeri wrote: not really cygwin specific find /cygdrive/c/Documents\ and\ Settings/ -print0 |xargs --null ls see man xargs That explains it. Here's a work-around: 2009-08-31 04:04:36 dpchr...@p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ | perl -ne 's/\n/\00/; print' | xargs -0 ls -dl drwxrwxr-x+ 9 Administrators SYSTEM 0 Aug 30 01:19 /cygdrive/c/Docum ents and Settings/ Add the Perl one-liner to my .bashrc as an alias: 2009-08-31 04:14:45 dpchr...@p43400e ~ $ vi .bashrc alias nl2null=perl -ne 's/\n/\00/; print' Life is good! 2009-08-31 04:16:03 dpchr...@p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ | nl2null | xargs -0 l s -dl drwxrwxr-x+ 9 Administrators SYSTEM 0 Aug 30 01:19 /cygdrive/c/Docum ents and Settings/ Thanks! :-) David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Automating a Cygwin Script From Windows
jprice wrote: I need to run a cygwin script directly via windows, probably via dos prompt or some other comparable method. I was hoping there would be some way to ... feed it a string of commands to execute upon opening I wrote a Bash/ Perl backup/ archive/ shutdown solution for my Windows/ Cygwin and GNU/ Linux SOHO network. I light it off from my primary Windows desktop via a Windows shortcut that points to a Windows batch file that runs a Bash script that runs Perl scripts which do the work. The batch file runs on Windows and will pass along up to nine command line arguments. The Bash script runs on Cygwin and GNU/Linux and passes along an unlimited number of command-line arguments. Here are the Windows batch file and Bash script: 2009-08-28 21:11:01 dpchr...@dc86yxb1 ~/Dpchrist-Shutdown/example $ cat shutdown-soho.bat C:\cygwin\bin\bash U:\Dpchrist-Shutdown\example\shutdown-soho %1 %2 %3 %4 %5 %6 %7 %8 %9 2009-08-28 21:15:48 dpchr...@dc86yxb1 ~/Dpchrist-Shutdown/example $ cat shutdown-soho | egrep '^(#\!|/)' #! /usr/bin/bash /usr/bin/dcshutdown --use_at --use_sudo $* dpchr...@p3450 dpchr...@p3600 /usr/bin/dcshutdown $* administra...@a64x23800p administra...@p31000 administra...@p3800 administra...@dc86yxb1 /usr/bin/dcshutdown --shutdown_delay=0 --ssh_opts='-p 222' $* r...@ipcop /usr/bin/dcshutdown $* localhost HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Unable to use cpan
Andrew DeFaria wrote: $ cpan Algorithm::Diff ... Error while trying to rename '/home/p6258c/.cpan/sources/modules/03modlist.data.gz.tmp3996' to '/home/p6258c/.cpan/sources/modules/03modlist.data.gz': No such file or directory My guess is that it is a file system ownership/ permission issue. Vista is more picky than XP. Take a look at all the folders down to /home/p6258c/.cpan/sources/modules/ with Windows Explorer - Properties - Security and Bash 'ls -l'. If something looks strange, you might be able to fix it with Windows Explorer, 'chmod', and/or 'chown'. I try to make sure that I only install and administer Cygwin and Cygwin software while logged in as Administrator. For Perl modules, I find that Cygwin packages (if available) work better than CPAN. When one of my Cygwin installs starts acting up, I move C:\cygwin aside and start over -- either with a fresh download, or with an archived copy of C:\cygwin\setup. HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Compiling problem
Bob Cowdery wrote: My end game was to install Cython and compile up some Python stuff which was written on Linux but needs to run on Windows. There are lots of shell scripts involved and the complete system does not lend itself to running native, hence the short-term need to run under Cygwin. As an alternative, how about installing virtual machine software on Windows, get/build a GNU/Linux virtual machine, and put your software on that? David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Virus on sed.exe
Ed Brady wrote: I just ran a virus scan, and got a hit for sed.exe. Win32/AMalum.ZZQIA. Anyone else seen anything similar to this? Dave Korn wrote: ~ $ cygcheck -c sed Cygwin Package Information Package VersionStatus sed 4.1.5-2OK ~ $ md5sum /bin/sed.exe dd5f2d46b572b534d22f65a43916351c */bin/sed.exe If yours match (assuming same versions of course), you're clean. I have the same sed.exe, and McAfee VirusScan Plus 2009 says it's okay. HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Cygwin OpenSSH and Windows 7 RC
Matthias Meyer wrote: If I rebase within Windows7 I can not use this programs and librarys within other versions of Windows, right? Are you trying to share one Cygwin installation between multiple operation system installations (e.g. over a network, dual boot, flash drive, etc.)? I tried that years ago, and it was very confusing/ frustrating. I do one Cygwin installation (located at C:\cygwin) per O/S installation and recommend that you do the same. It is my assumption that the 'rebase' utility affects the installed Cygwin files, not the downloaded setup files. (The downloaded setup files need to match what is on the Cygwin mirrors, or the Cygwin Setup checksum should fail.) HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Grief: installing OpenSSH on Cygwin / WindowsServer2003
Chap Harrison wrote: It finally turned out to be that /etc/hosts.deny was too restrictive: ALL:ALL EXCEPT localhost:DENY Oops. ;-) I ran ssh-host-config, but did not run ssh-user-config. Must have overlooked that step. Perhaps that would have taken care of it? I doubt it. I believe ssh-host-conf only creates ~/.ssh, creates keys, creates ~/.ssh/authorized_keys, and/or sets permissions, depending upon your answers. David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Cygwin OpenSSH and Windows 7 RC
Matthias Meyer wrote: Most of the time ssh can not connect to the sshd in Windows7. In my logfile (in Windows7) I found: 7300 [main] sshd 3772 child_copy: linked dll data write copy failed, 0x2C5000..0x2C52E0, done 0, windows pid 3512, Win32 error 487 Have you done a rebaseall? http://www.heikkitoivonen.net/blog/2008/11/26/cygwin-upgrades-and-rebase all/ I was getting weird Perl 'make test' errors, and rebaseall fixed them. David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: net start sshd problem
Gordon Fogus wrote: gsfo...@gsfogus ~ $ net start sshd System error 2 has occurred. The system cannot find the file specified. Are there any clues in /var/log/sshd.log? HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Help with using Bash / GCC installed but command not found
MattyTheG wrote: Hello, I have been using Cygwin for about a year now, with no problems. Until one day I loaded it up and instead of the usual interface I had, it just said bash-3.2$, no username, or directory or anything, and none of the unix commands work. My guess is that your Windows HOME environment variable was set, changed, or unset, either by you or by some program you ran (including setup.exe for some other application). (Vista: Start - Control Panel - System - Advanced System Settings - Environment Variables.) Over the years, I've found that Cygwin Bash works best when Windows HOME is not set. This is confirmed by Command Prompt: C:\Users\dpchristset ... FP_NO_HOST_CHECK=NO HOMEDRIVE=C: ... When I start Cygwin Bash Shell, Cygwin sets HOME: 2009-06-26 13:28:13 dpchr...@p43400e ~ $ set | grep HOME= HOME=/cygdrive/p/userdocs/dpchrist/Documents Another possibility is that your home directory entry in Cygwin's /etc/passwd got clobbered somehow. Check that also. HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Grief: installing OpenSSH on Cygwin / WindowsServer2003
Chap Harrison wrote: Trying to connect with PuTTY gives a server unexpectedly closed connectin error. Have you run ssh-host-config? ssh-user-config? Have you opened up port 22 in your firewall? Have you tried telnet to port 22 from localhost and from another host? HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
HOWTO-Windows-Vista-Ultimate-32-bit-Cygwin-OpenSSH
cygwin: FYI -- I built another Vista machine and created a HOWTO for installing Cygwin and OpenSSH based on a prior thread: http://sourceware.org/ml/cygwin/2009-06/msg00454.html HTH, David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
FW: HOWTO-Windows-Vista-Ultimate-32-bit-Cygwin-OpenSSH
cygwin: FYI -- I built another Vista machine and created a HOWTO for installing Cygwin and OpenSSH based on a prior thread: http://sourceware.org/ml/cygwin/2009-06/msg00454.html D'oh! Here's the HOWTO: http://www.holgerdanske.com/node/463 David -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: FW: OpenSSH server installation error on Windows Vista Business/Ultimate
Paul August wrote: David, thanks for the further information. I will try to follow your steps exactly (except for a fresh installation of Windows part) and see what happens. YW. :-) Please feel free to expand, clarify, edit, and/or otherwise improve upon the procedure and repost. For example, do steps 5a, 5b, and 5c, run ssh-host-config, do step 5d, and then run 'net start sshd'. The best solution would be to patch ssh-host-config: 2009-06-12 20:44:07 administra...@p43400e ~ $ which ssh-host-config /usr/bin/ssh-host-config 2009-06-12 20:44:22 administra...@p43400e ~ $ file `which ssh-host-config ` /usr/bin/ssh-host-config: Bourne-Again shell script text executable 2009-06-12 20:46:33 administra...@p43400e ~ $ less `which ssh-host-config ` Nice code; patching it to accomplish the chmod/ chown steps would be an interesting and educational challenge. :-) David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
FW: OpenSSH server installation error on Windows Vista Business/Ultimate
cygwin: I installed a fresh copy of Cygwin and a fresh copy of the Cygwin OpenSSH service on a fresh installation of Windows Vista Ultimate SP1 32-bit yesterday: 1. Download Cygwin Setup to C:\cygwin\setup\setup.exe. 2. Run Cygwin Setup: a. Install from Internet (default). b. C:\cygwin root directory (default). c. Install for all users (default). d. Unix/ binary default text file type (default). e. C:\cygwin\setup local package directory (default). f. Direct connection to Internet (default). g. ftp://mirrors.kernel.org download site. h. Select source packages to match base/ default packages. i. Create Desktop and Start menu shortcuts. 3. Start Cygwin Bash Shell, then exit it. 4. Run Cygwin Setup again: a-g. Same as above. h. Select 'openssh' package. Setup will select dependencies. Select source packages for all of these. i. No need to recreate shortcuts. 5. Start Cygwin Bash Shell and wrestle with ssh-host-config, 'net start sshd', and /var/log/sshd.log, rebooting several times along the way for the sake of paranoia. In the end, I need to make four system changes to get sshd working: a. 'chmod 0777 /etc/passwd' -- overkill, so that ssh-host-config could create the cyg_server account. (I changed permissions to 0644 afterwards.) b. 'chmod 0777 /etc/group' -- more overkill for ssh-host-config. (I changed permissions to 0644 afterwards.) c. 'chmod 0777 /var' -- more overkill for ssh-host-config. (I left it that way.) d. 'chown cyg_server /var/empty' -- necessary to start the sshd service. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: OpenSSH server installation error on Windows Vista Business/Ultimate
Paul August wrote: This what I did: 1. Log on as Administrator. 2. Remove my existing Cygwin directory 3. Download Cygwin Setup to C:\Downloads I download Cygwin Setup to C:\cygwin\setup\setup.exe and packages under C:\cygwin\setup. It probably doesn't matter, but I recall that when I tried to share a single Cygwin setup/ download directory across multiple machines via the network, things broke. Are you trying that? If so, don't -- you want a dedicated Cygwin setup/ download directory for each machine. I think Cygwin Setup stores machine-/ installation-specific metadata in there. 4. Run Cygwin Setup. Accept the default package selections (e.g. base) and also get OpenSSH package. I have found that if I select anything in addition to the base/ default packages on the very first run of Cygwin Setup, things break. So, now I do two (or more) runs of Setup -- the first for base/ defaults *only*, and subsequent runs for additional goodies. Please try again with two passes. 3. Run cygcheck per http://cygwin.com/problems.html and save cygcheck.out. It is attached to this message. Thank you. Perhaps other people will spot a clue in there. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: OpenSSH server installation error on Windows Vista Business/Ultimate
Paul August wrote: David, Please address your messages to the list. If you wish to hire me, I prefer silver and gold U.S. coins. :-) I am still having trouble to set up OpenSSH server. Following the suggestions below, Which suggestions? Please copy/ paste/ indent/ reformat the text you wish to comment upon into your message, and then reply immediately below so we don't have to guess/ infer. I run mmc.exe to make sure the Administrator account is enabled. Then I logon the Administrator account and from there I reinstalled cygwin from scratch. Please provide more information. I am unaware of formal Cygwin install and uninstall mechanisms (e.g. *.msi, Add/Remove Programs, scripts, etc.), and so follow my own seat-of-the-pants procedures (http://cygwin.com/ml/cygwin/2009-05/msg00720.html). Please document what you did/ do so that it can be repeated/ troubleshot. However, when I run ssh-host-config -y Don't use the -y option. Automagic is bad when you're troubleshooting (unless, of course, you're troubleshooting the automagic ;-). again, I still got the same error message. If you mean: *** Warning: The file /etc/passwd is not readable by all. *** Warning: Please run 'chmod +r /etc/passwd'. *** Warning: The file /etc/group is not readable by all. *** Warning: Please run 'chmod +r /etc/group'. *** ERROR: Problem with LocalSystem or Adminstrator IDs The warnings contain the solution (assuming you know Unix; do you know Unix?). Start a Cygwin Bash shell and run the commands: chmod +r /etc/passwd chmod +r /etc/group Then, run ssh-host-config again. You will get one or two more sets of warnings/ errors with solutions. Follow the instructions and repeat. I recall it taking three or four passes and that Vista took more work than XP. The machine I tried above is a laptop running Windows Vista Business 32bit. Any more clues? Please: 1. Confirm that you have installed Cygwin using the (real Vista) Administrator account. Only use this account when administering Cygwin. 2. Run Cygwin Setup and make sure your installation is up to date. 3. Run cygcheck per http://cygwin.com/problems.html and save cygcheck.out. 4. Open a Cygwin Bash shell and attempt to configure the OpenSSH server. 5. If you're still stuck, reply to the list (cc myself if you like), attach cygcheck.out, include your console session (at the end or attached as a *.txt file), and copy/ paste key lines from the console session into your message with your thoughts/ comments/ questions. 6. When you do figure it out, post a summary to the list so that everyone benefits. (I am constantly rebuilding my machines with various flavors of Windows, Linux, BSD, etc., and have run into vaguely familiar problems only to STFW and find my own solutions posted on the web!) HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: OpenSSH server installation error on Windows Vista Business/Ultimate
Paul August wrote: Thank you David for your response. You're welcome. :-) I followed your steps to enable the administrator account via MMC console window, Then I start cygwin bash shell either as an administrator or after I logon the administrator account. When I run ssh-host-config -y again, I got the same error message. It seems that enabling real administrator account does not help with this problem. Any more clues? I infer from your post that you installed Cygwin using an account other than Administrator. I wouldn't trust it. I suggest: 1. Log on as Administrator. 2. Move your existing Cygwin directory aside. 3. Create the directories C:\cygwin and C:\cygwin\setup. 4. Download Cygwin Setup to C:\cygwin\setup\setup.exe. 5. Create a shortcut to Cygwin Setup on the Desktop. 6. Run Cygwin Setup via the shortcut. Choose Unix line endings. Accept the default package selections (e.g. base) and also get the source for each. (There may be a few packages where source is not available/ applicable?) (Having the source code provides you with all the rights and responsibilities of the GPL.) Download and install. Have Cygwin Setup create Start menu and Desktop icons. 7. Change the properties on the Cygwin Bash Shell Desktop shortcut -- select Options - Quick edit (so you can copy to/ paste from the Windows clipboard) and set Layout - Screen buffer size - Height to . Move the shortcut to a shared location so you can use it from all accounts. 8. Run Cygwin Bash Shell via the shortcut. Exit. This step might be unnecessary, but it's a habit for me. 9. Run Cygwin Setup again, select OpenSSH (and dependencies and sources), and download and install. 10. Run Cygwin Bash Shell again and work on OpenSSH. Copy your console session and paste it into a reply to this message if you're still stuck. Once you have a set of Cygwin packages you're happy with, make an archival copy of your C:\cygwin\setup directory. This will provide you with the ability to install/ reinstall the exact same software on that and other machines. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: OpenSSH server installation error on Windows Vista Business/Ultimate
Paul August wrote: *** Warning: The file /etc/passwd is not readable by all. *** Warning: Please run 'chmod +r /etc/passwd'. *** Warning: The file /etc/group is not readable by all. *** Warning: Please run 'chmod +r /etc/group'. *** ERROR: Problem with LocalSystem or Adminstrator IDs Does anyone have a clue how to deal with this problem? Is there anybody who successfully installed OpenSSH server on their Vista Business/Ultimate PCs? I just built a machine using a Windows Vista Ultimate with SP1 32-bit OEM DVD this weekend. Once Vista was installed and activated, I discovered that the Administrator account was disabled by default. I did some work using the administrator-level account I created during installation, but I didn't like this approach -- I wanted the real Administrator account. So, I STFW and enabled it using the Local Users and Groups MMC console: http://technet.microsoft.com/en-us/library/cc766343.aspx I finished up with the real Administrator account, including installing Cygwin and sshd. I made the changes noted above plus another (/var?), and had the script create an account to run sshd. sshd works. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Perl ExtUtils::MakeMaker 'make install' not generating manual page for script
Reini Urban wrote: make manifypods install Yup, that's it! :-) Is the above documented anywhere? I tried to RTFM and STFW, but didn't find it: 2009-05-02 17:19:29 administra...@p43400e ~/Dpchrist-File-Newest $ grep -r manifypods * Makefile:# --- MakeMaker manifypods section: Makefile:manifypods : pure_all \ 2009-05-02 17:18:10 administra...@p43400e ~/Dpchrist-File-Newest $ perlindex manifypods 1 0.430 lib/perl5/5.10/ExtUtils/MM_Any.pm 2 0.042 lib/perl5/5.10/pods/perlcygwin.pod http://www.google.com/search?hl=ennum=100q=%22manifypods+install%22lr =lang_en David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Perl ExtUtils::MakeMaker 'make install' not generating manual page for script
Reini Urban wrote: Just a hint: Please do *NOT* use lowercase package names for non- pragmas. See http://www.cpan.org/modules/04pause.html#namespace newest is certainly a very very bad name, if it does not relate to something like use blead; Thank you for your help. :-) Yes; bad laziness. How about Dpchrist::File::Newest? http://www.holgerdanske.com/node/460 ExtUtils::MakeMaker doesn't include all :: manifypods on cygwin, because this is a unix extension only. See MM_Unix.pm Please complain at ExtUtils::MakeMaker. A patch would be trivial. Schwern just needs a kick. For you: just do $ make manifypods 2009-05-01 08:51:42 administra...@p43400e ~/Dpchrist-File-Newest $ make manifypods Manifying blib/man1/newest.1 Manifying blib/man3/Dpchrist.File.Newest.3pm 2009-05-01 09:02:51 administra...@p43400e ~/Dpchrist-File-Newest $ makewhatis 2009-05-01 09:04:39 administra...@p43400e ~/Dpchrist-File-Newest $ man newest No manual entry for newest D'oh! Make created the man pages in the build tree, but didn't install them. What is the best way to do that? cp? TIA, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: What is the most painless way to move Cygwin to another box?
Wes S wrote: What is the most painless way to move Cygwin to another box? I've developed the habit of taking copies of the C:\cygwin\setup folder from time to time (usually before an update) and putting them into a date/time stamped folder (e.g. holgerdanske-cygwin-20090412). I also download both binaries and source code for all packages. This gives me a couple of options: 1. I can install matching copies of Cygwin on multiple machines. 2. If Cygwin breaks, I can move the entire C:\cygwin folder aside (e.g. backup), create a new C:\cygwin, copy in one of my saved \setup trees, reinstall from the local packages, and then move over my data and configuration files (e.g. restore). 3. I can burn disks and/or install Cygwin on other people's machines and be in compliance with the GPL. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Perl ExtUtils::MakeMaker 'make install' not generating manual page for script
Cygwin: I've packaged a Perl script into a module distribution using ExtUtils::MakeMaker: http://www.holgerdanske.com/system/files/newest-1.012.tar.gz When I build the module on a Linux machine, a manual page is created. But when I build the script on Cygwin (console session follows), a manual page is not created. I was expecting a manual page to be created under Cygwin. Any suggestions? TIA, David Note: software was already installed when the following was run, and Perl ExtUtils::MakeMaker's 'make uninstall' is unsupported/dangerous: 2009-04-30 09:43:24 administra...@p43400e ~/build $ tar -xzvf newest-1.012.tar.gz newest-1.012/ newest-1.012/bin/ newest-1.012/bin/newest newest-1.012/Changes newest-1.012/lib/ newest-1.012/lib/newest.pm newest-1.012/LICENSE.txt newest-1.012/Makefile.PL newest-1.012/MANIFEST newest-1.012/META.yml newest-1.012/README newest-1.012/t/ newest-1.012/t/newest.t 2009-04-30 09:43:32 administra...@p43400e ~/build $ cd newest-1.012 2009-04-30 09:43:35 administra...@p43400e ~/build/newest-1.012 $ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for newest 2009-04-30 09:43:39 administra...@p43400e ~/build/newest-1.012 $ make cp lib/newest.pm blib/lib/newest.pm cp ./bin/newest blib/script/newest /usr/bin/perl.exe -MExtUtils::MY -e MY-fixin(shift) blib/script/newest 2009-04-30 09:43:49 administra...@p43400e ~/build/newest-1.012 $ make test /usr/bin/perl.exe -MExtUtils::Command::MM -e test_harness(0, 'blib/lib', 'blib/arch') t/*.t t/newest..bin/newest syntax OK t/newest..ok All tests successful. Files=1, Tests=1, 1 wallclock secs ( 0.00 usr 0.00 sys + 0.47 cusr 0.11 csys = 0.58 CPU) Result: PASS 2009-04-30 09:43:54 administra...@p43400e ~/build/newest-1.012 $ make install Writing /usr/lib/perl5/site_perl/5.10/i686-cygwin/auto/newest/.packlist Appending installation info to /usr/lib/perl5/5.10/i686-cygwin/perllocal.pod 2009-04-30 09:45:13 administra...@p43400e ~/build/newest-1.012 $ man newest No manual entry for newest -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: debian-live-500-i386-rescue.iso: FAILED
cygwin: I wrote on debian-live (http://lists.debian.org/debian-live/2009/04/msg00068.html): I've downloaded several files from: http://cdimage.debian.org/cdimage/release/current-live/i386/iso-cd/ When I attempt to verify the checksums related to the rescue disk, the ISO image appears corrupt: 2009-04-11 21:00:35 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum -c MD5SUMS 21 | grep 'rescue.iso' debian-live-500-i386-rescue.iso: FAILED debian-live-500-i386-rescue.iso.list: OK debian-live-500-i386-rescue.iso.log: OK debian-live-500-i386-rescue.iso.packages: OK I've downloaded MD5SUMS and debian-live-500-i386-rescue.iso twice, with the same results. Daniel Baumann wrote (http://lists.debian.org/debian-live/2009/04/msg00069.html): i don't think so. ... dan...@debian:/mnt/daniel1/srv/debian-unofficial/live/cdimage/release/5. 0.0/i386/iso-cd$ grep rescue.*iso$ MD5SUMS b02c3606a3f35f160a591fe1154aa362 debian-live-500-i386-rescue.iso dan...@debian:/mnt/daniel1/srv/debian-unofficial/live/cdimage/release/5. 0.0/i386/iso-cd$ md5sum debian-live-500-i386-rescue.iso b02c3606a3f35f160a591fe1154aa362 debian-live-500-i386-rescue.iso ... make sure both your computer and network work correctly Thank you for your help. :-) I ran more some more tests: 2009-04-12 08:13:07 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum debian-live-500-i386-rescue.iso b02c3606a3f35f160a591fe1154aa362 *debian-live-500-i386-rescue.iso 2009-04-12 08:13:39 dpchr...@p43400e /cygdrive/h/data/iso/debian $ grep 'rescue.iso$' MD5SUMS b02c3606a3f35f160a591fe1154aa362 debian-live-500-i386-rescue.iso 2009-04-12 08:42:26 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum -c MD5SUMS 21 | grep 'rescue\.iso' debian-live-500-i386-rescue.iso: FAILED debian-live-500-i386-rescue.iso.list: OK debian-live-500-i386-rescue.iso.log: OK debian-live-500-i386-rescue.iso.packages: OK md5sum computes the same checksum as what is contained in MD5SUMS, but prepends an asterisk to the filename on output. So, the *.iso file is okay, but md5sum -c MD5SUMS is somehow broken (?). Attempting to force binary mode: 2009-04-12 08:43:47 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum -b -c MD5SUMS md5sum: the --binary and --text options are meaningless when verifying checksums Try `md5sum --help' for more information. Nope. Perhaps there is something wrong with my Cygwin (?) and/or md5sum (?). Updating and trying again: 2009-04-12 13:44:25 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum debian-live-500-i386-rescue.iso b02c3606a3f35f160a591fe1154aa362 *debian-live-500-i386-rescue.iso 2009-04-12 13:45:09 dpchr...@p43400e /cygdrive/h/data/iso/debian $ grep 'rescue.iso$' MD5SUMS b02c3606a3f35f160a591fe1154aa362 debian-live-500-i386-rescue.iso 2009-04-12 13:45:41 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum -c MD5SUMS 21 | grep 'rescue\.iso' debian-live-500-i386-rescue.iso: FAILED debian-live-500-i386-rescue.iso.list: OK debian-live-500-i386-rescue.iso.log: OK debian-live-500-i386-rescue.iso.packages: OK Nope. cygcheck.out attached. Any suggestions? TIA, David cygcheck.out Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: debian-live-500-i386-rescue.iso: FAILED
Greg Chicares wrote: The asterisk is okay; it should be ignored with '--check'. Thanks for the help. :-) Try testing that file directly: echo b02c3606a3f35f160a591fe1154aa362 debian-live-500-i386-rescue.is o \ | md5sum --check --warn 2009-04-12 21:20:57 dpchr...@p43400e /cygdrive/h/data/iso/debian $ echo b02c3606a3f35f160a591fe1154aa362 debian-live-500-i386-rescue.is o | md5sum --check --warn debian-live-500-i386-rescue.iso: FAILED md5sum: WARNING: 1 of 1 computed checksum did NOT match And this (with an asterisk) should give the same result: echo b02c3606a3f35f160a591fe1154aa362 *debian-live-500-i386-rescue.is o \ | md5sum --check --warn 2009-04-12 21:21:22 dpchr...@p43400e /cygdrive/h/data/iso/debian $ echo b02c3606a3f35f160a591fe1154aa362 *debian-live-500-i386-rescue.is o | md5sum --check --warn debian-live-500-i386-rescue.iso: OK So, the asterisk does matter to Cygwin md5sum when checking. It would be interesting if this native 'md5sum' works as expected where Cygwin's doesn't: http://downloads.activestate.com/contrib/md5sum/Windows/md5sum.exe#!md5! eb574b236133e60c989c6f472f07827b H:\data\iso\debianh:\data\download\a\activestate\md5sum.exe -c MD5SUMS ... debian-live-500-i386-rescue.iso: OK debian-live-500-i386-rescue.iso.list: OK debian-live-500-i386-rescue.iso.log: OK debian-live-500-i386-rescue.iso.packages: OK And I suppose it's worth showing the result of `which md5sum`, just in case you've got a rogue copy on $PATH, even though you seem not to. 2009-04-12 21:23:13 dpchr...@p43400e /cygdrive/h/data/iso/debian $ which md5sum /usr/bin/md5sum A wild idea based on this report: http://bugs.centos.org/view.php?id=2961 would be to run the test repeatedly and see if the result changes. http://www.quotationspage.com/quote/26032.html I wonder if line endings of the MD5SUMS file has anything to do with it? 2009-04-12 21:27:42 dpchr...@p43400e /cygdrive/h/data/iso/debian $ file MD5SUMS MD5SUMS: ASCII text 2009-04-12 21:29:44 dpchr...@p43400e /cygdrive/h/data/iso/debian $ cp MD5SUMS MD5SUMS.dos 2009-04-12 21:30:18 dpchr...@p43400e /cygdrive/h/data/iso/debian $ unix2dos MD5SUMS.dos MD5SUMS.dos: done. 2009-04-12 21:43:48 dpchr...@p43400e /cygdrive/h/data/iso/debian $ file MD5SUMS.dos MD5SUMS.dos: ASCII text, with CRLF line terminators 2009-04-12 21:43:54 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum --check --warn MD5SUMS.dos 21 | grep rescue debian-live-500-i386-rescue.iso: FAILED debian-live-500-i386-rescue.iso.list: OK debian-live-500-i386-rescue.iso.log: OK debian-live-500-i386-rescue.iso.packages: OK Nope. I wonder if it's because my Cygwin is installed to use DOS line endings? Switch it to Unix line endings and try again: 2009-04-12 21:51:39 dpchr...@p43400e /cygdrive/h/data/iso/debian $ md5sum --check --warn MD5SUMS 21 | grep rescue debian-live-500-i386-rescue.iso: OK debian-live-500-i386-rescue.iso.list: OK debian-live-500-i386-rescue.iso.log: OK debian-live-500-i386-rescue.iso.packages: OK Yup. I wonder if this is a bug or a feature? David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: trouble running Apache 1.3.33-2 as a service
I wrote: $ mkpasswd -l | grep www /etc/passwd René Berber wrote: This is usually done with mkpasswd -l -u www /etc/passwd and making sure you don't already have a line for that user. Thank you for your help. :-) I checked before doing the incantation. The result was the same in my simple case (yours is probably better/safer): $ mkpasswd -l | grep www www:unused_by_nt/2000/xp:1006:513:www,U-A64X23800P\www,S-1-5-21-44853972 3-688789 844-839522115-1006:/home/www:/bin/bash $ mkpasswd -l -u www www:unused_by_nt/2000/xp:1006:513:www,U-A64X23800P\www,S-1-5-21-44853972 3-688789 844-839522115-1006:/home/www:/bin/bash $ grep www /etc/passwd www:unused_by_nt/2000/xp:1006:513:www,U-A64X23800P\www,S-1-5-21-44853972 3-688789 844-839522115-1006:/home/www:/bin/bash I wrote: I have edited /etc/apache/httpd.conf: ... User www René Berber wrote:: Danger Will Robinson! Windows requires certain privileges for a user to be able to change a process owner... I would do things different: use cygrunsrv to start Apache as user www, and comment out the User config line (as it was originally). Change reverted, but Apache still refuses to start: $ vi /etc/apache/httpd.conf $ egrep '^[#\w]*User' /etc/apache/httpd.conf #User nobody $ net start httpd The CYGWIN httpd service is starting. The CYGWIN httpd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. I wrote: apachectl status does not work, even if I attempt to enable it in httpd.conf: René Berber wrote:: You have to configure Apache to enable this option. I'll try again: $ vi /etc/apache/httpd.conf $ grep -A 7 Location /server-status /etc/apache/httpd.conf Location /server-status SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 Allow from 192.168.0.0/255.255.0.0 Allow from .holgerdanske.com /Location $ apachectl start /usr/sbin/apachectl start: httpd started $ apachectl status Apache Server Status for a64x23800p.holgerdanske.com Server Version: Apache/1.3.33 (Cygwin) Server Built: Sep 16 2005 18:06:48 _ Current Time: Tuesday, 25-Nov-2008 17:35:18 PST Restart Time: Tuesday, 25-Nov-2008 17:35:13 PST Parent Server Generation: 0 Server uptime: 5 seconds 1 requests currently being processed, 0 idle servers W... Scoreboard Key: _ Waiting for Connection, S Starting up, R Reading Request, W Sending Reply, K Keepalive (read), D DNS Lookup, L Logging, G Gracefully finishing, . Open slot with no current process Success! :-) I must have screwed up on the previous attempt... Stop still fails: $ apachectl stop ?) not runninghectl stop: httpd (pid 3740 $ ps -a | grep httpd 3740 13740 37400 500 17:46:01 /usr/sbin/httpd 302437403740 30240 500 17:46:02 /usr/sbin/httpd René Berber wrote:: You are using -F with Apache, is that foreground? I prefer to run daemons as daemons using -x /path/to/apache.pid. I'm just trying to RTFM and follow the instructions so that Cygwin Apache starts when the system boots: $ less /usr/share/doc/Cygwin/apache-1.3.33.README ... Starting the daemon: You can start the daemon either as a Windows service or as a Cygwin background process. Use cygrunsrv to install Apache as Windows service: # Install HTTPD that starts automatically after system bring up: $ cygrunsrv.exe -I httpd -d CYGWIN httpd -p /usr/sbin/httpd -a -F # Install HTTPD that starts manually after system bringup: $ cygrunsrv.exe -I httpd -d CYGWIN httpd -p /usr/sbin/httpd -a -F -t manual The -F option is needed to run the daemon in foreground. ... René Berber wrote: Use cygrunsrv -VQ httpd, is Account LocalSystem? or it has a space like you show? $ cygrunsrv -VQ httpd Service : httpd Display name: CYGWIN httpd Current State : Stopped Command : /usr/sbin/httpd -F stdin path : /dev/null stdout path : /var/log/httpd.log stderr path : /var/log/httpd.log Process Type: Own Process Startup : Automatic Account : LocalSystem Any other suggestions? TIA, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: trouble running Apache 1.3.33-2 as a service
René Berber wrote: You didn't read the part about cygrunsrv -u www -y tcpip ..., i.e. install the service to run as user www. I read it, but thought I'd exhaust RTFM first. I'll keep your approach in mind for future reference. BTW if you run Apache manually (as your tests show) and you are using a different user (different than www), then you'll create logs and .pid files that won't be accessible to user www, Apache will fail to open those logs, .pid file, etc. So, you have to clean up your mess. The final clue! The remaining steps were: 1. Set User to www in /etc/apache/httpd.conf. 2. Reboot or kill Apache. /var/run/httpd.pid goes away by itself. 3. Move aside /var/log/apache/*log. 4. Start Apache as a service: $ net start httpd The CYGWIN httpd service is starting. The CYGWIN httpd service was started successfully. 5. Make the CGI scripts world-readable and world-executable: $ chmod 0755 /var/www/cgi-bin/* 6. Browse: http://localhost/ http://localhost/server-status http://localhost/server-info http://localhost/cgi-bin/printenv http://localhost/cgi-bin/test-cgi Thanks! :-) David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
trouble running Apache 1.3.33-2 as a service
cygwin: I have a fresh install of Cygwin on Windows XP Professional SP3, including Apache. I have created a Windows account www and updated /etc/passwd: $ mkpasswd -l | grep www /etc/passwd I have edited /etc/apache/httpd.conf: $ cvs diff -r 1.1 httpd.conf Index: httpd.conf === RCS file: /cvs/dpchrist/a64x23800p/etc/apache/httpd.conf,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 139,140c139,140 MinSpareServers 5 MaxSpareServers 10 --- MinSpareServers 1 MaxSpareServers 1 146c146 StartServers 5 --- StartServers 1 155c155 MaxClients 150 --- MaxClients 5 171c171 MaxRequestsPerChild 0 --- MaxRequestsPerChild 100 324c324 #User nobody --- User www 332c332 ServerAdmin [EMAIL PROTECTED] --- ServerAdmin [EMAIL PROTECTED] 350c350 #ServerName www.example.com --- ServerName a64x23800p.holgerdanske.com I can successfully start Apache via apachectl: $ apachectl start /usr/sbin/apachectl start: httpd started apachectl status does not work, even if I attempt to enable it in httpd.conf: $ apachectl status Not Found The requested URL /server-status was not found on this server. _ Apache/1.3.33 Server at a64x23800p.holgerdanske.com Port 80 apachectl stop does not stop Apache, and displays a mangled error message: $ apachectl stop ?) not runninghectl stop: httpd (pid 2628 I can kill Apache if I choose the right PID: $ ps -a | grep httpd 2628 12628 26280 500 21:21:48 /usr/sbin/httpd 198426282628 19840 500 21:35:40 /usr/sbin/httpd 3956 0 0 39560 500 Dec 31 /usr/sbin/httpd $ kill 2628 I would like to have Apache automatically start at system boot and stop and system shutdown, and have attempted to follow the instructions given in: /usr/share/doc/Cygwin/apache-1.3.33.README I installed Apache as follows: $ cygrunsrv.exe -I httpd -d CYGWIN httpd -p /usr/sbin/httpd -a -F Services shows: Name: CYGWIN httpd Description:blank Status: blank Startup Type: automatic Log on as: Local System Attempting to start the service: $ net start httpd The CYGWIN httpd service is starting. The CYGWIN httpd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. Looking at /var/log/apache/error_log reveals no clues. Event Viewer shows: Information -- The CYGWIN httpd service was successfully sent a start control. Information -- The CYGWIN httpd service entered the stopped state. When I attempt to start CGYWIN httpd via Services, I get a dialog: Services The CYGWIN httpd service on Local Computer started and then stopped. Some services may stop automatically if they have no work to do, for example, the Performance Logs and Alerts service. I have tried to RFTM and STFW, including the Cygwin mailing list archives, but haven't found a solution. $ man httpd $ cygrunsrv --help 21 | less cygcheck.out is attached. Any suggestions? TIA, David cygcheck.out Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin 1.5.25-15: cwrsync 2.1.3 hangs when 80 mb of 100 gb data network folder is to be transmitted
Evgeniy wrote: At main office we have a data storage server I use rsync to move files between and within Windows, Linux, and FreeBSD machines. All are running sshd. I create a dpchrist account on each machine, create ssh DSA keys for each account, and copy the public keys to the authorized_keys files on all machines. Once I log into any one machine, I can ssh into any other without passwords, pass phrases, etc.. Not having to enter pass phrases means that I can script rsync, etc., over ssh and not have to be there when the script runs. Note that some would say this approach is a security risk. YMMV Scripts on my machines put backup images into various folders. Permissions are set accordingly. I have a Windows XP Pro SP3/ Cygwin machine with a USB hard drive connected as drive Q: that is the destination for all backup images for all machines. A script on my XP machine uses Cygwin rsync to copy the backup images from the other machines to the USB drive. For example, pulling in daily backup tarballs from my FreeBSD CVS server: /usr/bin/rsync -rt --ignore-existing --stats [EMAIL PROTECTED]:/backup/p3800/ /cygdrive/q/backup/p3800/ Looking at your Cygwin rsync incantation: rsync -Wvrt --ignore-existing --progress -e ssh.exe -i C:\id_dsa [EMAIL PROTECTED]:/x/ /cygdrive/z/ Always use absolute paths for tools; don't rely on $PATH. cron will thank you. I tend to avoid -W, especially over a network. -v and --progress are nice while troubleshooting, but I remove them once things are working. -r and -t are wonderful. :-) --ignore-existing can be a mixed blessing. Windows Media Player and Access seem to change files merely for opening them, even if you I don't make changes. This option saves wasted effort. But, I need to put those files into a separate directory because of the different rsync policy. A related issue is mtime resolution on Unix, NTFS, and FAT32 file systems. I think you can avoid -e by using ssh keys without pass phrases in default locations: -e ssh.exe -i C:\id_dsa Your source and destination directories make me wonder -- they look like filesystem roots. If so, that could be your problem. The only time I rsync filesystem roots is when I'm on XP and I want to copy a decommissioned C: drive image to another drive manually. Everything scripted is in non-root directories. Another possible problem could be that you have a 4 GB+ file -- take a look. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: SSHD Problems (Continued)
liminal wrote: I still am unable to connect to my external IP address using ssh, but can connect fine to localhost. Perhaps a firewall on your machine is blocking ssh traffic. I run XP Pro SP3, and added the following exception to Windows Firewall: Name: ssh Port number:22 * TCP HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
building perl-5.8.8-4 from source perl-5.8.8-ext-Win32CORE.tar.bz2 not found
cygwin: I am attempting to build Perl from source (I'm curious about Perl's regression test), but it appears that the current Cygwin source distribution is incomplete: 20080524-083532 [EMAIL PROTECTED] ~/mydocuments/build/perl-5.8.8-4 $ ./build.sh + unset LIB + unset INCLUDE + export CYGWIN=server + CYGWIN=server + pkg=perl + ver=5.8.8 + major=5.8 + release=-4 ++ pwd + dir=/home/Administrator/mydocuments/build/perl-5.8.8-4 ++ echo 5.8.8-4 ++ sed 's/-.*//' + shortver=5.8.8 + buildperl=buildperl + set +x preq perl-5.8.8-ext-Win32CORE.tar.bz2 not found + exit http://cygwin.com/packages/perl/perl-5.8.8-4-src appears to confirm this omission. Please advise. TIA, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: rsync
Sisyphus wrote: Is there an rsync package for Cygwin ? Yes. When you're in setup and looking at the package list, click the button near the top-right to change views to an alphabetized list of all packages, and you should be able to find it. Steven Hartland wrote: Its very unreliable over ssh, constantly locks up part way transfers, so if you do use it I'd recommend using daemon mode. I use Cygwin rsync within my Windows box and over Cygwin ssh to fetch backup tarballs from my FreeBSD box, and it works. It's not as fast as I think it should be, but I don't have the skills or time to figure out why so I just wait and it gets the job done eventually. Alternatively use SFU which doesn't have the issues. I tried SFU a while back and seem to recall that it lacked one or more killer apps that I use, so I use Cygwin. I may whine about Cygwin from time to time, but it's still the best GNU/OSS toolkit for Windows. :-) David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cpan DBD::SQLite failing tests
cygwin: I am attempting to install Perl DBD::SQL via CPAN on a fresh installation of Cygwin, but it fails the tests (see attached cpan.out). Per http://www.cygwin.com/problems.html, cygcheck.out is attached. Any suggestions? TIA, David cygcheck.out Description: Binary data cpan.out Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
sshd.log /var/empty must be owned by root and not group or world-writable.
cygwin: I was attempting to update/upgrade my Cygwin installation: 1. Rename C:\cygwin to C:\cygwin-old 2. Create new folders C:\cygwin and C:\cygwin\setup . 3. Download latest Cygwin Setup and save as C:\cygwin\setup\setup.exe . 4. Run Cygwin Setup and download/ install base system from Internet. 5. Run Cygwin Setup and download/ install openssh from Internet. 6. Run Cygwin Bash and configure ssh: [EMAIL PROTECTED] ~ $ ssh-host-config Generating /etc/ssh_host_key Generating /etc/ssh_host_rsa_key Generating /etc/ssh_host_dsa_key Generating /etc/ssh_config file Privilege separation is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep . Should privilege separation be used? (yes/no) yes Generating /etc/sshd_config file Host configuration finished. Have fun! $ ssh-user-config WARNING: group and other have been revoked write permission to your home directory /home/Administrator. This is required by OpenSSH to allow public key authentication using the key files stored in your .ssh subdirectory. Revert this change ONLY if you know what you are doing! Shall I create an SSH1 RSA identity file for you? (yes/no) no Shall I create an SSH2 RSA identity file for you? (yes/no) yes Generating /home/Administrator/.ssh/id_rsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Do you want to use this identity to login to this machine? (yes/no) yes Adding to /home/Administrator/.ssh/authorized_keys Shall I create an SSH2 DSA identity file for you? (yes/no) yes Generating /home/Administrator/.ssh/id_dsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Do you want to use this identity to login to this machine? (yes/no) yes Adding to /home/Administrator/.ssh/authorized_keys Configuration finished. Have fun! 7. Run Cygwin Bash and attempt to start sshd: $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. 8. Look at /var/log/sshd.log: /var/empty must be owned by root and not group or world-writable. 9. Adjust mode of /var/empty and attempt to start sshd: 20080217-144322 [EMAIL PROTECTED] /var $ ll -d empty/ drwxr-xr-x+ 2 Administrator None 0 Feb 17 14:30 empty// 20080217-144326 [EMAIL PROTECTED] /var $ chmod 700 empty 20080217-144400 [EMAIL PROTECTED] /var $ ll -d empty/ drwx--+ 2 Administrator None 0 Feb 17 14:30 empty// 20080217-144405 [EMAIL PROTECTED] /var $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. 10. Look at /var/log/sshd.log: /var/empty must be owned by root and not group or world-writable. 11. Change owner of /var/empty: 20080217-144416 [EMAIL PROTECTED] /var $ chown root empty/ chown: invalid user: `root' 12. STFW. root is not a valid user name. Make an educated guess and try again: 20080217-151048 [EMAIL PROTECTED] /var $ chown SYSTEM empty 20080217-151056 [EMAIL PROTECTED] /var $ ll -d empty/ drwx--+ 2 SYSTEM None 0 Feb 17 14:30 empty// 20080217-151108 [EMAIL PROTECTED] /var $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service was started successfully. Per http://www.cygwin.com/problems.html, cygcheck.out is attached. I don't know how to put the above fixes (chmod, chown) into Cygwin; perhaps the openssh maintainer can do so. HTH, David cygcheck.out Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Running perl script in cron in cygwin under Windows
Macalalad, Jun wrote: Thanks David. Thanks again for the help You're welcome. :-) Please help someone else if/when you have the chance. Please keep this thread on the Cygwin list so other people can find it (e.g. hit Reply to All). Cron works on other scripts but not with a perl script. If it's the environment (we are running korn instead of the bash default), it might be good to create a wrapper script in korn shell. It's been a while since I used the Korn shell, but I seem recall that it also processed a profile script for interactive logins (.profile?). You should read the Korn shell manual page to find out and/or get a copy of the O'Reilly book (I have one and it was very helpful when I was using the Korn shell): http://www.oreilly.com/catalog/korn2/index.html Does cron use bash default profile for the login to run? That could be the key. It's also been a while since I had to solve cron problems, but I believe cron doesn't use any shell -- it just launches whatever program and arguments you feed it (via one of the exec() calls?). So if you want to run shells, scripts, etc., you have to do whatever set up your code expects. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Running perl script in cron in cygwin under Windows
Macalalad, Jun wrote: I've been trying to run a perl script from cron in cygwin -- not good. It runs when in a cygwin command prompt. Any idea where I've done wrong please? Help? Do you have cron working? Verify it with a simple command, such as 'touch'. If that works, try a Perl one-liner such as the following: 20080113-214329 [EMAIL PROTECTED] ~ $ perl -e 'open FH, /home/dpchrist/hello.out; print FH hello, world!\n' If all of the above works, I'd suspect the environment variables/ path -- cron doesn't set up the same environment as you get with an interactive login shell. My standard trick is to write a Bash shell script that sets up the environment (typically by invoking .bash_profile and/or .bashrc) and then launches the Perl script, and then have cron run the wrapper script. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: sshd problem on Windows 2003
Len Jacobs wrote: ... sshd ... The services have been working, but now they are not ... /var/empty directory ... I moved my C:\cygwin directory aside today and did a fresh install of Cygwin on Windows XP Professional SP2. I also found that sshd would not start. There was a clue regarding ownership of the above directory in /var/log/sshd.log. After RTFM, STFW, and beating my head against the monitor to no avail, my work-around was to go back to a working Cygwin image from November 2006. As an aside, it seems that Cygwin has become less stable since support for Vista was attempted. Once again, I can only conclude that the underlying problem is insufficient testing of Cygwin and its components. I understand that this is a monumental, tedious, and largely thankless task. I volunteered to help with such a few years ago, and the silence was deafening. When I spoke up about that, I was flamed by key Cygwin maintainers. We'll see what kind of responses this paragraph generates. I've searched around and tried various Unix/GNU on Windows alternatives over the years, but no free (as in freedom nor as in beer) product seemed better. I used MKS Toolkit at one employer for a while; it was a fairly nice Unix tool chain, but I prefer GNU. Given the lack of a significant revenue stream for Cygwin and for GNU/OSS tools, I don't see the stability situation improving. My strategy remains to take a copy of the C:\cygwin\setup tree every now and then, and keep the images for a long time. Given the GPL and the fact that I rarely download source code for Cygwin and/or its packages, I cannot share my Cygwin images. Isn't OSS fun? }:- David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Wish Setup would accept my Perl
Michael Kairys wrote: I see that quite a discussion has evolved since last I checked this thread. Likewise. I've gone round and round on the issues of command.exe, Windows Explorer, Cygwin, and Perl. Perl libraries and the various maintenance tools add yet another dimension of complexity. Going through the various combinations and permutations was very confusing and led to much frustration and wasted effort. My solution was to limit myself to Cygwin, Cygwin Perl, Cygwin Perl libraries, and Perl libraries built from source (using Cygwin tools). If I want to light off a Perl script from Windows land, I write a batch file. This approach is the easiest for me to understand, and works reliably. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How do I make scripts my PC executable
Andrew DeFaria wrote: ... Additionally, if say run from cron, Thanks for the reminder -- cron was another issue/ test case that drove me towards the solution I posted. Since you were obviously having difficulties there is still something wrong with *your* environment ... and as such I know that I, personally, would be concerned about that until I got it fixed. However, as a profession I squint and say That just ain't right and That's a kludgy fix and it would bother me. I know from past experience that such things eventually have a knack of coming back and biting you in the ass later on... I make no claim that my solution was correct, best, ideal, proper, sexy, etc.; it just works AFAIC. Cygwin changes on a regular basis, causing breakage. So, I make, keep, and run images of Cygwin installations that seem to work, and only upgrade/update when I absolutely have to. I'm a Cygwin user, not a Cygwin developer; I have no desire to become the later (and this thread is reminding me why). If you feel compelled to research and explain the problems with the code I posted and provide a better answer, go for it. We cannot debug your environment because we don't have your environment. I didn't ask for help debugging my environment, TYVM. I was attempting to help zip184 with a problem I've faced in the past, and it turned into a huge exercise in negative reinforcement that will dissuade me from posting on this list again anytime soon. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How do I make scripts my PC executable
I wrote: $ cat ssh-backup-all.bat C:\cygwin\bin\bash ./ssh-backup-all Steve Holden wrote: Wouldn't it be possible to omit the first two executable lines and have the batch script read c:\cygwin\bin\bash -l ./ssh-backup-all I posted a sample shell session. The $ cat ssh-backup-all.bat is what I typed into my shell and the C:\cygwin\bin\bash ./ssh-backup-all is the result (e.g. the output of the cat command; the contents of ./ssh-backup-all). HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How do I make scripts my PC executable
Andrew DeFaria wrote: I think he was saying that this: $ cat ssh-backup-all.bat C:\cygwin\bin\bash ./ssh-backup-all $ cat ssh-backup-all #! /bin/sh . /etc/profile . /home/dpchrist/.bash_profile # do backup stuff could be reduced to this: $ cat ssh-backup-all.bat C:\cygwin\bin\bash -l ./ssh-backup-all $ cat ssh-backup-all # do backup stuff I forget the gory details, but I do remember that there was gore. I tried many permutations of Bash arguments, shell script commands, etc., and the above is what worked on my particular installation of Cygwin then (2006/09/14) and what still works on my particular installation of Cygwin today (last updated 2007-05-25). There may be other ways to get it to work; YMMV. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How do I make scripts my PC executable
Steve Holden wrote: I posted alternative content for the batch script that would save you from putting two unnecessary lines in the shell script. Or so I thought. The -l (or --login) option has bash read its usual startup files, thereby avoiding the need four the course (.) commands at the beginning of the shell script. I tried the Bash --login option, and couldn't get *everything* to work (e.g. all the backup Bash and Perl scripts, and everything they depend upon) under all tested conditions -- invoking the shell script via Cygwin Bash, invoking the shell script via a batch file invoked from cmd.exe, invoking the batch file via Windows Explorer, invoking the batch file via a Windows shortcut, etc.. Please test your ideas, test my solution, figure out the obvious and unobvious differences, and post your results. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How do I make scripts my PC executable
Steve Holden wrote: Well there's no need to be so defensive. A simple that doesn't work, preferably with a following because ... would have been quite adequate. Now I have seen your reply to Andrew DeFaria I am somewhat better informed. If my tone put you off, I apologize. Understand that GNU, Cygwin, Linux, *BSD, etc., are labors of love; users are expected to put effort into educating themselves, finding answers on their own, and helping others with difficulties. Requesting help on a support forum implies a willingness to learn, to do work, and to share the results. Understand that my solution is by no means the only or the best answer; I beat my head against the problem until I found something that worked, and then stopped there. If you follow my suggestion of please test your ideas, test my solution, figure out the obvious and unobvious differences, and post your results, I suspect that we'll all have a better understanding of what's going on with Windows, Windows Explorer, cmd.exe, Cygwin, and/or Bash. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How do I make scripts my PC executable
zip184 wrote: I have some scripts I'd like to run without starting cygwin and typing in their paths. Is there a way to make windows recognize that a file is a bash/python script and run them like as if I ran them in cygwin? I'd like to just be able to doubleclick them in windows explorer. Is this possible? (I'm using bash and python scripts) I have a series of Cygwin Bash and Perl scripts for backing up my machines. I develop/debug them interactively using Cygwin Bash shells. Once everything works, I light them off using a shortcut pointing to a batch file that fires up Cygwin Bash and tells it to process the top-level Bash shell script: $ cat ssh-backup-all.bat C:\cygwin\bin\bash ./ssh-backup-all The top-level Bash shell script sets the environment up to match interactive login and then does it's job: $ cat ssh-backup-all #! /bin/sh . /etc/profile . /home/dpchrist/.bash_profile # do backup stuff HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: [ANNOUNCEMENT] Updated: perl-Win32-GUI-1.04-1
Reini Urban wrote: I'll try to upload a fixed 1.05. Okay. Thank you. :-) David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: perl-Win32-GUI-1.04-1
cygwin: Is Win32::GUI supposed to work? I installed 1.04-1 a few months ago, but didn't get around to playing with it until last night. When I tried to start the demo application, it core dumped. I checked the Win32::GUI project site, and the current version is 1.05. I updated Cygwin -- no help. I updated Win32::GUI via CPAN -- no help. 20070511-180215 [EMAIL PROTECTED] ~ $ win32-gui-demos.pl Segmentation fault (core dumped) David [ANNOUNCEMENT] Updated: perl-Win32-GUI-1.04-1 From: Reini Urban rurban at x-ray dot at To: cygwin at cygwin dot com Date: Wed, 01 Nov 2006 16:03:27 +0100 Subject: [ANNOUNCEMENT] Updated: perl-Win32-GUI-1.04-1 Reply-to: cygwin at cygwin dot com NEWS: = I've updated the version of perl-Win32-GUI to the new upstream release 1.04. This version is the same as it would have been installed via CPAN, since all cygwin patches are included upstream. It just installs into vendor_perl. CHANGES: Quite a lot of new sub-modules. http://sourceforge.net/project/shownotes.php?group_id=16572release_id=455710 DESCRIPTION: Win32::GUI is a Perl extension allowing creation of native Win32 GUI applications. UPDATE: === To update your installation, click on the Install Cygwin now link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Save it and run setup, answer the questions and pick up the package name from the 'Libs' category (it should already be selected). DOWNLOAD: = Note that downloads from sources.redhat.com (aka cygwin.com) aren't allowed due to bandwidth limitations. This means that you will need to find a mirror which has this update, please choose the one nearest to you: http://cygwin.com/mirrors.html QUESTIONS: == If you want to make a point or ask a question the Cygwin mailing list is the appropriate place. CYGWIN-ANNOUNCE UNSUBSCRIBE INFO: = To unsubscribe to the cygwin-announce mailing list, look at the List-Unsubscribe: tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at this URL. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Perl Device::SerialPort problem
aliko wrote: Now the installation process of Device: SerialPort advances further but hangs at the testing steps... Is Win32::SerialPort still viable? http://search.cpan.org/~bbirth/Win32-SerialPort-0.19/lib/Win32/SerialPor t.pm STFW, I didn't find any SerialPort in Cygwin packages: http://cygwin.com/cgi-bin2/package-grep.cgi?grep=serialport But there is a Device-SerialPort-0.22.zip in ActiveState Perl: http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/ Google'ing for cygwin perl serialport yields a bunch of hits. You might want to look for support forums, mailing lists, newsgroups, etc., for either or both *::SerialPort modules and search for Cygwin-specific posts. I usually have better luck installing binary packages for anything -- Perl libraries, GNU tools, user applications, daemons, etc. -- rather than building from scratch and/or using CPAN. So if you can't get either *::SerialPort module to install or work correctly on Cygwin, you may want to try using ActiveState Perl. But, be warned that mixing ActivePerl with Cygwin may be confusing and/or difficult. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Terminal background color
Deluigi Marcus wrote: ... which window is logged on on which machine. I include the hostname in my Bash prompt: 2006-11-24 08:06:17 [EMAIL PROTECTED] ~ $ grep PS1 .bash_profile export PS1='\D{%Y-%m-%d %H:%M:%S} [EMAIL PROTECTED] \w\n\$ ' HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Perl Device::SerialPort problem
aliko is having troubles with Cygwin, HOME, Perl, and/or CPAN. When you start a Cygwin Bash shell for the first time, there are at least two possibilities: 1. Your HOME environment is not set, Cygwin creates the directory C:\cygwin\home\USERNAME, and copies in .bashrc, .bash_profile, etc.. This is how I set up my machines, and everything works as I expect (including Perl, although I've run into problems with CPAN and try to avoid it; manually installing packages is safest). 2. Your HOME environment variable is set, and Cygwin goes off down the garden path. I don't run my systems this way. It would appear you have the later case. To get to the former, go to Start - Settings - Control Panel - System - Advanced - Environment Variables and take a look at your User and System variables. If HOME is set and you didn't set it manually, something else did. So, removing HOME may fix Cygwin and break something else. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Help running bash scripts
Thierry wrote: running a simple sh script(test.sh): #!/bin/sh # test $ ./test.sh : command not found Get this book: http://www.oreilly.com/catalog/bash3/index.html test is a Bash built-in command (man bash; see CONDITIONAL EXPRESSIONS). Avoid using that keyword in Bash scripts and anywhere else Bash might trip over it (such as script and program names). So: 1. Rename your script. 2. Make it executable. 3. Adjust your shebang line to point to Bash. This is the location on my Cygwin system: 2006-11-21 21:11:50 [EMAIL PROTECTED] ~ $ which bash /usr/bin/bash 4. Try this: 2006-11-21 21:11:51 [EMAIL PROTECTED] ~ $ vi foo.sh #! /usr/bin/bash echo foo 2006-11-21 21:16:39 [EMAIL PROTECTED] ~ $ chmod +x foo.sh 2006-11-21 21:16:44 [EMAIL PROTECTED] ~ $ ./foo.sh foo HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: FW: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1)
Marek: Thank you. :-) David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 2:15 PM To: David Christensen Cc: 'Reini Urban'; pod-people@perl.org; [EMAIL PROTECTED]; 'cygwin' Subject: RE: FW: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1) I will consider this fix in the next Pod-Parser release. -Marek On Sun, 9 Jul 2006, David Christensen wrote: Cygwin Perl: This issue is still present. Reini's PERLIO suggestion functions as a work-around on Cygwin. Who decides if/when to use Reini's suggested patch? If that decision has already been made in the negative, why and what is the next step? If that decision has already be made in the positive, when will we see the correction in Cygwin? David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Reini Urban Sent: Tuesday, January 18, 2005 2:03 AM To: pod-people@perl.org Cc: David Christensen; [EMAIL PROTECTED]; cygwin Subject: Re: FW: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1) David Christensen schrieb: pod-people perlbug: I made the subject posting on the Cygwin mailing list. Gerrit P. Haase confirmed the bug in pod2usage(), and requested that I forward the posting to pod-people and perlbug. The referenced script attachments follow. All three cases work fine for me on cygwin perl 5.8.6 with default configuration. Having the scripts on textmounts and on binmounts. Just if the scripts are on textmounts and the files with CRLF, test0 and test1 will fail. PERLIO not set. However: PERLIO=crlf ./test1 and PERLIO=crlf ./test0 works ok, with those textmount cases. Debugging through Pod::Usage, reveils that reading from the tied FileHandle will keep \r\n. Looks ok. Pod::Parser::parse_from_filehandle ... DB1 x $in_fh 0 GLOB(0x8f2534) - *Symbol::GEN0 FileHandle({*Symbol::GEN0}) = fileno(6) DB2 c Pod::Select::is_selected Pod::Select::is_selected(/usr/lib/perl5/5.8/Pod/Select.pm:508): $_ = =head1 SYNOPSIS\cM\cJ\cM\cJ; if (/^=((?:sub)*)(?:head(?:ing)?|sec(?:tion)?)(\d*)\s+(.*)\s*$/) { my ($level, $heading) = ($2, $3); } DB2 x $heading 0 SYNOPSIS\cM Which should be SYNOPSIS. So my recommended fix would be this patch: $ diff -bu Select.pm~ Select.pm --- Select.pm~ 2005-01-10 00:30:15.00100 +0100 +++ Select.pm 2005-01-18 11:02:32.920797700 +0100 @@ -505,7 +505,7 @@ ## Keep track of current sections levels and headings $_ = $paragraph; -if (/^=((?:sub)*)(?:head(?:ing)?|sec(?:tion)?)(\d*)\s+(.*)\s*$/) { +if (/^=((?:sub)*)(?:head(?:ing)?|sec(?:tion)?)(\d*)\s+(.*?)\s*$/) { ## This is a section heading command my ($level, $heading) = ($2, $3); $level = 1 + (length($1) / 3) if ((! length $level) || (length $1)); -Original Message- From: David Christensen [mailto: dpchrist at holgerdanske dot com] Sent: Sunday, January 16, 2005 7:03 PM To: 'cygwin at cygwin dot com' Subject: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1) Cygwin: Perl Pod::Usage pod2usage(-verbose = 0) is supposed to display the Pod SYNOPSIS information (ref. 'perdoc Pod::Usage'). See attached script 'test0'. On Debian 3.0r2, it works: CVSENV[EMAIL PROTECTED]:~/cygwin-issues/Pod-Usage$ perl test0 Usage: This is the synopsis... On Cygwin, it exits without displaying anything. pod2usage(-verbose = 1) is supposed to display the Pod SYNOPSIS, OPTIONS, ARGUMENTS, and/or OPTIONS AND ARGUMENTS sections. See attached script 'test1'. On Debian, it works: CVSENV[EMAIL PROTECTED]:~/cygwin-issues/Pod-Usage$ perl test1 Usage: This is the synopsis... Options: Here are the options... On Cygwin, it exits without displaying anything. pod2usage(-verbose = 2) is supposed to display the entire Pod documentation. See attached script 'test2'. It works on both Debian and Cygwin. Checking the mailing list archive, I see one report but no resolution: http://sources.redhat.com/ml/cygwin/2002-01/msg01392.html Google didn't seem to have much on this either. [EMAIL PROTECTED]:~/mydocuments/cygwin-issues/Pod-Usage$ cat test0 #! /usr/bin/perl -w use Pod::Usage; pod2usage(-verbose = 0); =pod =head1 NAME test - demonstrates Cygwin bug in pod2usage. =head1 SYNOPSIS This is the synopsis... =head1 OPTIONS Here are the options... =head1 DESCRIPTION Descriptive text... =cut [EMAIL PROTECTED]:~/mydocuments/cygwin-issues/Pod-Usage$ cat test1 #! /usr/bin/perl -w use Pod::Usage; pod2usage(-verbose = 1); =pod =head1 NAME test - demonstrates Cygwin bug in pod2usage. =head1 SYNOPSIS This is the synopsis... =head1 OPTIONS Here are the options... =head1 DESCRIPTION Descriptive text... =cut [EMAIL PROTECTED]:~/mydocuments/cygwin-issues/Pod-Usage$ cat test2 #! /usr
RE: sshd ssh_exchange_identification: Connection closed by remote host until restarted
Pritchard, Douglas wrote: We tried your solution and did it a few times just to make sure and the machines having this problem still have it. I did find a reference that suggested it might be a timing or dependency problem with another service. Sshd already is tied to TCP/IP as a dependency. I don't know what else it could be dependent on. Just some thoughts. Try updating Cygwin first and then running rebaseall. If that doesn't work, read and follow the instructions here: http://cygwin.com/problems.html HTH, David p.s. Please reply to the list; no need to cc me. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Exim / cron question
Joost Kraaijeveld wrote: I want cron to deliver an e-mail throught exim to an Exchange server, running on the same machine. I used to run a Windows 2003 Small Business Server with Exchange, and was having a tough time with Exchange, Cygwin Exim, and Cygwin email. I seem to recall my work-around was to only install Cygwin email (my script called email) and to configure Cygwin email to send mail via an SMTP host (rather than sendmail/ exim link). HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: sshd ssh_exchange_identification: Connection closed by remote host until restarted
Pritchard, Douglas wrote: You posted a problem with sshd no connecting after XP restarts but works after a manual restart of sshd. Did you ever get this resolved? I am having the same issue. Yes. You need to install rebase, shutdown any running services and any open Cygwin shells, applications, etc., start an Ash shell, and run rebaseall. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to run rxvt
Panos Katergiathis wrote: I have rxvt installed but there is no shortcut in order to run it, I wrote a batch file and made a shortcut to run it: C:\Documents and Settings\dpchrist\My Documents\hometype rxvt.bat @echo off rem $Id: rxvt.bat,v 1.1 2005/10/18 04:17:23 dpchrist Exp $ C: chdir C:\cygwin\bin rxvt -fn Lucida Console-11 -e /bin/bash --login -i HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Cygwin as SSH Client Problem
Panos Katergiathis wrote: I am using cygwin as ssh client in order to administrate a linux machine. All is ok, except when running (on the remote machine) programs like Midnight Commander, whereas the lines (ncurses?) appear as garbage. I've run into similar problems with top when ssh'ing from Cygwin to Debian 3.1: http://sourceware.org/ml/cygwin/2005-10/msg00432.html http://sourceware.org/ml/cygwin/2005-10/msg00453.html I can't seem to find my post in the Debian archives... So far, no identification of the root cause of the problem. The work-around is to use the rxvt shell in Cygwin rather than Bash. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: cygrunsrv, sshd, services and not starting after boot
Ron Dozier wrote I noted that a lot of people are having trouble getting the sshd service to start automatically. I've run into the same issue with exim, sshd, and/or cron. I haven't tried to dig for the root cause. Running rebaseall fixes the issue (whatever it is), and that's good enough for me. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Checking XCOPY Exit Value in Cygwin Bash
Shane: Thank you for the tip. Actually I am using Visual Source Safe as the Source Management tool. I was considering the use of CVS, but decided against at the last moment because most of the fellow developers including me, had been using VSS for a considerable amount of time, and felt that the migration from a VSS to CVS would take a some time. Similarly for Make. We are primarily a group of developers who are conversent with MS Windows than the Unix environment. Cygwin basically gives us the power of bash scripting and the ease of Windows at the same time. :) Visual tools can give neophytes a boost, but typically become cumbersome as complexity increases. Command-line tools require more learning effort up front, but scale better because they are completely customizable. I agree that integrating Visual Studio products, CVS, and/or Make is a non-trivial undertaking. (The roles tool smith and build meister come to mind.) But, I'm now learning C#, .NET, ASP.NET, Mono, Apache/mod_mono, etc., and will be going through this process by necessity. (I'd like to be able to write C# libraries and build/run console and web applications on both Windows and Debian GNU/Linux). What I am trying to do is, checkout the source to the build directory and if there are any local changes in my working directory copy them to the build directory, build and do a test run from there. This is so that I can test my code before I do the actual check in. Make has RCS (and CVS?) integration features that allow it to do a checkout/ update prior to a build. However, I typically use the tools separately, so I can control what happens when and see the results before deciding what to do next. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Checking XCOPY Exit Value in Cygwin Bash
Shane wrote: I am writing a automated build script for my project that will be run under cygwin. I will copy my updated source files to the build directory and if there are updated files, the executables will be built. To copy the source files, I had to use XCOPY since the directory structure should be preserved in the destination directory also. To copy only the updated files, I used the /D switch for XCOPY. Now since I want to execute the source compile only if files in the build directory have been updated, I have to use the exit codes of XCOPY inside the script. There are standard software development tools that solve the problems you are facing -- CVS and Make: http://ximbiot.com/cvs/wiki/index.php?title=Main_Page http://ximbiot.com/cvs/wiki/index.php?title=Main_Page Both are included in Cygwin. In the long run, you'd be better off investing in a basic to intermediate understanding of both rather than hacking together custom scripts to implement a subset of their functionality. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: FW: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1)
Yitzchak Scott-Thoennes wrote: I'm building an updated perl package, and will include this patch and try to get it included upstream. Thank you. :-) David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: In scripts suddenly must use perl.exe rather than perl
zzapper wrote: c:/usr/local/bin/perl sdbk.pl $* (hard path to activestate perl) It was my experience that mixing Cygwin and ActiveState Perl was a recipe for frustration. Why can't you just use Cygwin Perl? David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: FW: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1)
Cygwin Perl: This issue is still present. Reini's PERLIO suggestion functions as a work-around on Cygwin. Who decides if/when to use Reini's suggested patch? If that decision has already been made in the negative, why and what is the next step? If that decision has already be made in the positive, when will we see the correction in Cygwin? David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Reini Urban Sent: Tuesday, January 18, 2005 2:03 AM To: pod-people@perl.org Cc: David Christensen; [EMAIL PROTECTED]; cygwin Subject: Re: FW: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1) David Christensen schrieb: pod-people perlbug: I made the subject posting on the Cygwin mailing list. Gerrit P. Haase confirmed the bug in pod2usage(), and requested that I forward the posting to pod-people and perlbug. The referenced script attachments follow. All three cases work fine for me on cygwin perl 5.8.6 with default configuration. Having the scripts on textmounts and on binmounts. Just if the scripts are on textmounts and the files with CRLF, test0 and test1 will fail. PERLIO not set. However: PERLIO=crlf ./test1 and PERLIO=crlf ./test0 works ok, with those textmount cases. Debugging through Pod::Usage, reveils that reading from the tied FileHandle will keep \r\n. Looks ok. Pod::Parser::parse_from_filehandle ... DB1 x $in_fh 0 GLOB(0x8f2534) - *Symbol::GEN0 FileHandle({*Symbol::GEN0}) = fileno(6) DB2 c Pod::Select::is_selected Pod::Select::is_selected(/usr/lib/perl5/5.8/Pod/Select.pm:508): $_ = =head1 SYNOPSIS\cM\cJ\cM\cJ; if (/^=((?:sub)*)(?:head(?:ing)?|sec(?:tion)?)(\d*)\s+(.*)\s*$/) { my ($level, $heading) = ($2, $3); } DB2 x $heading 0 SYNOPSIS\cM Which should be SYNOPSIS. So my recommended fix would be this patch: $ diff -bu Select.pm~ Select.pm --- Select.pm~ 2005-01-10 00:30:15.00100 +0100 +++ Select.pm 2005-01-18 11:02:32.920797700 +0100 @@ -505,7 +505,7 @@ ## Keep track of current sections levels and headings $_ = $paragraph; -if (/^=((?:sub)*)(?:head(?:ing)?|sec(?:tion)?)(\d*)\s+(.*)\s*$/) { +if (/^=((?:sub)*)(?:head(?:ing)?|sec(?:tion)?)(\d*)\s+(.*?)\s*$/) { ## This is a section heading command my ($level, $heading) = ($2, $3); $level = 1 + (length($1) / 3) if ((! length $level) || (length $1)); -Original Message- From: David Christensen [mailto: dpchrist at holgerdanske dot com] Sent: Sunday, January 16, 2005 7:03 PM To: 'cygwin at cygwin dot com' Subject: Cygwin Perl bug -- pod2usage(-verbose = 0) pod2usage(-verbose = 1) Cygwin: Perl Pod::Usage pod2usage(-verbose = 0) is supposed to display the Pod SYNOPSIS information (ref. 'perdoc Pod::Usage'). See attached script 'test0'. On Debian 3.0r2, it works: CVSENV[EMAIL PROTECTED]:~/cygwin-issues/Pod-Usage$ perl test0 Usage: This is the synopsis... On Cygwin, it exits without displaying anything. pod2usage(-verbose = 1) is supposed to display the Pod SYNOPSIS, OPTIONS, ARGUMENTS, and/or OPTIONS AND ARGUMENTS sections. See attached script 'test1'. On Debian, it works: CVSENV[EMAIL PROTECTED]:~/cygwin-issues/Pod-Usage$ perl test1 Usage: This is the synopsis... Options: Here are the options... On Cygwin, it exits without displaying anything. pod2usage(-verbose = 2) is supposed to display the entire Pod documentation. See attached script 'test2'. It works on both Debian and Cygwin. Checking the mailing list archive, I see one report but no resolution: http://sources.redhat.com/ml/cygwin/2002-01/msg01392.html Google didn't seem to have much on this either. [EMAIL PROTECTED]:~/mydocuments/cygwin-issues/Pod-Usage$ cat test0 #! /usr/bin/perl -w use Pod::Usage; pod2usage(-verbose = 0); =pod =head1 NAME test - demonstrates Cygwin bug in pod2usage. =head1 SYNOPSIS This is the synopsis... =head1 OPTIONS Here are the options... =head1 DESCRIPTION Descriptive text... =cut [EMAIL PROTECTED]:~/mydocuments/cygwin-issues/Pod-Usage$ cat test1 #! /usr/bin/perl -w use Pod::Usage; pod2usage(-verbose = 1); =pod =head1 NAME test - demonstrates Cygwin bug in pod2usage. =head1 SYNOPSIS This is the synopsis... =head1 OPTIONS Here are the options... =head1 DESCRIPTION Descriptive text... =cut [EMAIL PROTECTED]:~/mydocuments/cygwin-issues/Pod-Usage$ cat test2 #! /usr/bin/perl -w use Pod::Usage; pod2usage(-verbose = 2); =pod =head1 NAME test - demonstrates Cygwin bug in pod2usage. =head1 SYNOPSIS This is the synopsis... =head1 OPTIONS Here are the options... =head1 DESCRIPTION Descriptive text... =cut -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html
FW: 200 GB drive has room but gzip indicates No space left on device
Cygwin: Turning off Windows 2003 SBS quotas on the hard drive fixes the problem. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 200 GB drive has room but gzip indicates No space left on device
Cygwin: I put the 200 GB drive into an XP box and ran Cygwin df -- same result. Cygwin utilities, including df, work fine a 250 GB drive in the same XP box. I must assume that the 200 GB disk is corrupted, or is failing. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
200 GB drive has room but gzip indicates No space left on device
Cygwin: I have a 200 GB drive (E:) that I store ntbackup images on. After making a backup image, I use Cygwin to gzip the image and md5sum the tarball. A few days ago, gzip started complaining No space left on device: CVSENV2006-05-29 12:13:47 [EMAIL PROTECTED] /backup/bin/p42800 e $ /usr/bin/gzip '/cygdrive/e/backup/p42800e/p42800e-exchange-2006052 7-23.bkf' gzip: /cygdrive/e/backup/p42800e/p42800e-exchange-20060527-23.bk f.gz: No space left on device Cygwin md5sum seems to work okay. The Windows properties dialog for the drive indicates 125 GB used and 61.3 GB available. I also noticed that Cygwin df indicates a large negative number for space used and a small positive number for space available: CVSENV2006-05-29 12:14:15 [EMAIL PROTECTED] /backup/bin/p42800 e $ df Filesystem 1K-blocks Used Available Use% Mounted on C:\cygwin\bin 78148160 5025460 73122700 7% /usr/bin C:\cygwin\lib 78148160 5025460 73122700 7% /usr/lib C:\cygwin 78148160 5025460 73122700 7% / c:78148160 5025460 73122700 7% /cygdrive/c e: 1048576 -73786976294774971336 52160 101% /cygdrive/e cygcheck -s -v -r cygcheck.out is attached FYI. Any suggestions? TIA, David cygcheck.out Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 200 GB drive has room but gzip indicates No space left on device
Dave Korn wrote: Are you absolutely sure your BIOS can handle disks bigger than the 125GB limit? The drive is connected to a Promise Ultra133TX2 adapter, which seems to work fine with both 200 GB and 250 GB drives. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
FW: 200 GB drive has room but gzip indicates No space left on device
Replies to mailing list mail should go to the mailing list, not the poster... -Original Message- From: David Christensen [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 2:05 PM To: 'Dave Korn' Subject: RE: 200 GB drive has room but gzip indicates No space left on device Dave Korn wrote: Or could it be a dodgy AV program interfering with normal operations? I use McAfee Virus Scan Enterprise 8.0i. It seems to work just fine with all my drives (up to 250 GB). David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 200 GB drive has room but gzip indicates No space left on device
Dave Korn wrote: It's still odd that cygcheck (which is an all-win32-native program) would report false results like that. I updated Cygwin just now. The problem still exists. Attached please find the output of: 2006-05-29 16:44:48 [EMAIL PROTECTED] /backup/p42800e $ cygcheck -s -v -r cygcheck-20060529-1644.out It's interesting to note that gzip works fine on small files (cygcheck-20060529-1644.out, 16 kB), but barfs on big ones (p42800e-exchange-20060527-23.bkf, 505,973 MB): 2006-05-29 16:48:01 [EMAIL PROTECTED] /backup/bin/p42800e $ ./run-gzips = Mon May 29 16:48:06 2006 run-gzips begin = /usr/local/bin/gzips /backup/p42800e /usr/bin/gzip '/cygdrive/e/backup/p42800e/cygcheck-20060529-1644.out' /usr/bin/gzip '/cygdrive/e/backup/p42800e/p42800e-exchange-20060527-23.bkf' gzip: /cygdrive/e/backup/p42800e/p42800e-exchange-20060527-23.bkf.gz: No space left on device /usr/local/bin/gzips: system() call failed: 256 at /usr/local/bin/gzips line 56. ./run-gzips: system() call failed: 256 at ./run-gzips line 16. David cygcheck-20060529-1644.out Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Reading Term::ReadKey support for ActiveState Perl and Cygwin
Paul Dorman wrote: I've been racking my brains trying to read keystrokes in a Cygwin shell with ActiveState Perl. I've tried using ActiveState Perl with Cygwin more than once in the past (to experiment with Perl/Tk scripts?). It was difficult. I seem to recall that invoking ActiveState from within Cygwin was very confusing. Running ActiveState-specific Perl scripts from a DOS box and using Cygwin Bash boxes for editing, version control, etc., was much easier to understand. I also seem to recall that sometimes I would run a Perl script within Cygwin and it would fall through to ActiveState Perl (missing a library in Cygwin Perl?). Perhaps I would have better luck now that I know more, but my needs are command-line scripts and Cygwin with Cygwin Perl gets the job done. I recently evaluated Microsoft Services for Unix (SFU), which aims to provide a Unix subsystem and GNU tool chain running on top of the Windows kernel: http://www.microsoft.com/technet/interopmigration/unix/sfu/default.mspx Here is a commercial company that is closely aligned with SFU (I don't quite understand the relationship): http://www.interix.com/ They have OSS add-on tools: http://www.interopsystems.com/tools/warehouse.aspx I'm reasonably certain SFU uses ActiveState Perl. I don't know if it's the standard ActiveState Perl we can download and install for Win32, or a special SFU build. Unfortunately, I ran into some deal-breaker issues with SFU: 1. SFU sets a number of environment variables (including PATH), which broke Cygwin Perl's ability to make modules. 2. SFU uses Unix line endings by default. I need tools that work with DOS line endings. The SFU developers think that line endings should be dealt with on a per-application basis, not by the tool chain. Some tools do accept both Unix and DOS line endings. The SFU developers were responsive to my request to get SFU Bash working with DOS line endings, but it isn't ready yet: http://www.interix.com/tools/tm.aspx?m=9028 Another possibility for a OSS GNU tool chain on Windows is UWIN, from ATT: http://www.research.att.com/sw/tools/uwin/ This statement from the UWIN page looks promising, given my needs: Most of the UNIX API is implemented by the POSIX.DLL dynamically loaded (shared) library. Programs linked with POSIX.DLL run under the WIN32 subsystem instead of the POSIX subsystem, so programs can freely intermix UNIX and WIN32 library calls. I hope to evaluate UWIN soon. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: /usr/bin/email causes error sh: /usr/lib/sendmail: No such file or directory
Christopher Faylor wrote: How about reading /usr/share/doc/Cygwin/email*.README? Thanks for the RTFM pointer. :-) Here we go (blank lines edited for readability): CVSENV2006-05-21 22:39:02 [EMAIL PROTECTED] ~ $ less /usr/share/doc/Cygwin/email-2.3.4.README CVSENV2006-05-21 22:40:39 [EMAIL PROTECTED] ~ $ less /usr/share/doc/Cygwin/exim-4.62-1.README Make several attempts at email-config and exim-config. Here are the final runs: CVSENV2006-05-21 23:25:41 [EMAIL PROTECTED] ~ $ email-config Please enter your From: name (e.g., John Doe) [David Christensen]: Please enter your From: email address [EMAIL PROTECTED]: Please enter your Reply-to: email address []: Enter 1 to use sendmail or 2 to use a SMTP server [1]: Please enter the sendmail command line [/usr/sbin/sendmail -t -i]: Please check the configuration file /etc/email/email.conf for correctness. CVSENV2006-05-21 23:28:51 [EMAIL PROTECTED] ~ $ exim-config This script sets some key parameters of the exim installation and starts the exim daemon. See the details in /usr/share/doc/Cygwin/exim-X-Y.README. Interrupt with ^D. Mobile User Tmpl:unused_by_nt/2000/xp:11124:10513: User Tmpl:unused_by_nt/2000/xp:11125:10513: Power User Tmpl:unused_by_nt/2000/xp:11126:10513: Administrator Tmpl:unused_by_nt/2000/xp:11127:10513: SBS Backup User:unused_by_nt/2000/xp:11128:10513: SBS STS Worker:unused_by_nt/2000/xp:11129:9: WARNING: The usernames displayed above contain spaces. They cannot receive mail nor appear in /etc/aliases. Edit /etc/passwd and use identifiers without spaces. OK. The /etc/aliases file contains postmaster. OK. The primary hostname p3533.holgerdanske.com is already defined in /etc/exim.conf. INFO: Some programs expect /usr/sbin/sendmail to handle mail. Currently it is a symbolic link to /usr/bin/exim. Exim is already installed as a service under account 'LocalSystem'. Do you want to remove or reinstall it? (yes/no) yes OK. The exim service was removed. Do you want to install the exim daemon as a service? (yes/no) yes Enter the period of the queue runner, in minutes: [15] Enter the value of CYGWIN for the daemon: [ntsec notraverse] Do you want to start the exim daemon as a service now? (yes/no) yes OK. The mail daemon is now accepting mail. You can test it with telnet localhost 25. INFO: The exim log files are in /var/log/exim. When everything else fails, read /usr/share/doc/Cygwin/exim-X-Y.README, or look up the documentation on www.exim.org. Many happy mailings :) Adjust McAfee Virus Scan Enterprise 8.0i firewall to allow email.exe and exim-4.62-1.exe to send mail, then continue: CVSENV2006-05-21 23:30:40 [EMAIL PROTECTED] ~ $ email -s test [EMAIL PROTECTED] foo E-Mail Sent CVSENV2006-05-21 23:37:01 [EMAIL PROTECTED] ~ $ tail -n 2 /var/log/exim/exim_main.log 2006-05-21 23:37:03 IZNLL0-0002VG-8I = [EMAIL PROTECTED] R=dnslookup T= remote_smtp H=holgerdanske.com [65.19.145.106]* 2006-05-21 23:37:03 IZNLL0-0002VG-8I Completed Check e-mail client for messages -- yup. Thanks! :-) David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Installing Perl modules with
Luffe wrote: Short solution: install cygwin-provided wget and change CPAN setting to use /usr/bin/wget, not Windows native wget.exe. The only wget on my PATH is Cygwin's: 2006-05-22 18:39:13 [EMAIL PROTECTED] ~ $ find `perl -e 'print map {$_, \n} split /:/, $ENV{PATH}'` -name 'wget*' /usr/bin/wget.exe /bin/wget.exe David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Please don't discuss other, competing products here
Christopher Faylor wrote: Please don't discuss other, competing products here. Looking at: http://cygwin.com/lists.html I see the paragraph: Finally, make sure when you send a message to a Cygwin list that it actually has something to do with Cygwin. ... I agree with a policy that posters need to respect the limited time and resources of the Cygwin project and of their fellow mailing list users. But, I do think discussion of competing GNU tools on Windows on the Cygwin mailing lists is both relevant and beneficial to the Cygwin project: 1. Knowing what the other guys are doing and what real users think about Cygwin and the competition is valuable information -- it represents free marketing study data and feature wish lists for Cygwin developers and free product comparisons and real-life experiences for Cygwin users and prospective Cygwin users. 2. Seeding the Cygwin mailing lists with keywords from competing products will result in search engine hits that may win over converts. 3. Last but not least, the open-source software (OSS) movement used to have at its core the concept of Freedom, including Freedom of Speech. OSS projects were simply assumed by the OSS community to allow freedom of speech (within reason); those that did not invited protest and/or rejection. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
/usr/bin/email causes error sh: /usr/lib/sendmail: No such file or directory
cygwin: I would like to send e-mail messages from Cygwin Bash scripts. I have installed the email and exim packages. When I attempt to send a test message form the command line, it fails: 2006-05-21 15:13:46 [EMAIL PROTECTED] ~ $ cat foo test message. line 2 bye. 2006-05-21 15:14:02 [EMAIL PROTECTED] ~ $ /usr/bin/email -s test [EMAIL PROTECTED] foo E-Mail Sent sh: /usr/lib/sendmail: No such file or directory It looks like I'm missing a library (/usr/lib/sendmail). Looking for a Cygwin package containing this file reveals nothing: http://cygwin.com/packages/ Looking for a sendmail binary reveals nothing: 2006-05-21 15:21:57 [EMAIL PROTECTED] ~ $ which sendmail sendmail: Command not found. Any suggestions? TIA, David p.s. My cygcheck.out is attached FYI. cygcheck.out Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: serial ports
Dave Korn wrote: Well then, that's a really good argument for just using the builtin access that cygwin provides through /dev/ttySx instead, isn't it? The way Oliver's original post reads suggests that he was just thrown off by not seeing any devices under the virtual /dev dir, but that doesn't mean it won't work for him if he tries it. As they say in Perl parlance, TIMTOWDI (there's more than one way to do it). If Oliver is a C, etc., programmer fluent in the /dev/ttySx API, then it could work. But if Oliver wants to write idiomatic Perl and get his application going faster and easier, then he wants to use standard and accepted CPAN libraries rather than roll his own (especially non-portable ones). Win32::SerialPort (Windows) and Device::SerialPort (Unix/Linux) are the best approach under Perl. One or both may work under Cygwin; I haven't done serial port programming in a number of years, and needed ActiveState Perl the last time I did. YMMV. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: serial ports
Oliver Vecernik wrote I'd like to use the serial port from perl on my notebook. Try the Win32::SerialPort Perl module: http://members.aol.com/Bbirthisel/SerialPort.html I used it in the past and it worked great, but I had to use ActiveState Perl rather than Cygwin Perl. HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Calling shell script from DOS
Pinaki Mukherjee wrote: I have installed Cygwin. I want to invoke a shell script from the DOS/Windows command prompt (instead of opening Cygwin Window first and calling it from there). How can I do this? Thanks for any help. This is a batch file that I use to launch a Bash script that backs up my machines: [EMAIL PROTECTED]:~/mydocuments/backup-p42800e$ cat backup-all.bat @echo off C: chdir C:\cygwin\bin bash /backup/bin/backup-all HTH, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Making and selling a Cygwin distribution
Christopher Faylor wrote: Btw, if you are going to be creating your own distro don't forget to set up a forum to support it. We don't support other releases here. Yes, that and more -- Cygwin mirror, development box/VM, test boxes/VM's, e-commerce store, payment processing, and other infrastructure items yet to be determined (already have domain name, hosted www and e-mail, DSL with static IP's, IPCop firewall, DMZ, local CVS server). David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Making and selling a Cygwin distribution
Corinna Vinschen wrote: You may make and sell a distro. You have to make the source available the same way you make the binaries available (CD/DVD/ISO). The GPL FAQ is very enlightening to read: http://www.gnu.org/licenses/gpl-faq.html Thanks! :-) David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Making and selling a Cygwin distribution
I wrote: I'm curious -- why would you want to install Cygwin on GNU/Linux when most GNU/Linux distributions already include GNU tools? William A. Mahaffey III wrote: I don't :-). I want to install it on my GTW WIN2K box from the Linux box, since the WIN2K box has no internet access, thus setup.exe can't work in its usual way of going to the web for the cygwin files to install :-). It sounds like what you really want is a downloadable ISO image. I'm pretty sure there is no such thing, at least not official and free (Cygnus Solutions and Red Hat have sold Cygwin in various forms over the years, currently http://www.redhat.com/software/cygwin/). The Cygwin Setup FAQ item #1 is pretty explicit that setup.exe is the only supported means for getting and installing free Cygwin: http://cygwin.com/faq/faq.setup.html#faq.setup.setup That said, I figured out how to create my own Cygwin distribution CD using an Internet-connected Windows machine: 1. I create the directory C:\cygwin\setup. 2. I download setup.exe into the above directory. 3. I run setup.exe, configure it to use the above directory as the Local Package Directory, and download the packages I want. 4. I run setup.exe again and install the packages. 5. I copy everything in C:\cygwin\setup to a distribution folder and burn it to CD. 6. As time goes on and I download/install more packages, I repeat step #5 when I want to make a new distribution CD. To use the distribution CD to install Cygwin on another Windows machine: 1. I create the directory C:\cygwin\setup. 2. I copy the contents of the distribution CD to the above directory. 3. I run setup.exe and tell it to install from local directory. I've wondered if it is permissible to make and sell a Cygwin distribution (CD, DVD, downloadable ISO, etc.). Looking at the Cygwin license page: http://www.cygwin.com/licensing.html I think so (because the GPL allows you to do that), but I'm not a lawyer. Google'ing cygwin.com for distribution yielded many hits. This one reminds me that I would need to include sources: http://www.cygwin.com/ml/cygwin/1999-03/msg00233.html Does anybody on the list know the current authoritative answer for making and selling a Cygwin distribution? TIA, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Downloading Cygwin under Linux ....
William A. Mahaffey III wrote: I searched the main cygwin archives found a thread on installing Cygwin using Linux. ... I'm curious -- why would you want to install Cygwin on GNU/Linux when most GNU/Linux distributions already include GNU tools? David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: sshd must be restarted
Ken Senior wrote: Does anyone know why after a Windows XP reboot one must restart the SSH daemon in order to allow incoming ssh? rebaseall was the cure for me: http://sourceware.org/ml/cygwin/2005-02/msg00465.html One interesting oddity about my installation is that I have two usernames which are identical, one for our Windows domain and one for the administrator account on my PC. I'm not running domain networking, but that sounds dangerous. Why not use the local Administrator account for local administrative stuff and the domain account for user stuff? David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Disaster recover with Cygwin?
Siegfried Heintze wrote: I'm told I can network boot windows across the public internet ... It's much easier to use Norton Ghost with the image boot option. David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/