public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Jason Fritz (CO/EWU)" <jason.fritz@ericsson.com>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
Date: Thu, 20 Oct 2005 17:36:00 -0000	[thread overview]
Message-ID: <9F3F9D47408B7144B594DBBF67F77BAC010833C6@eusrcmw720.eamcs.ericsson.se> (raw)

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/

             reply	other threads:[~2005-10-20 17:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20 17:36 Jason Fritz (CO/EWU) [this message]
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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9F3F9D47408B7144B594DBBF67F77BAC010833C6@eusrcmw720.eamcs.ericsson.se \
    --to=jason.fritz@ericsson.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).