X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-48.4 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,TW_YG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-id: <4D4F4441.6020903@verizon.net> Date: Sun, 06 Feb 2011 20:00:49 -0500 From: Gerry Reno User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7.7: PATH in Bash shells References: <4D4EE981 DOT 4060309 AT verizon DOT net> <20110206191619 DOT GA6839 AT jethro DOT local DOT lan> <4D4F07FE DOT 4040902 AT verizon DOT net> <20110206232308 DOT GA30721 AT jethro DOT local DOT lan> <4D4F3DC0 DOT 1090103 AT verizon DOT net> <4D4F3E87 DOT 801 AT verizon DOT net> <4D4F42F4 DOT 8040302 AT verizon DOT net> In-reply-to: <4D4F42F4.8040302@verizon.net> Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 02/06/2011 07:55 PM, Gerry Reno wrote: > On 02/06/2011 07:36 PM, Gerry Reno wrote: > >> On 02/06/2011 07:33 PM, Gerry Reno wrote: >> >> >>> On 02/06/2011 06:23 PM, David Sastre wrote: >>> >>> >>> >>>> 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: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> What is the proper method to set the PATH variable on a system-wide >>>>>>> basis in Cygwin? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> 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. >>>>>> >>>>>> >>>>>> >>>>>> >>>>> I didn't change anything. This is rather new installation of Cygwin. >>>>> >>>>> I have seen some postinstall script failures on a few packages but would >>>>> these be modifying the system-wide PATH variable? >>>>> >>>>> I have not changed anything about PATH anywhere. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> 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. >>>>>> >>>>>> >>>>>> >>>>>> >>>>> Yep, I see it. So why isn't it working? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>> Is there some guiding document about setting PATH system-wide to better >>>>>>> support scripts from Linux? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> Yes. The info you need is in the bash manpage, INVOCATION section. >>>>>> >>>>>> >>>>>> >>>>>> >>>>> bash-4.1$ man bash >>>>> (END) >>>>> >>>>> No man pages. >>>>> How do you get the man page generated? >>>>> And here's the tail end of /var/log/setup.log.full: >>>>> >>>>> 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=128 >>>>> 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=128 >>>>> 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=2 >>>>> 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 >>>> >>>> to your next post. >>>> Some extra info I'd need to know: >>>> 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. >>>> >>>> >>>> >>>> >>>> >>> In response to both David and Csaba: >>> >>> Yes, there are both .bash_profile and .bashrc and both of them are same >>> as the defaults. >>> >>> I'm attaching the cygcheck.out file. >>> >>> Today when I installed postgresql I noticed that bash got upgraded to >>> 4.1 and that there were some package postinstall failures like coreutils >>> and bash. >>> >>> >>> Regards, >>> Gerry >>> >>> >>> >>> >>> >> You'll notice that I corrected the PATH as shown in cygcheck.out. >> >> I did this by editing /etc/bash.bashrc and setting the PATH variable. >> >> >> >> > BTW, I start the Cygwin Bash shell from the desktop icon. > > Regards, > Gerry > > > > > I tried reinstalling Bash and coreutils but still I get postinstall errors: Package: coreutils coreutils.sh exit code 128 Package: bash bash.sh exit code 128 Package: Unknown package libglade2.0.sh exit code 2 Regards, Gerry -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple