public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
@ 2005-10-20 17:36 Jason Fritz (CO/EWU)
  2005-10-20 17:49 ` Igor Pechtchanski
  0 siblings, 1 reply; 6+ messages in thread
From: Jason Fritz (CO/EWU) @ 2005-10-20 17:36 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi all,

I began typing this mail as a problem report, but thanks to a gracious reply from Chloe Chang, it turned out that I had not yet set my HOME environment variable to complete the installation.  I'll describe the problem anyway to help steer future Cygwin-er's clear of this issue.

I had just installed Cygwin 1.5.18-1 plus default base packages for the first time on my Windows 2000 laptop.  After installation, running cygwin.bat (or the Cygwin shortcut on the desktop) gave the following error:
C:\cygwin>cygwin.bat
bash: can't find configuration file /usr/local/etc/profile.global; exiting.

Searching the Cygwin mail archive, I found that Chloe had seen this problem back in June 2005.  See:
http://www.cygwin.com/ml/cygwin/2005-06/msg00759.html

There was a reply from Igor Pechtchanski that said she was "not running the Cygwin version of bash".  I believe this analysis was wrong, however, since the bash package was installed by Cygwin's setup.exe, which presumably should only download a Cygwin version of bash.

After contacting Chloe directly, she pointed me to the environment variable webpage for Cygwin: http://www.cygwin.com/cygwin-ug-net/setup-env.html

It turns out that I needed to set my HOME environment variable to something.  I set it to my My Documents directory:
set HOME=C:\Documents and Settings\ewujafr\My Documents

After that, cygwin.bat worked fine.  Note that a more permanent way to set HOME is via Control Panel->System then Advanced tab->Environment Variables.

*** plea for change ***
I think the main page for Cygwin, http://cygwin.com/, is misleading because it leads new users to believe that running setup.exe is all that you need to do.  There's no link to the setup instructions: http://www.cygwin.com/cygwin-ug-net/setup-net.html.  Can someone update the main page?  Better yet, setup.exe could set the HOME variable for the user, perhaps by adding an extra page to the setup wizard.

Sorry for the long-winded post.
Jason Fritz



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
  2005-10-20 17:36 1.5.18-1: cygwin.bat/bash fails after installing Cygwin Jason Fritz (CO/EWU)
@ 2005-10-20 17:49 ` Igor Pechtchanski
  0 siblings, 0 replies; 6+ messages in thread
From: Igor Pechtchanski @ 2005-10-20 17:49 UTC (permalink / raw)
  To: Jason Fritz (CO/EWU); +Cc: cygwin

On Thu, 20 Oct 2005, Jason Fritz (CO/EWU) wrote:

> Hi all,
>
> I began typing this mail as a problem report, but thanks to a gracious
> reply from Chloe Chang, it turned out that I had not yet set my HOME
> environment variable to complete the installation.  I'll describe the
> problem anyway to help steer future Cygwin-er's clear of this issue.
>
> I had just installed Cygwin 1.5.18-1 plus default base packages for the
> first time on my Windows 2000 laptop.  After installation, running
> cygwin.bat (or the Cygwin shortcut on the desktop) gave the following
> error:
> C:\cygwin>cygwin.bat
> bash: can't find configuration file /usr/local/etc/profile.global; exiting.
>
> Searching the Cygwin mail archive, I found that Chloe had seen this
> problem back in June 2005.  See:
> http://www.cygwin.com/ml/cygwin/2005-06/msg00759.html
>
> There was a reply from Igor Pechtchanski that said she was "not running
> the Cygwin version of bash".  I believe this analysis was wrong,
> however, since the bash package was installed by Cygwin's setup.exe,
> which presumably should only download a Cygwin version of bash.

Yes, but that doesn't guarantee that you would *run* that version.  Again,
the Cygwin version of bash will *not* look for
/usr/local/etc/profile.global -- that message comes from some other bash.
The analysis is correct, AFAICS.

One thing to try is to change the last line of your cygwin.bat to

c:\cygwin\bin\bash --login -i

and see if that solves your problem (with the original config)...

> After contacting Chloe directly,

Ugh.  She was way too polite.  Unsolicited private emails to random list
posters are highly discouraged -- the Cygwin mailing list is the place to
ask for help.

