Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 14 Jun 2005 21:12:50 -0400 From: "Fernando Barsoba" Subject: Re: Question about /etc/profile To: Message-id: <000d01c57147$5a2be510$0302a8c0@SERVER> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7bit Hi, Thank you very much for your advise. I tried reinstalling cygwin and now works nicely. Thanks! FBM 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 -- 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/