Re: Downloading Cygwin under Linux ....

2006-01-22 Thread Jan Nieuwenhuizen
Igor Peshansky writes:

> I haven't looked at it in detail: does cyg-apt properly run preremove and
> postinstall scripts?

No.  If running on Cygwin, it will run .sh scripts.

> Besides, it can use the same replace-on-reboot mechanism as setup
> uses -- is there a similar API for python?

If it is, I'm not saying Google's magic words.

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

--
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/



installation location of packages

2006-01-22 Thread [EMAIL PROTECTED]
It seems to me that the cygwin packages are installed in different 
locations than the locations they would go if ./compile make make 
install are performed on the source.


Is that true and if yes are there anywhere instructions where these 
locations are so that they can be pointed to applications depending on 
them, when such applications are compiled. At the moment I am trying to 
compile Cyrus IMAP and as it seems I have to compile from source a lot 
of stuff it requires because things do not seem to find the cygwin 
packages, though these packages are installed.


Thanks,
Iv


--
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 php scripts under cygwin

2006-01-22 Thread [EMAIL PROTECTED]
Thanks for the tips. Luckily I came back to the list after trying to 
build PHP with some options with no luck. I only need a static build and 
that installed fine. Then I had a warning about using date() and set the 
default timezone prior to the call in the script to get by that. Now it 
says mail() is an unknown function. What is this missing?


Here is how I compile php 5.x under cygwin.

I have these cygwin modules (may be you do not need all, just I do not 
know which you need) -


bison, bzip2, cvs, flex, gcc, gd, grep, keychain, libtool1.5, libxml, 
libxml2, libxml2-devel, make, openssh, perl, readline, rsync, 
subversion, unzip, vim, whois, zip


Get Apache 1.3.34 sources and php 5.1.1 sources.

Go into Apache sources directory and do

./configure

Go into php sources directory and do

./configure --with-apache=PATH_TO_APACHE_SOURCES --without-pear

(--without-pear is needed - otherwise does not work)

make
make install

make install will suggest that you add /usr/local/lib/php to your 
php.ini include_path.


Copy the php.ini into /usr/local/lib/php.ini and edit if needed.

Go back to the Apache sources directory.

./configure --activate-module=src/modules/php5/libphp5.a

make
make install

You might need to do

mv /usr/local/apache/libexec/libhttpd.dll /usr/local/apache/bin

With this you will have php cli, I believe, so you can execute scripts 
with cron.


Iv


--
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/



Cyrus IMAP

2006-01-22 Thread [EMAIL PROTECTED]

Has anybody compiled successfully Cyrus IMAP under cygwin.

Thanks,
Iv


--
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: installation location of packages

2006-01-22 Thread Larry Hall (Cygwin)

pobox wrote:
It seems to me that the cygwin packages are installed in different 
locations than the locations they would go if ./compile make make 
install are performed on the source.


Is that true 



No, not generally.  Of course, if you're having a specific issue and want
to post the details, then perhaps someone on the list can make a more
specific comment or suggestion.


and if yes are there anywhere instructions where these 
locations are so that they can be pointed to applications depending on 
them, when such applications are compiled. At the moment I am trying to 
compile Cyrus IMAP and as it seems I have to compile from source a lot 
of stuff it requires because things do not seem to find the cygwin 
packages, though these packages are installed.





Did you run configure?



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
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 assist with details regarding uninstalling

2006-01-22 Thread Dan M
Hello,

I have a need to uninstall cygwin completely from my system.  I found
the instructions to do this in the faq/Seting up cygwin/answer #14.  I
am writing to request more detailed information regarding instructions
#1 and #2, as I am not a PC programmer and need more specific
directions. 

Here is instruction #1 from the faq:

"1.  Remove all Cygwin services. If a service is currently running, it
must first be stopped with cygrunsrv -E name, where name is the name of
the service. Then use cygrunsrv -R name to uninstall the service from
the registry. Repeat this for all services that you installed. Common
services that might have been installed are sshd, cron, cygserver,
inetd, apache, and so on." 

Here are my questions regarding step #1: 

A.  How do I tell what services I have installed?  (Basically I
originally loaded everything, but then I uninstalled/re-installed
picking just the default, so I believe I have the default).
B.  How do I tell what services are currently running?  (I am running
Windows XP Home.  Can the program manager tell me this?  If so, what
specific names do I need to look for in the program manager?) 
B.  Please confirm:  "Remove all cygwin services" is the same as
"uninstalling ...[each]... service from the registry".
C.  Are these commands simply typed into the command prompt screen?
When I bring up the command prompt, a path comes up after the C drive
name.  I get:

C:\Documents and Settings\Dan>

Do I need to change this at all or just type the commands after the ">"
symbol?

Here is instruction #2 from the faq: 

