Re: More on 'setup' fails and breaks pre-existing Cygwin installation: The Rational Rose Files path stuff.

2004-03-25 Thread Larry Hall
Try running it under strace and see where it's taking it's time.  This might
take some effort on your part to sift through and interpret the strace 
output but it will usually point a finger at the culprit.

Larry


At 02:03 AM 3/25/2004, you wrote:
Dave,

Well, from the DOS command prompt I tried:
---snip---
cd C:\cygwin
PATH C:\WinNT\system32;C:\WinNT;C:\WinNT\system32\Wbem
bash --login -i
---snip---

and I also tried this in my .bashrc (all one line):

export 
PATH=/cygdrive/c/WinNT/system32:/cygdrive/c/WinNT:/cygdrive/c/WinNT/system32/Wbem:$JAVA_HOME/bin:/home/Administrator/code:/usr/bin:/usr/sbin:/usr/local/bin/.

(which checks out:
TLSWE-LAPTOP-A0  Wed Mar 24 23:00:47
~/echo $PATH
/cygdrive/c/WinNT/system32:/cygdrive/c/WinNT:/cygdrive/c/WinNT/system32/Wbem:/cy
gdrive/c/j2sdk1.4.2_04/bin:/home/Administrator/code:/usr/bin:/usr/sbin:/usr/loca
l/bin/.
TLSWE-LAPTOP-A0  Wed Mar 24 23:00:52
~/
)

and still the same problem: a three minute wait between shell commands.  
Should I try to re-install, setting the PATH in such a way that the install would 
complete correctly (that is my original symptom)?  If so, how would I do this?

Thank you very much.

- Chris Balz.

Christopher M. Balz wrote:

I didn't suspect Rational Rose since I've run Cygwin fine when it was my previous 
Cygwin installation and when Rose had already been installed.  Apparently however, 
from your comments, it looks as if the MKS system makes breaks the Cygwin 
installation.  Is there a way (or a place I could look to find out) where I could 
protect the path that Cygwin uses?

Thank you so much for your help.

- Chris

Dave Korn wrote:

-Original Message-
From: cygwin-owner On Behalf Of Igor Pechtchanski
Sent: 22 March 2004 13:39
  


On Sun, 21 Mar 2004, Christopher M. Balz wrote:
  


I did run

c:\cygwin\bin\bash --norc

After a couple minutes the command prompt gave me:

   C:\WINNT\SYSTEM32c:\cygwin\bin\bash --norc
   bash-2.05b$

This command prompt cannot find any commands ('ls' is 'not found').



Please re-read the message below.  It says that you'll need to explicitly prepend 
/bin:/usr/bin:/usr/X11R6/bin to your PATH before you'll be able to run any 
commands.
  



 I notice also that there are already directories in Christopher's  path
called 'bin', 'x11', and 'mksnt'.  [ Light bulbs should be appearing in the
air above heads about now, upon seeing the dreaded letters 'm', 'k' and 's'
in that particular order. ]

 This last one in particular makes me wonder if the Rational tools you have
installed maybe include or are based around the Mortice Kern Systems Unix
toolset.  It's a well-known problem that if you try and run cygwin while
having MKS tools in the $PATH they can sometimes clash.  I'd want to start a
dos command shell, then remove all the crud and set a minimal $PATH, and try
again: something like this at the command prompt might work...

---snip---
cd C:\cygwin
PATH C:\WinNT\system32;C:\WinNT;C:\WinNT\system32\Wbem
bash --login -i
---snip---

 

Hmm...  I suspect that it takes this long to determine the hostname of your 
machine.
  



 Did you notice that it's the same as his $LOGONSERVER?  It shouldn't take
that long to look up a hostname when you're logged on directly at the
keyboard of the domain controller.

 But of all the environment variables, I think this is the one that's doing
the most damage:

---snip from cygcheck.out---
SHELL = `C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt\sh.exe'
---snip---

 Ouch.  So everytime Cygwin bash tries to fork a subprocess, it launches it
using MKS sh.  No wonder it loses!

---snip from cygcheck.out---
TERM = `nutc'
---snip---

 Wouldn't have thought cygwin would make much sense of that either.

   cheers,  DaveK
 



-- 
*Contact Info:*
Christopher M. Balz
Senior Software Engineer
/TreeLogic Software Engineering http://treelogic-swe.com/
160 Lincoln Avenue
Palo Alto, CA 94301-2437 U.S.A.
650.327.0367
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from /The Crystal Cabinet http://www.bartleby.com/236/59.html/, a poem by 
*William Blake http://www.art4net.com/EXPObl.html* (18th-century English poet) 
where Blake rues England's rule.

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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   

RE: More on 'setup' fails and breaks pre-existing Cygwin installation: The Rational Rose Files

2004-03-23 Thread Hannu E K Nevalainen

 From: Dave Korn
  From: cygwin-owner On Behalf Of Christopher M. Balz
  Sent: 23 March 2004 06:39

  Apparently however, from your comments, it looks as if the
  MKS system makes breaks the Cygwin installation.  Is there a
  way (or a place I could look to find out) where I could
  protect the path that Cygwin uses?
 
  Thank you so much for your help.
 
   - Chris

   Simplest thing to do I reckon is to put something in either your
 cygwin.bat or your .bashrc / .profile to reset $PATH to something safe,
 depending on how you most commonly start up cygwin.

 cheers,
   DaveK

The attached script might come in handy; as defined it removes lines that
matches

 sd=/bc
 grep -v -i $sd

(check the script and locate the lines), delivered to all of you as is,
no warranties implied... It is probably possible to enhance it: I haven't
bothered to do that, yet.

I use it to remove certain elements of $PATH that _MIGHT_ be in there when I
launch cygwin/bash. Use: source script is in my ~/.profile


/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E

** on a mailing list; please keep replies on that particular list **

-- printf(LocalTime: UTC+%02d\n,(DST)? 2:1); --
--END OF MESSAGE--


.rm_bc_paths
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: More on 'setup' fails and breaks pre-existing Cygwin installation: The Rational Rose Files

2004-03-22 Thread Christopher M. Balz
I didn't suspect Rational Rose since I've run Cygwin fine when it was my 
previous Cygwin installation and when Rose had already been installed.  
Apparently however, from your comments, it looks as if the MKS system 
makes breaks the Cygwin installation.  Is there a way (or a place I 
could look to find out) where I could protect the path that Cygwin uses?

Thank you so much for your help.

- Chris

Dave Korn wrote:

-Original Message-
From: cygwin-owner On Behalf Of Igor Pechtchanski
Sent: 22 March 2004 13:39
  

On Sun, 21 Mar 2004, Christopher M. Balz wrote:
  

I did run

c:\cygwin\bin\bash --norc

After a couple minutes the command prompt gave me:

   C:\WINNT\SYSTEM32c:\cygwin\bin\bash --norc
   bash-2.05b$
This command prompt cannot find any commands ('ls' is 'not found').

Please re-read the message below.  It says that you'll need to 
explicitly prepend /bin:/usr/bin:/usr/X11R6/bin to your PATH before 
you'll be able to run any commands.
  


 I notice also that there are already directories in Christopher's  path
called 'bin', 'x11', and 'mksnt'.  [ Light bulbs should be appearing 
in the
air above heads about now, upon seeing the dreaded letters 'm', 'k' 
and 's'
in that particular order. ]

 This last one in particular makes me wonder if the Rational tools you 
have
installed maybe include or are based around the Mortice Kern Systems Unix
toolset.  It's a well-known problem that if you try and run cygwin while
having MKS tools in the $PATH they can sometimes clash.  I'd want to 
start a
dos command shell, then remove all the crud and set a minimal $PATH, 
and try
again: something like this at the command prompt might work...

---snip---
cd C:\cygwin
PATH C:\WinNT\system32;C:\WinNT;C:\WinNT\system32\Wbem
bash --login -i
---snip---
 

Hmm...  I suspect that it takes this long to determine the hostname 
of your machine.
  


 Did you notice that it's the same as his $LOGONSERVER?  It shouldn't 
take
that long to look up a hostname when you're logged on directly at the
keyboard of the domain controller.

 But of all the environment variables, I think this is the one that's 
doing
the most damage:

---snip from cygcheck.out---
SHELL = `C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt\sh.exe'
---snip---
 Ouch.  So everytime Cygwin bash tries to fork a subprocess, it 
launches it
using MKS sh.  No wonder it loses!

---snip from cygcheck.out---
TERM = `nutc'
---snip---
 Wouldn't have thought cygwin would make much sense of that either. 

   cheers,  DaveK
 



--
*Contact Info:*
Christopher M. Balz
Senior Software Engineer
/TreeLogic Software Engineering http://treelogic-swe.com/
160 Lincoln Avenue
Palo Alto, CA 94301-2437 U.S.A.
650.327.0367
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from /The Crystal Cabinet http://www.bartleby.com/236/59.html/, a 
poem by *William Blake http://www.art4net.com/EXPObl.html* 
(18th-century English poet) where Blake rues England's rule.

--
*Contact Info:*
Christopher M. Balz
Senior Software Engineer
/TreeLogic Software Engineering http://treelogic-swe.com/
160 Lincoln Avenue
Palo Alto, CA 94301-2437 U.S.A.
650.327.0367
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from /The Crystal Cabinet http://www.bartleby.com/236/59.html/, a 
poem by *William Blake http://www.art4net.com/EXPObl.html* 
(18th-century English poet) where Blake rues England's rule.

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