> she pointed me to the environment variable webpage for Cygwin:
> http://www.cygwin.com/cygwin-ug-net/setup-env.html
>
> It turns out that I needed to set my HOME environment variable to
> something.  I set it to my My Documents directory:
> set HOME=C:\Documents and Settings\ewujafr\My Documents
>
> After that, cygwin.bat worked fine.  Note that a more permanent way to
> set HOME is via Control Panel->System then Advanced tab->Environment
> Variables.

I suspect you're still not running the official Cygwin bash -- it should
set HOME automatically.  As I said above, try forcing the Cygwin bash by
specifying the path to it explicitly.

> *** plea for change ***
> I think the main page for Cygwin, http://cygwin.com/, is misleading
> because it leads new users to believe that running setup.exe is all that
> you need to do.  There's no link to the setup instructions:
> http://www.cygwin.com/cygwin-ug-net/setup-net.html.

This probably makes sense (though I believe setup itself should also have
a link to that page in the start pane).

> Can someone update the main page?  Better yet, setup.exe could set the
> HOME variable for the user, perhaps by adding an extra page to the setup
> wizard.

No.  Setup has no business mucking with the environment.  The HOME
variable should already be set automatically by the Cygwin version of
bash.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
@ 2005-10-20 19:15 Jason Fritz (CO/EWU)
  0 siblings, 0 replies; 6+ messages in thread
From: Jason Fritz (CO/EWU) @ 2005-10-20 19:15 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'; +Cc: 'Chang, Chloe'

[-- Attachment #1: Type: text/plain, Size: 2315 bytes --]

On Thu, 20 Oct 2005, Igor Pechtchanski wrote:
> 
> Hmm, very weird.  According to a couple of Google searches, the above
> looks like a message from UWin startup files -- Cygwin does 
> *not* have a
> profile.global, and the Cygwin bash won't look for anything in
> /usr/local/etc by default.  Do you, perhaps, have a c:\.bashrc or
> c:\.bash_profile or c:\.profile left over from a prior installation of
> UWin?

Aha!  Your response led me to the answer for this problem.  Within my company (Ericsson), we have our Unix home directories mounted as the H:\ drive on our PCs.  The H:\ dir just happens to contain a .profile, which just happens to execute /usr/local/etc/profile.global.  And, for whatever reason, when I start a DOS prompt, it defaults to the H:\ drive.  Also, after installing Cygwin, /etc/passwd sets my home dir to /cygdrive/h by default.

So, the answer to the problem is that Cygwin's bash was finding and executing .profile from an unrelated Unix environment.  I'm CCing Chloe, since I'm curious if they have a similar setup within Qualcomm.

> Just for reference, the way it *should* set $HOME is described in your
> /etc/passwd (if you don't have the latest, copy it from
> /etc/defaults/etc/passwd).
> 
> ...
> 
> Hmm, it would be interesting to see what "echo $HOME" says in a bash
> session that you start using "c:\cygwin\bin\bash --norc"...

Here's that output:
-----
C:\cygwin\bin>bash --norc
bash-3.00$ echo $HOME
/cygdrive/h
-----

Again, that shows the root of the problem.

In the end, I changed /etc/passwd to point to my My Documents dir instead of /cygdrive/h and now everything works fine.  Also, concerning the other post I sent about rxvt setting the font size/spacing to something funny, after changing /etc/passwd, rxvt acts fine as well.

> > Thank you for your help so far, Igor.
> 
> You're welcome -- it's a curious problem, and I'd like to get to the
> bottom of this.  Also, I don't think you've ever posted the output of
> "cygcheck -svr" on your system (in its non-working configuration), as
> requested in <http://cygwin.com/problems.html>.  Please make sure you
> *attach* the output as an uncompressed text attachment, rather than
> include it inline.

Thanks again!  And just to nail the coffin shut on this, I've attached the output of cygcheck.
- Jason Fritz


[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 12305 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Thu Oct 20 08:49:16 2005

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:	C:\WINNT\system32
	C:\WINNT
	C:\WINNT\System32\Wbem
	C:\Program Files\ATI Technologies\ATI Control Panel
	C:\Program Files\RACOM\RACOM Internet Client\
	C:\Program Files\NETMAN~1\System
	C:\Program Files\Rational\common
	C:\Program Files\Rational\Rose RealTime\bin\win32
	C:\Qt\4.0.1\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 19234(ewujafr)     GID: 10545(mkgroup-l-d)
0(root)                 544(Administrators)     545(Users)
10545(mkgroup-l-d)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 19234(ewujafr)     GID: 10545(mkgroup-l-d)
0(root)                 544(Administrators)     545(Users)
10545(mkgroup-l-d)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

Path = `C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\RACOM\RACOM Internet Client\;C:\Program Files\NETMAN~1\System;C:\Program Files\Rational\common;C:\Program Files\Rational\Rose RealTime\bin\win32;C:\Qt\4.0.1\bin'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\ewujafr\Application Data'
CommonProgramFiles = `C:\Program Files\Common Files'
COMPUTERNAME = `EGKTO004JPCEQLF'
ComSpec = `C:\WINNT\system32\cmd.exe'
HOMEDRIVE = `H:'
HOMEPATH = `\'
HOMESHARE = `\\stimpy\EWUJAFR'
LOGONSERVER = `\\EAMCSAMRC03'
NUMBER_OF_PROCESSORS = `1'
OS = `Windows_NT'
Os2LibPath = `C:\WINNT\system32\os2\dll;'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 13 Stepping 6, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0d06'
ProgramFiles = `C:\Program Files'
PROMPT = `$P$G'
QMAKESPEC = `win32-g++'
QTDIR = `C:\Qt\4.0.1'
ROSERT_HOME = `C:\Program Files\Rational\Rose RealTime'
ROSERT_HOST = `win32'
SystemDrive = `C:'
SystemRoot = `C:\WINNT'
TEMP = `C:\DOCUME~1\ewujafr\LOCALS~1\Temp'
TMP = `C:\DOCUME~1\ewujafr\LOCALS~1\Temp'
USERDNSDOMAIN = `eamcs.ericsson.se'
USERDOMAIN = `EAMCS'
USERNAME = `ewujafr'
USERPROFILE = `C:\Documents and Settings\ewujafr'
windir = `C:\WINNT'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS     38146Mb  13% CP CS UN PA FC     ESOE_W2K
d:  cd  CDFS       620Mb 100%    CS              BROODWAR
g:  net NTFS     14336Mb  73% CP CS UN PA        groupst
h:  net FAT       3072Mb  46% CP CS UN           CIFS.HOMEDIR
i:  net NTFS        19Mb  12% CP CS UN PA FC     GroupST

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   56k 2005/07/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2005/7/8 23:09
   18k 2004/07/06 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2004/7/6 12:09
   40k 2005/09/29 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2005/9/28 20:15
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/24 23:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/8 23:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 3:25
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 1:58
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/10 20:12
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 20:05
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 2:00
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 20:13
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 21:34
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/10 17:16
   24k 2005/07/29 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2005/7/28 21:57
  991k 2004/07/06 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2004/7/6 12:10
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 2:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 15:50
   54k 2004/07/06 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2004/7/6 11:51
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 11:09
   21k 2005/09/29 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2005/9/28 20:15
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/24 23:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/8 23:03
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 3:25
   67k 2005/09/29 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2005/9/28 20:16
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/24 23:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/8 23:03
  226k 2005/09/29 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2005/9/28 20:02
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/24 23:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/8 23:03
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 3:24
   11k 2005/09/29 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2005/9/28 20:15
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/24 23:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/8 23:03
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 3:24
  176k 2005/09/06 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2005/9/6 14:49
  299k 2005/09/06 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2005/9/6 15:26
    6k 2005/09/06 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2005/9/6 15:26
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/8 23:45
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 21:34
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/10 17:16
  144k 2005/07/29 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2005/7/28 21:57
   65k 2005/08/23 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2005/8/22 20:03
 1265k 2005/07/03 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2005/7/2 18:30
    Cygwin DLL version info:
        DLL version: 1.5.18
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 132
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Sat Jul 2 20:30:04 EDT 2005
        Shared id: cygwin1S4


Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
Last downloaded files to: C:\download\cygwin
Last downloaded files from: ftp://ftp.ale.org/pub/mirrors/cygwin

Package              Version
_update-info-dir     00323-1
alternatives         1.3.20a-1
ash                  20040127-3
base-files           3.6-1
base-passwd          2.2-1
bash                 3.0-11
bzip2                1.0.3-1
coreutils            5.3.0-9
cygutils             1.2.9-1
cygwin               1.5.18-1
cygwin-doc           1.4-3
diffutils            2.8.7-1
editrights           1.01-1
findutils            4.2.25-2
gawk                 3.1.5-1
gdbm                 1.8.3-7
grep                 2.5.1a-2
groff                1.18.1-2
gzip                 1.3.5-1
less                 381-1
libbz2_1             1.0.3-1
libcharset1          1.9.2-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libiconv             1.9.2-1
libiconv2            1.9.2-1
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.12.1-3
libintl3             0.14.1-1
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libncurses8          5.4-4
libpcre0             6.3-1
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-5
libreadline6         5.0-4
login                1.9-7
man                  1.5p-1
mktemp               1.5-3
ncurses              5.4-4
sed                  4.1.4-1
tar                  1.15.1-2
termcap              20050421-1
terminfo             5.4_20041009-1
texinfo              4.8-1
which                1.7-1
zlib                 1.2.3-1
Use -h to see help about each section


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
@ 2005-10-20 18:46 Jason Fritz (CO/EWU)
  0 siblings, 0 replies; 6+ messages in thread
From: Jason Fritz (CO/EWU) @ 2005-10-20 18:46 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> On Thu, 20 Oct 2005, Jason Fritz wrote:
> 
> I don't know much about the implementation of Cygwin bash, 
> but perhaps it has a bug and it's not setting HOME like it 
> should?  I think from the info I posted above that it's 
> clearly not working as intended.

Some more (possibly) interesting information:
I installed rxvt, and running rxvt -without- setting HOME does the right thing.  That is, it starts up a console window and bash runs without any errors.

On the other hand, I'm exaggerating by saying it "does the right thing."  If HOME isn't set, rxvt sets the font size and spacing to something very big, and the text onscreen looks ridiculous.  If HOME -is- set, on the other hand, rxvt's font size/spacing looks neat and small.  I wish I could provide details on what the font size actually is in both cases, but I don't know how to find that info.

Let me try to illustrate w/i the confines of ASCII :)
I f   H O M E   i s   n o t   s e t ,   i t   l o o k s   l i k e   t h i s 
If HOME is set, it looks normal

Anyway, I'm a relative Cygwin newbie, but it seems to me that Cygwin tools might not behave nicely without manually setting HOME and PATH.

Take care and thanks for your help,
Jason

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
  2005-10-20 18:20 Jason Fritz (CO/EWU)
@ 2005-10-20 18:44 ` Igor Pechtchanski
  0 siblings, 0 replies; 6+ messages in thread
From: Igor Pechtchanski @ 2005-10-20 18:44 UTC (permalink / raw)
  To: Jason Fritz (CO/EWU); +Cc: cygwin

On Thu, 20 Oct 2005, Jason Fritz (CO/EWU) wrote:

> > On Thu, 20 Oct 2005, Igor Pechtchanski wrote:
> >
> > Yes, but that doesn't guarantee that you would *run* that version.
> > Again, the Cygwin version of bash will *not* look for
> > /usr/local/etc/profile.global -- that message comes from some other
> > bash. The analysis is correct, AFAICS.
> >
> > One thing to try is to change the last line of your cygwin.bat to
> >
> > c:\cygwin\bin\bash --login -i
> >
> > and see if that solves your problem (with the original config)...
>
> I did as you suggested and the problem still happens.  I backed out my
> environment variables changes (to HOME and PATH), and ran cygwin.bat
> as-is and reverified that the problem happened again.  Then I edited
> cygwin.bat as you suggested and reran the script with the same result.
> Here's the shell output for reference:
> -----
> C:\cygwin>type cygwin.bat
> @echo off
>
> C:
> chdir C:\cygwin\bin
>
> C:\cygwin\bin\bash --login -i
>
> C:\cygwin>cygwin.bat

> /usr/bin/bash: can't find configuration file /usr/local/etc/profile.global; exiting.
> -----

Hmm, very weird.  According to a couple of Google searches, the above
looks like a message from UWin startup files -- Cygwin does *not* have a
profile.global, and the Cygwin bash won't look for anything in
/usr/local/etc by default.  Do you, perhaps, have a c:\.bashrc or
c:\.bash_profile or c:\.profile left over from a prior installation of
UWin?

> As a side note, I've never installed bash in another form on my PC and
> running "bash" from C:\ in a DOS prompt does not work.
>
> > > After contacting Chloe directly,
> >
> > Ugh.  She was way too polite.  Unsolicited private emails to
> > random list
> > posters are highly discouraged -- the Cygwin mailing list is
> > the place to
> > ask for help.
>
> Well, with all due respect, I can see that contacting Cygwin maintainers
> and developers is a Bad Thing (tm), but contacting ordinary users is no
> mortal sin.  I was polite to her and she was polite in return.  I
> followed up by posting to the mailing list so the info would not be
> lost.

Fair enough.  But sending email directly to the list lets you skip a step
in the above process...

> > I suspect you're still not running the official Cygwin bash -- it
> > should set HOME automatically.  As I said above, try forcing the
> > Cygwin bash by specifying the path to it explicitly.
>
> I don't know much about the implementation of Cygwin bash, but perhaps
> it has a bug and it's not setting HOME like it should?

Just for reference, the way it *should* set $HOME is described in your
/etc/passwd (if you don't have the latest, copy it from
/etc/defaults/etc/passwd).

> I think from the info I posted above that it's clearly not working as
> intended.

Hmm, it would be interesting to see what "echo $HOME" says in a bash
session that you start using "c:\cygwin\bin\bash --norc"...

> Thank you for your help so far, Igor.

You're welcome -- it's a curious problem, and I'd like to get to the
bottom of this.  Also, I don't think you've ever posted the output of
"cygcheck -svr" on your system (in its non-working configuration), as
requested in <http://cygwin.com/problems.html>.  Please make sure you
*attach* the output as an uncompressed text attachment, rather than
include it inline.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
@ 2005-10-20 18:20 Jason Fritz (CO/EWU)
  2005-10-20 18:44 ` Igor Pechtchanski
  0 siblings, 1 reply; 6+ messages in thread
From: Jason Fritz (CO/EWU) @ 2005-10-20 18:20 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> On Thu, 20 Oct 2005, Igor Pechtchanski wrote:
> 
> Yes, but that doesn't guarantee that you would *run* that 
> version.  Again,
> the Cygwin version of bash will *not* look for
> /usr/local/etc/profile.global -- that message comes from some 
> other bash.
> The analysis is correct, AFAICS.
> 
> One thing to try is to change the last line of your cygwin.bat to
> 
> c:\cygwin\bin\bash --login -i
> 
> and see if that solves your problem (with the original config)...

I did as you suggested and the problem still happens.  I backed out my environment variables changes (to HOME and PATH), and ran cygwin.bat as-is and reverified that the problem happened again.  Then I edited cygwin.bat as you suggested and reran the script with the same result.  Here's the shell output for reference:
-----
C:\cygwin>type cygwin.bat
@echo off

C:
chdir C:\cygwin\bin

C:\cygwin\bin\bash --login -i

C:\cygwin>cygwin.bat
/usr/bin/bash: can't find configuration file /usr/local/etc/profile.global; exiting.
-----

As a side note, I've never installed bash in another form on my PC and running "bash" from C:\ in a DOS prompt does not work.

> > After contacting Chloe directly,
> 
> Ugh.  She was way too polite.  Unsolicited private emails to 
> random list
> posters are highly discouraged -- the Cygwin mailing list is 
> the place to
> ask for help.

Well, with all due respect, I can see that contacting Cygwin maintainers and developers is a Bad Thing (tm), but contacting ordinary users is no mortal sin.  I was polite to her and she was polite in return.  I followed up by posting to the mailing list so the info would not be lost.

> I suspect you're still not running the official Cygwin bash 
> -- it should
> set HOME automatically.  As I said above, try forcing the 
> Cygwin bash by
> specifying the path to it explicitly.

I don't know much about the implementation of Cygwin bash, but perhaps it has a bug and it's not setting HOME like it should?  I think from the info I posted above that it's clearly not working as intended.

Thank you for your help so far, Igor.
- Jason Fritz

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-20 19:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-20 17:36 1.5.18-1: cygwin.bat/bash fails after installing Cygwin Jason Fritz (CO/EWU)
2005-10-20 17:49 ` Igor Pechtchanski
2005-10-20 18:20 Jason Fritz (CO/EWU)
2005-10-20 18:44 ` Igor Pechtchanski
2005-10-20 18:46 Jason Fritz (CO/EWU)
2005-10-20 19:15 Jason Fritz (CO/EWU)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).