"2.  Stop the X11 server if it is running, and terminate any Cygwin
programs that might be running in the background. Remove all mount
information by typing umount -A and then exit the command prompt and
ensure that no Cygwin processes remain. Note: If you want to save your
mount points for a later reinstall, first save the output of mount -m as
described at http://cygwin.com/cygwin-ug-net/using-utils.html#mount."; 

Here are my questions on instuction #2:

A.  How do I tell if any cygwin programs are running in the background?
B.  After I have the answer to my question A, how do I terminate them
(i.e., the Cygwin programs that are running in the background)?
C.  How do I tell if any cygwin processes remain after entering the
umount command?

Thanks in advance for your assistance!

Dan



--
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: Please assist with details regarding uninstalling

2006-01-22 Thread Larry Hall (Cygwin)

Dan M wrote:

Hello,

I have a need to uninstall cygwin completely from my system.  I found
the instructions to do this in the faq/Seting up cygwin/answer #14.  I
am writing to request more detailed information regarding instructions
#1 and #2, as I am not a PC programmer and need more specific
directions. 


Here is instruction #1 from the faq:

"1.  Remove all Cygwin services. If a service is currently running, it
must first be stopped with cygrunsrv -E name, where name is the name of
the service. Then use cygrunsrv -R name to uninstall the service from
the registry. Repeat this for all services that you installed. Common
services that might have been installed are sshd, cron, cygserver,
inetd, apache, and so on." 

Here are my questions regarding step #1: 


A.  How do I tell what services I have installed?  (Basically I
originally loaded everything, but then I uninstalled/re-installed
picking just the default, so I believe I have the default).



'cygrunsrv -L' will tell you.



B.  How do I tell what services are currently running?  (I am running
Windows XP Home.  Can the program manager tell me this?  If so, what
specific names do I need to look for in the program manager?) 



'net start'  Look for any services with names like you found from the
above command.  The names could vary a bit but it's still pretty obvious.



B.  Please confirm:  "Remove all cygwin services" is the same as
"uninstalling ...[each]... service from the registry".



No.  It's a combination of stopping all running services and then removing
all the installed services.  The former may be a subset of the latter.



C.  Are these commands simply typed into the command prompt screen?
When I bring up the command prompt, a path comes up after the C drive
name.  I get:

C:\Documents and Settings\Dan>

Do I need to change this at all or just type the commands after the ">"
symbol?



It could be done this way but based on your previous questions, I would
say you would have more luck running these from the bash prompt.  You can
get the bash prompt by clicking on the "Cygwin" icon on your desktop or by
typing "C:\cygwin\cygwin.bat" into the prompt you note above, assuming that
you installed Cygwin into the "C:\cygwin" directory.


Here is instruction #2 from the faq: 


"2.  Stop the X11 server if it is running, and terminate any Cygwin
programs that might be running in the background. Remove all mount
information by typing umount -A and then exit the command prompt and
ensure that no Cygwin processes remain. Note: If you want to save your
mount points for a later reinstall, first save the output of mount -m as
described at http://cygwin.com/cygwin-ug-net/using-utils.html#mount."; 


Here are my questions on instuction #2:

A.  How do I tell if any cygwin programs are running in the background?



'ps -ef'

Anything that results from that which is not '/usr/bin/bash' or '/usr/bin/ps'
is most likely going to be a background process.



B.  After I have the answer to my question A, how do I terminate them
(i.e., the Cygwin programs that are running in the background)?



'kill -9 ' where  is the number in the second column of the line
from 'ps -ef' for the process you want to kill.



C.  How do I tell if any cygwin processes remain after entering the
umount command?



'ps -ef'


In all honesty, if you don't know whether you have a service running or not,
you don't recognize any of the service names listed above, and no one else has
installed and/or used Cygwin other than you, you won't have to worry about
stopping or removing any Cygwin service.  These have to be explicitly
set-up and run by you or by invoking a configuration script to do this for
you.  Unless you have done this, you can skip this step.  Ditto for the
background processes.  If you didn't start any, you don't need to look
for any.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
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: Please assist with details regarding uninstalling

2006-01-22 Thread Brian Dessent
Dan M wrote:

> A.  How do I tell what services I have installed?  (Basically I
> originally loaded everything, but then I uninstalled/re-installed
> picking just the default, so I believe I have the default).

Services are never automatically installed, only by action of the user
-- for example by running a script such as /usr/bin/cron-config.  So, if
you did not manually do this you probably do not have any services to
uninstall.

Nevertheless, the command "cygrunsrv -L" should give you a list of all
installed Cygwin services.  (Note that this -L functionality of
cygrunsrv did not exist at the time that the above FAQ entry was
written, otherwise it would have been mentioned there.)  If cygrunsrv -L
does not list anything, then you probably have nothing to stop or
remove.

Run "cygrunsrv --help" or "man cygrunsrv" for more information on using
the command.

