delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/06/18:23:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Date: Mon, 7 Feb 2011 00:23:08 +0100
From: David Sastre <d DOT sastre DOT medina AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.7: PATH in Bash shells
Message-ID: <20110206232308.GA30721@jethro.local.lan>
References: <4D4EE981 DOT 4060309 AT verizon DOT net> <20110206191619 DOT GA6839 AT jethro DOT local DOT lan> <4D4F07FE DOT 4040902 AT verizon DOT net>
MIME-Version: 1.0
In-Reply-To: <4D4F07FE.4040902@verizon.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Feb 06, 2011 at 03:43:42PM -0500, Gerry Reno wrote:
> On 02/06/2011 02:16 PM, David Sastre wrote:
> > On Sun, Feb 06, 2011 at 01:33:37PM -0500, Gerry Reno wrote:
> >=20=20=20
> >> What is the proper method to set the PATH variable on a system-wide
> >> basis in Cygwin?
> >>=20=20=20=20=20
> > First off, I'm curious about how do you start the bash shell. I ask
> > because you don't seem to have PS1 set correctly, and that should be
> > automated by startup-scripts.=20
>=20
> I didn't change anything.  This is rather new installation of Cygwin.
>=20
> I have seen some postinstall script failures on a few packages but would
> these be modifying the system-wide PATH variable?
>=20
> I have not changed anything about PATH anywhere.
>=20
> > The PATH variable in cygwin is exported from your /etc/profile
> > file, which contains a line that sets cygwin's path with higher
> > precedence over the PATH inherited from windows.
>=20
> Yep, I see it.  So why isn't it working?
>=20
> >> Is there some guiding document about setting PATH system-wide to better
> >> support scripts from Linux?
> >=20=20
> > Yes. The info you need is in the bash manpage, INVOCATION section.
>=20
> bash-4.1$ man bash
> (END)
>=20
> No man pages.
> How do you get the man page generated?
> And here's the tail end of /var/log/setup.log.full:
>=20
>     2011/02/06 12:01:40 running: C:\cygwin\bin\bash.exe --norc
>     --noprofile /etc/post
>     install/coreutils.sh
>     2011/02/06 12:01:41 abnormal exit: exit code=3D128
>     2011/02/06 12:01:41 running: C:\cygwin\bin\bash.exe --norc
>     --noprofile /etc/post
>     install/bash.sh
>     2011/02/06 12:01:41 abnormal exit: exit code=3D128
>     2011/02/06 12:01:41 running: C:\cygwin\bin\bash.exe --norc
>     --noprofile /etc/post
>     install/update-info-dir.sh
>     2011/02/06 12:02:24 running: C:\cygwin\bin\bash.exe --norc
>     --noprofile /etc/post
>     install/libglade2.0.sh
>     could not open /etc/xml/catalog for saving
>     add command failed
>     2011/02/06 12:02:25 abnormal exit: exit code=3D2
>     2011/02/06 12:02:25 Changing gid to Administrators
>     2011/02/06 12:03:00 note: Installation Complete
>     2011/02/06 12:03:00 Ending cygwin install
>
> Problem reports:       http://cygwin.com/problems.html

Well. At this point I'd need you to follow the indications from the
link above, and attach the ouput from:

cygcheck -s -v -r > cygcheck.out=20

to your next post.
Some extra info I'd need to know:=20
How do you start the shell? As I said, a normal startup should read
/etc/profile ans set/export your PATH correctly.
By "normal" startup, I mean a way of calling the shell that tells it
you are login into cygwin, and therefore, the startup scripts are
called, e.g. starting mintty (which in turn executes bash --login) is such =
a way.
Also, having postinstallation errors from bash and coreutils isn't
a good thing. I'd try reinstalling both.

--=20
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB

--lrZ03NoBR/3+SXJZ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1PLVwACgkQYX05bESLMeuX1gCgh4jqvfTt65c0baRUeiPMgvug
cwkAn1lW/uTuL7eaRspWlEe4WRkSRHal
=Qp3Z
-----END PGP SIGNATURE-----

--lrZ03NoBR/3+SXJZ--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019