delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/13/21:22:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050613211702.0732ff80@pop.prospeed.net>
Date: Mon, 13 Jun 2005 21:21:47 -0400
To: "Fernando Barsoba" <fbarsoba AT verizon DOT net>, <cygwin AT cygwin DOT com>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Question about /etc/profile
In-Reply-To: <000c01c56fd3$116aed50$0202a8c0@SERVER>
References: <000c01c56fd3$116aed50$0202a8c0 AT SERVER>
Mime-Version: 1.0

At 12:47 AM 6/13/2005, you wrote:
>Hello,
>
>I'm having problems understanding how cygwin handles the loading of /etc/profile:
>
>-> My cygwin.bat says the following:
>
>       @echo off
>
>       F:
>       chdir F:\cygwin\bin
>
>       bash --login -i
>
>So, 'bash' supposedly goes and looks for /etc/profile where the environment variables are set (PATH, HOME, etc..). However, my installation doesn't have /etc/profile. Does this mean that I have to create it myself?
>
>I do find a f:\cygwin\etc\defaults\etc\profile though... Should I put this one in my cygwin.bat?


No.  If you don't have a '/etc/profile', either something prevented the 
'base-files' package postinstall script from running or you have another
piece of software using cygwin that "got in the way".  Search for and 
destroy any other 'cygwin1.dll's on your system and then make sure your
mounts are pointing to your install from 'setup.exe'.  Or maybe it's 
easier to just delete everything and reinstall.


>Another thing that I don't understand is why I am not able to execute 'startx' (X server at /usr/X11R6/bin) even executing first the "profile" from above (manually) and having this profile the following:
>
>   PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
>   export PATH
>
>Any idea?


Sure.  Read and follow the problem reporting guidelines below.  That
always helps.  It's good advice for your first problem as well.

>Problem reports:       http://cygwin.com/problems.html




--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

- Raw text -


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