> B.  How do I tell what services are currently running?  (I am running
> Windows XP Home.  Can the program manager tell me this?  If so, what
> specific names do I need to look for in the program manager?)

Use "cygrunsrv -Q name" to query the state of the service named "name". 
So for example if you installed the cron service, then running
"cygrunsrv -Q cron" might include a line that says "Current State:
Running".

You can also determine this by looking at the list of services in the
Windows control panel, but they will be hard to pick out of the long
list without some prior knowledge.

> B.  Please confirm:  "Remove all cygwin services" is the same as
> "uninstalling ...[each]... service from the registry".

Yes.  Although the details of how the service is removed is not
relevant, because cygrunsrv -R handles everything.  Perhaps the FAQ
should not mention the registry at all.

> C.  Are these commands simply typed into the command prompt screen?
> When I bring up the command prompt, a path comes up after the C drive
> name.  I get:
> 
> C:\Documents and Settings\Dan>
> 
> Do I need to change this at all or just type the commands after the ">"
> symbol?

You should probably type these from the Cygwin bash prompt/shell, not a
regular Windows command prompt, unless you have the cygwin directory
added to the Windows path.

> A.  How do I tell if any cygwin programs are running in the background?

Normally you would know this because you launched them in the background
yourself, e.g. by using "&" when starting them.  You can use the "ps"
command to list running processes, e.g. "ps aux".  Again, see the --help
output or manpage for more details.

> B.  After I have the answer to my question A, how do I terminate them
> (i.e., the Cygwin programs that are running in the background)?

There are a number of ways, but again the specifics depend on the
details of the programs and how they were launched.

For example if you launched a program with "&" then it will show up in
the output of "jobs" and you can use the %-sign notation to kill it,
e.g. "kill %1".  Or you can just kill them by PID.  And if you try to
exit from a login shell with background processes, the shell will warn
you.

That you are asking about this at all implies that none of this matters
in your case, because people that launch background processes tend to
know how to terminate them as well.  Most of this verbiage in the
uninstall procedure is there to account for possible things that a user
might have installed or might have running.  But if you haven't done any
of these things then it's a no-op.

> C.  How do I tell if any cygwin processes remain after entering the
> umount command?

What the FAQ entry is trying to express is that you should kill all
cygwin processes except for a single bash shell, then run umount from
that shell, then close the shell (by typing ^D or "exit").  It wouldn't
have made much sense if it said "kill all cygwin processes" and then
"run this umount command from a shell" because running the shell itself
is a cygwin process.  

Brian

--
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 under cygwin in CPAN problem

2006-01-22 Thread Linda Walsh

Was trying to load some new packages in CPAN under perl
in cygwin.  I noticed a problem when it asked for prereqs:

It wouldn't accept "CR" to terminate the input -- only "LF".

I tried reloading CPAN -- that pulled up the reconfigure
dialog for some new parameters -- then I find the same
problem in the config dialog where CPAN wants all of it's
parameters (to create a new "~/.cpan/CPAN/Myconfig.pm").
I try typing the first param and hitting "LF" and the the
configure dialogue whips by takin the defaults for all of
the configure questions.

At this point, I don't know if it is "cygwin", cygwin-perl
or something else.  I don't get the same behavior on my
linux box but the installed packages are not identical.

Anyone else seeing problems like this or have ideas
how to find where the problem might be?

thanks,
Linda


--
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/



Cygwin Setup: Fatal Error: Uncaught Exception

2006-01-22 Thread Linda Walsh

I went into setup and asked it to install from local directory.

It went past the root dialog, then displayed the local pacakge
directory \\server\share\software\cygwin, hit Next
initializes and starts parsing ini file, then I see
it parsing some package, then a popup dialog that displays
read-only, uncopyable text:

Fatal Error: Uncaught Exception
Thread: DialogProc
Type: 9Exception
Message: Package validation failure for
file://\\server\share\software\Cygwin/http%3a%2f%2fmirrors.kernel.org%2fsources.redhat.com%2fcygwin/release/X11/fontconfig/libfontconfig-devel/libfontconfig-devel-2.2.2-1.tar.bz2
AppErrNo: 1

Deleting the package brought progress, but I then get an error in the 
same server directory, but for another app package:

X11/freetype2/libfreetype2-devel/libfreetype2-devel-2.1.5-1.tar.bz2

Is an application crash the expected behavior when
package validation fails?  Maybe it should mark it unusable
or delete it? 



--
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 Setup: Fatal Error: Uncaught Exception

2006-01-22 Thread Brian Dessent
Linda Walsh wrote:

> Is an application crash the expected behavior when
> package validation fails?  Maybe it should mark it unusable
> or delete it?

At the moment, yes.  It's a consequence of a change in the md5
checking.  It just means you need to delete the package, as it has the
wrong size or checksum.  It's on the todo list to clean this up.

Brian

--
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/