Mail Archives: cygwin/2000/09/06/14:17:27
From: Tom Hutto huttothomas AT hotmail DOT com
Problem summary from an ingnoramus' viewpoint:
1. $HOME is wrong -- embeded blanks and no quotes
2. $USER is wrong -- embeded blanks and no quotes
3. /home/$USER was not created
4. The utility called info does not work as documented
Platform overview:
cygcheck -s -r -v -h is included way down below
Selected configuration files are also down there
Genuine Intel Pentium 200MMX 64meg mucho free disk space
Windows 98SE patched to the hilt
What I did:
1. deleted entire cygwin directory structure
2. removed _all_ references to cygwin and cygnus from registry
3. Used Norton WinDoctor to clean up the registry
4. Ran windows setup.exe to get best possible starting point.
5. Re-installed cygwin
a. Clicked the install-now button
b. ran setup.exe in-place
c. installed from net
d. set default text-file mode to textmode
What happened:
1. Clicked on the Cygwin icon and got
[: too many arguments
BASH.EXE: cd: /home/thomas: No such file or directory
2. Typed info with no args and got
$ info
info: dir: No such file or directory
3. Punted around reading docs and looking at stuff and began to write this.
4. Listed some useful info. There follows listings of:
0. notes on observations from the following lists
a. config.sys
b. autoexec.bat
c. cygwin.bat
d. profile
e. env > env.txt
f. cygcheck -s -r -v -h > cygcheck.txt
0. Notes on observations:
(a) in profile we find
USER='id -un' giving USER=thomas a hutto w/ embeded blanks and no ""
HOME=/home/$USER also with embeded blanks and no quotes
(b) Don't see how mkdir -p $HOME is supposed to work correctly
(c) exporting INFOPATH=/usr/info did not fix info's dir problem
a. contents of config.sys
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
DOS=HIGH
DOS=UMB
FILESHIGH=99
BUFFERSHIGH=30
BREAK=ON
shell=C:\COMMAND.COM C:\ /e:4096 /p
b. contents of autoexec.bat
@echo off
@D:\PROGRA~1\NORTON~1\NORTON~2\NAVDX.EXE /startup
set TEMP=C:\TEMP
set tmp=%TEMP%
set tmpdir=%TEMP%
set AWKPATH=f:\usr\binw
SET MSINPUT=C:\MSINPUT
set SHHOME=f:\usr\hutto
set PATH=f:\usr\binw;%PATH%
set PATH=F:\BOR\BCC55\BIN;%PATH%
set PATH=%PATH%;f:\BOR\CBUILD~1\BIN;f:\BOR\CBUILD~1\PROJECTS\BPL
c. contents of cygwin.bat
@echo off
f:
chdir \cygwin\bin
bash --login -i
d. contents of profile
PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
unset DOSDRIVE
unset DOSDIR
unset TMPDIR
unset TMP
USER=`id -un`
# Set up USER's home directory
if [ -z "$HOME" ]; then
HOME=/home/$USER
fi
if [ ! -d $HOME ]; then
mkdir -p $HOME
fi
export HOME USER
for i in /etc/profile.d/*.sh ; do
if [ -f $i ]; then
. $i
fi
done
export MAKE_MODE=unix
export PS1=']0;\w
[32m\u@\h [33m\w[0m
$ '
cd $HOME
test -f ./.profile && . ./.profile
test -f ./.bashrc && . ./.bashrc
e. listing of env output
!C:=C:\WINDOWS
!D:=D:\Program Files\WFSOUND
!F:=F:\cygwin\bin
AWKPATH=f:\usr\binw
BLASTER=A220 I5 D1 H5 P330 T6 E620
CMDLINE=bash --login -i
COMSPEC=C:\COMMAND.COM
HOME=/home/thomas a hutto
HOSTNAME=THOMASHU
HOSTTYPE=i586
MACHTYPE=i586-pc-cygwin
MAKE_MODE=unix
MSINPUT=C:\MSINPUT
OLDPWD=/usr/bin
OSTYPE=cygwin
PATH=/usr/local/bin:/usr/bin:/usr/bin:/cygdrive/f/BOR/BCC55/BIN:/cygdrive/f/USR/BINW:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND
PROMPT=$p$g
PS1=]0;\w
[32m\u@\h [33m\w[0m
$
PWD=/usr/local
SHELL=/bin/sh
SHHOME=f:\usr\hutto
SHLVL=1
TEMP=/cygdrive/c/TEMP
TERM=cygwin
USER=thomas a hutto
WINBOOTDIR=C:\WINDOWS
WINDIR=C:\WINDOWS
_=/usr/bin/env
f. listing of cygcheck output
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Sep 6 11:41:03 2000
Win9X Ver 4.10 build 67766446 A
Path: /usr/local/bin
/usr/bin
/usr/bin
/cygdrive/f/BOR/BCC55/BIN
/cygdrive/f/USR/BINW
/cygdrive/c/WINDOWS
/cygdrive/c/WINDOWS/COMMAND
SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS
Here's some environment variables that may affect cygwin:
HOME = `/home/thomas a hutto'
MAKE_MODE = `unix'
PWD = `/usr/local'
USER = `thomas a hutto'
Here's the rest of your environment variables:
!C: = `C:\WINDOWS'
!D: = `D:\Program Files\WFSOUND'
!F: = `F:\cygwin\bin'
AWKPATH = `f:\usr\binw'
BLASTER = `A220 I5 D1 H5 P330 T6 E620'
CMDLINE = `bash --login -i'
COMSPEC = `C:\COMMAND.COM'
HOSTNAME = `THOMASHU'
HOSTTYPE = `i586'
MACHTYPE = `i586-pc-cygwin'
MSINPUT = `C:\MSINPUT'
OLDPWD = `/usr/bin'
OSTYPE = `cygwin'
PROMPT = `$p$g'
PS1 = `]0;\w
[32m\u@\h [33m\w[0m
$ '
SHELL = `/bin/sh'
SHHOME = `f:\usr\hutto'
SHLVL = `1'
TEMP = `/cygdrive/c/TEMP'
TERM = `cygwin'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
TZ = `CST6CDT5,M4.1.0/2,M10.5.0/2'
Scanning registry for keys with `Cygnus' in them...
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start
Menu\&Programs\Cygnus Solutions
(default) = (unsupported type)
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
(default) = `/cygdrive'
cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `f:/cygwin'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = `f:/cygwin/bin'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = `f:/cygwin/lib'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
Listing available drives...
Drv Type Size Free Flags Name
a: fd N/A N/A
c: hd FAT32 2773Mb 32% CP UN WINDOWS
d: hd FAT32 4485Mb 31% CP UN APPLICATION
e: hd FAT32 953Mb 76% CP UN DOWNLOADS
f: hd FAT32 4117Mb 51% CP UN DEVELOPMENT
g: hd FAT32 1976Mb 52% CP UN GAMES
h: cd CDFS 151Mb 100% EPSON_SC800
fd=floppy, hd=hard drive, cd=CD-ROM, net=Network Share
CP=Case Preserving, CS=Case Sensitive, UN=Unicode
PA=Persistent ACLS, FC=File Compression, VC=Volume Compression
Mount entries: these map POSIX directories to your NT drives.
-NT- -POSIX- -Type- -Flags-
f:\cygwin\bin /usr/bin user textmode
f:\cygwin\lib /usr/lib user textmode
f:\cygwin / user textmode
Looking to see where common programs can be found, if at all...
Found: f:\cygwin\bin\bash.exe
Found: f:\cygwin\bin\cat.exe
Found: f:\USR\BINW\cat.exe
Warning: f:\cygwin\bin\cat.exe hides f:\USR\BINW\cat.exe
Found: f:\cygwin\bin\cpp.exe
Found: f:\cygwin\bin\find.exe
Found: f:\USR\BINW\find.exe
Warning: f:\cygwin\bin\find.exe hides f:\USR\BINW\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: f:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: f:\cygwin\bin\gcc.exe
Found: f:\cygwin\bin\gdb.exe
Found: f:\cygwin\bin\ld.exe
Found: f:\cygwin\bin\ls.exe
Found: f:\USR\BINW\ls.exe
Warning: f:\cygwin\bin\ls.exe hides f:\USR\BINW\ls.exe
Found: f:\cygwin\bin\make.exe
Found: f:\BOR\BCC55\BIN\make.exe
Warning: f:\cygwin\bin\make.exe hides f:\BOR\BCC55\BIN\make.exe
Found: f:\cygwin\bin\sh.exe
Found: f:\USR\BINW\sh.exe
Warning: f:\cygwin\bin\sh.exe hides f:\USR\BINW\sh.exe
Looking for various Cygnus DLLs... (-v gives version info)
83k 2000/09/06 f:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2000/6/10 22:34
35k 2000/09/06 f:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2000/6/10 22:34
402k 2000/09/06 f:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2000/6/10 22:30
5k 2000/09/06 f:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2000/09/06 f:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2000/6/10 22:30
639k 2000/09/06 f:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2000/6/10 22:34
586k 2000/09/06 f:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2000/8/3 19:53
Cygwin DLL version info:
dll major: 1001
dll minor: 4
dll epoch: 19
dll bad signal mask: 19005
dll old termios: 5
api major: 0
api minor: 26
shared data: 3
dll identifier: cygwin1
mount registry: 2
cygnus registry name: Cygnus Solutions
cygwin registry name: Cygwin
program options name: Program Options
cygwin mount registry name: mounts v2
build date: Thu Aug 3 20:53:46 EDT 2000
CVS tag: cygwin-1-1-4
shared id: cygwin1S3
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -