Re: Fwd: Cygwin startup problem
[EMAIL PROTECTED] wrote: I tinkered in the registry and it almost works I get the following now bash.exe: warning: could not find /tmp, please create! bash-2.05b$ How do I go about doing this? Erm, "mkdir /tmp" perhaps? R. -- http://robinbowes.com -- 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: Backup script not working properly
Brian Dessent wrote: Fredrik Persson wrote: All works but for the last for-loop which is responsible for deleting old backups such that only NUMBKPS=4 of the last backups are stored. The problem is in 'if [ ${num} -le 0 ]' and 'else num=$((${num}-1))'. It seems like the num-variable can't be used as an integer. Any suggestions how to fix this??? On Linux, /bin/sh is /bin/bash. This is not the case on Cygwin and other *nixs. The "$((...))" thing is a bash feature/extension I think, and not found in the standard Bourne shell. Try using the expr command instead to do math, or change the shebang to call bash explicitly. Indeed. man bash /Arithmetic Expansion Arithmetic expansion allows the evaluation of an arithmetic expression and the substitution of the result. The format for arithmetic expan- sion is: $((expression)) The expression is treated as if it were within double quotes, but a double quote inside the parentheses is not treated specially. All tokens in the expression undergo parameter expansion, string expansion, command substitution, and quote removal. Arithmetic substitutions may be nested. The evaluation is performed according to the rules listed below under ARITHMETIC EVALUATION. If expression is invalid, bash prints a message indicating failure and no substitution occurs. R. -- http://robinbowes.com -- 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: [OT] Re: Spurious "You have multiple copies of cygwin1.dll on y our syste m."
"Luke Kendall"@cisra.canon.com.au wrote: On 8 Oct, Robin Bowes wrote: Try setting it to: Your Name <[EMAIL PROTECTED]> Notice two things: 1. No quotes round your name - they're only required if you have special characters in your name. 2. angle brackets round your email address. Well, I tried: "Luke Kendall" <[EMAIL PROTECTED]> "Luke Kendall" ([EMAIL PROTECTED]) Luke Kendall ([EMAIL PROTECTED]) Luke Kendall <[EMAIL PROTECTED]> and in each case got mail with headers like this: From: [EMAIL PROTECTED] Subject: test 7 Date: Fri, 8 Oct 2004 16:01:02 +1000 (EST) To: Luke Kendall <[EMAIL PROTECTED]> X-Spam-Status: No, hits=0.349 tagged_above=0 required=6.3 tests=AWL, NO_REAL_NAME X-Spam-Level: (Luke Kendall) [EMAIL PROTECTED] (Luke Kendall) <[EMAIL PROTECTED]> gave a really bad From: address of From: "Luke Kendall"@... So in short, I tried everything I could think of. Like I said, I don't think this feature works properly in my MUA (Postilion). And yes, I should update to some other one, and I will, and in the meantime I'll suffer from this problem, which seems fair enough. Thanks for the suggestion, though, Robin. I found this from the postilion home page (http://www.postilion.org) under "nagging bugs" (!) : "Entering a Full Name <[EMAIL PROTECTED]>, or [EMAIL PROTECTED] (Full Name) format address in the preferences widget will not work properly. Setting the address in the format [EMAIL PROTECTED] (Full Name) in each mailbox's configuration will work. To do this, open the "Mailboxes" window, select the mailbox, right-click, choose "Edit" from the menu, and enter your address in the From: and, optionally, the Reply-to: fields." Worth a try. Alternatively, bite the bullet and find a MUA that works. R. -- http://robinbowes.com -- 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/
[OT] Re: Spurious "You have multiple copies of cygwin1.dll on your syste m."
luke kendall wrote: Apologies, I hadn't understood that the source of the error was me. Unfortunately I think I'm overdue to change over to a new MUA - despite having "Use From Address" set to: "Luke Kendall" [EMAIL PROTECTED] it doesn't seem to do the right thing. So I'll just have to suffer until I change clients, which seems fair. Try setting it to: Your Name <[EMAIL PROTECTED]> Notice two things: 1. No quotes round your name - they're only required if you have special characters in your name. 2. angle brackets round your email address. R. -- http://robinbowes.com -- 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: New packge: lighttpd-1.3.0
> -Original Message- > From: Gerrit P. Haase [mailto:[EMAIL PROTECTED] > Sent: 22 September 2004 14:19 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; 'Reini Urban' > Subject: Re: New packge: lighttpd-1.3.0 > > Hello Robin, > > I have a cygwin package without the cygwin specific README but with > generic build script and patch to get sharted libraries for > fastcgi-2.4.0, do you want to maintain a relase for cygwin? Erm, I don't know. What's involved? R. -- http://robinbowes.com -- 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: New packge: lighttpd-1.3.0
Hi Gerrit, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gerrit P. Haase > Sent: 22 September 2004 09:50 > To: [EMAIL PROTECTED] > Subject: Re: New packge: lighttpd-1.3.0 > > Hello R., > > Am Mittwoch, 22. September 2004 um 02:33 schriebst du: [snip] > > I also downloaded and built the fastcgi dev. Kit > > (http://www.fastcgi.com/dist/fcgi.tar.gz) > > That is interesting, is this needed? For lighttpd or for PHP? The fastcgi dev. kit is needed to build php with fastcgi support. It took me a few goes to work this out (I didn't just sit down and build this first time with no errors!) > > # ./configure --enable-fastcgi --enable-force-cgi-redirect > --with-layout=GNU > > --with-pgsql > > See above. What is the difference with layout GNU and layout PHP? It just puts files in different places; I don't know the exact details, and I suspect it's not all that important for this exercise. When building a package for cygwin I presume the developers have standards that should be applied to the locations of files in every package? > > # make > > # make install > > > # php -v > > PHP 4.3.8 (cgi-fcgi) (built: Sep 22 2004 00:46:39) > > Copyright (c) 1997-2004 The PHP Group > > Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies > > > Well, that seems to work. > > Wow, I'm impressed. Yeah, I was rather surprised! > > > I then downloaded and installed spawn-fcgi from the > lighttpd project download > > page and built and installed it. > > > (http://jan.kneschke.de/projects/lighttpd/download/spawn-fcgi- > 1.2.0.tar.gz) > > Therefore the first fastcgi package is needed? I don't thing it is needed for this; just for php. But, I had already installed it (fastcgi dev package) when I built spawn-fcgi so I don't know for sure. > > I ran the PHP fastcgi interface like this: > > > # spawn-fcgi.exe -f /usr/local/bin/php -p 1026 -C 5 > > spawn-fcgi.c.150: child spawned successfully: PID: 5824 > > Yes, great. > > > > I also grabbed the spawn-php.sh example script > > > (http://jan.kneschke.de/projects/lighttpd/download/spawn-php.s > h) but this didn't > > seem to work. > > Tried to use #!/bin/bash instead of /bin/sh? The bang path is set to #!/bin/bash. I don't think that's the problem. I've reported this on the lighttpd list. So, what now? I saw that Reini is going to have another look at the PHP package in the light of some progress in another area. Meanwhile, I've got php working (subject to further testing!) so I'll leave it at that I think. I'll try and write this up and post a link when I'm done. Cheers, R. -- 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] New packge: lighttpd-1.3.0
On Tue, September 21, 2004 16:00, Reini Urban said: > Robin Bowes schrieb: > >> Is there any more news about the cygwin php port? >> > > I posted my latest php attempts to -apps with subject "apached updates" > 9/9/04 > The cli and libs built fine, the cygwin dll failed. > I have no idea what and where to fix it. > The dll building docs seem to be outdated. > > > maybe gerrit or brian can build it. Thanks for the update. Gerrit? Brian? R. -- http://robinbowes.com -- 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] New packge: lighttpd-1.3.0
On Mon, September 20, 2004 16:01, Jan Kneschke said: > > The following package has been added to the Cygwin distribution: > > > *** lighttpd-1.3.0-1 > > > lighttpd a secure, fast, compliant and very flexible web-server which has been > optimized > for high-performance environments. It has a very low memory footprint compared to > other > webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, > Output-Compression, URL-Rewriting and many more) make lighttpd the > perfect webserver-software for every server that is suffering load problems. > > Main site: http://jan.kneschke.de/projects/lighttpd/ Has anyone got this working with php under Windows? I'd love to know how! I'm trying to put together a webserver/database/php solution that will work on my WinXP laptop for demos/prototypes. I don't have admin access on this machine, i.e. no registry access - I can't even copy php.ini to c:\windows! Cygwin installs OK to c:\cygwin and I've succesfully got apache and postgresql running under cygwin. But I'm stuck with php. I've investigated lighttpd, and it looks very promising. The fast-cgi module looks great - the spawn-fcgi utility built on cygwin straight out of the box, but I still come back to not having a version of PHP that works. I downloaded the 4.3.8 windows zip file and extracted it into c:\php but I can't work out how to integrate this binary with the cygwin tools, if indeed it is possible. Has anyone got any suggestions that might help me out here? Is there any more news about the cygwin php port? Thanks, R. -- http://robinbowes.com -- 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 check what cygwin packages are installed on the system ?
On Tue, August 3, 2004 16:19, Andrew DeFaria said: > Christopher Faylor wrote: >> >> And you would do that rather than use the tool designed for providing >> the information, because...? > > To answer the question: "Which package brought in this file?" as in: > > > $ cd /etc/setup > $ str=gcc.exe > $ for pkg in *.gz; do > >> zcat $pkg | grep -q $str if [ $? -eq 0 ]; then echo $str appears in $pkg fi done Or: $ cygcheck -f /usr/bin/gcc.exe gcc-3.3.1-3 R. -- http://robinbowes.com -- 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: mod_php for apache under cygwin?
On Tue, August 3, 2004 14:21, Brian Dessent said: > Robin Bowes wrote: > > >> I've read the archives and it seems that mod_php under cygwin is not currently >> available. >> >> Does anyone know when this it is likely to be available again? >> >> >> Is there any way I can download an old version from somewhere to use until the >> official package is relased? > > I volunteered to take over maintaining this but I haven't released > packages yet. For that I apologize, and will try to get a new apache/php/etc out for > review as soon as I can. Brian, Thanks for the information; much appreciated. Any tentative timescales? Months? Weeks? Days? 09:00 tomorrow? :) R. -- http://robinbowes.com -- 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/
mod_php for apache under cygwin?
Hi, I've read the archives and it seems that mod_php under cygwin is not currently available. Does anyone know when this it is likely to be available again? Is there any way I can download an old version from somewhere to use until the official package is relased? Thanks, R. -- http://robinbowes.com -- 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/