From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19166 invoked by alias); 25 Apr 2003 19:59:01 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19153 invoked from network); 25 Apr 2003 19:59:00 -0000 Received: from unknown (HELO web14808.mail.yahoo.com) (216.136.224.224) by sources.redhat.com with SMTP; 25 Apr 2003 19:59:00 -0000 Message-ID: <20030425195900.41429.qmail@web14808.mail.yahoo.com> Received: from [129.33.49.251] by web14808.mail.yahoo.com via HTTP; Fri, 25 Apr 2003 12:59:00 PDT Date: Fri, 25 Apr 2003 21:38:00 -0000 From: Qwer Zxcv Subject: [newbie] how to install cygwin by version? and fix breakage? To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg02250.txt.bz2 How can I install a new version of cygwin, such that * my old version remains undisturbed, and can be used if needed * the new version knows my old customizations (e.g. downloaded/ installed packages, mounts, profile, bash settings) ? And how do I fix what I've broken? What I mean: When installing software, I tend to be conservative. I install versions to separate directories so that I can run the old version if I don't like (or I screw up) something in the new version. Also, for cygwin, I * Download from Internet, and then Install from Local Directory * keep my $HOME in a separate directory (on a network drive) Accordingly I had d:\{download, bin}\cygwin\1.3.13-1, and had been happily using that for ~6mo. (Note that I am _not_ a "heavyweight" user: I do some bash scripting, but mostly I just run find, grep, etc from bash. My customizations are pretty minimal.) I noticed a problem with 'unzip', so I went to upgrade it, and got a warning that I was downlevel wrt setup.exe. So I got and ran the new setup.exe, which showed me I was downlevel wrt cygwin. So I * downloaded to d:\download\cygwin\1.3.22-1 * installed to d:\bin\cygwin\1.3.22-1 I believe I noticed some complaining in the end-of-install shell window, but it scrolled by too fast for me to record any particulars. * changed my windows path to point to d:\bin\cygwin\1.3.22-1, i.e., when I do Control Panel>System>Advanced>Environment Variables>System Variables>Path, I see > d:\bin\cygwin\1.3.22-1\bin;d:\bin\cygwin\1.3.22-1\usr\X11R6\bin; and so on. * added a new shortcut to the new setup.exe * copied my old d:\bin\cygwin\1.3.13-1\tlrBash.bat > @echo off > cd /d D:\bin\cygwin\1.3.13-1\bin > rem Set vars for Emacs > set CYGWIN=tty title > set TERM=ansi > set HOME=t:\tlroche > bash --login -i > rem Does this really unset? > set HOME= > set TERM= > set CYGWIN= to d:\bin\cygwin\1.3.22-1\tlrBash.bat > @echo off > cd /d D:\bin\cygwin\1.3.22-1\bin > rem Set vars for Emacs > set CYGWIN=tty title > set TERM=ansi > set HOME=t:\tlroche > bash --login -i > rem Does this really unset? > set HOME= > set TERM= > set CYGWIN= * added a shortcut to the new tlrBash.bat * copied my old bashrc and profile into my new d:\bin\cygwin\1.3.22-1\etc and ran the shortcut to the new tlrBash.bat. It starts up with > bash: id: command not found > bash: /bin/grep: No such file or directory > bash: /bin/echo: No such file or directory > bash: tr: command not found > tlroche@tlrf204 ~ > $ i.e. it's got my prompt customizations, but the path is wrong. If I do > $ echo $PATH > /usr/local/bin:/usr/bin:/d/bin/cygwin/1.3.10/bin:/usr/X11R6/bin:/bin:/c/WINNT/system32:/c/WINNT:/c/WINNT/System32/Wbem:/g/bin/cmvc/1.7/CMVC/EXE:. which is very wrong: I haven't used 1.3.10 for a long time (and AFAICR I've never run CMVC from bash, either). (But at least it knows my mounts :-) It also doesn't match the path in my d/bin/cygwin/1.3.22-1/etc/profile. It can't even find 'ls' :-( Being confused, I rebooted, JIC my windows (w2k sp2) had not picked up the windows path changes: no change. So I changed my windows path to point back to the old cygwin (i.e. > d:\bin\cygwin\1.3.13-1\bin;d:\bin\cygwin\1.3.13-1\usr\X11R6\bin; and so on) and ran the shortcut to the old bash. Formerly, it worked flawlessly: now, it also starts up with > bash: /bin/echo: No such file or directory > bash: /bin/grep: No such file or directory > tlroche@tlrf204 ~ > $ and I get > $ echo $PATH > /usr/local/bin:/usr/bin:/d/bin/cygwin/1.3.10/bin:/usr/X11R6/bin:/bin:/c/WINNT/system32:/c/WINNT:/c/WINNT/System32/Wbem:/g/bin/cmvc/1.7/CMVC/EXE:. So I'd like to know: 0 How can I fix one or both of my current configurations? 1 What's the general procedure to do version-preserving cygwin installs? Also please note: I'd appreciate it if you could reply directly to me, as well as to the list. I'm on the digest, to avoid flooding my inbox, but I'd like to get this problem fixed ASAP, without waiting for the digest. I have some scripts I need to run, in order to get "real work" done, but for now I'm "dead in the water" :-( __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com -- 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/