This is the mail archive of the
cygwin-xfree@sources.redhat.com
mailing list for the Cygwin project.
binmode install of xc binaries tarballs
- To: cygwin-xfree at sources dot redhat dot com
- Subject: binmode install of xc binaries tarballs
- From: "Frederic Oghdayan" <Foghdayan at catena dot nl>
- Date: Tue, 13 Feb 2001 21:43:17 +0100
Hi ,
I had problems to even figure what could be wrong when I saw this windows dialog box popup with "Xwin application did not initialize properly". It took me quite some time before I remembered about this binmode/textmode mounts. I wrote the attached so that a can remember the trick later, for you to review and maybe use in a FAQ. This *is* a frequently asked one, because I asked it to myself maybe a hundred times these last days, when strace would not help anymore than taskman.
Here are a few questions besides Xfree:
- how can I get the login program to work , under netware + NT4 ? It fails even in local mode. Does it have to be started before the winlogon ?
- (maybe offtopic) how to follow symlinks from a drive mounted by ext2fs.sys ? This driver from ext2fsnt-0.4 doesn t resolve the links itself.
- do you know a trick to use the DragnDrop filename from the explorer ? Stg quicker than using cygpath -u and prepend+append it with a single quote.
XFree86 installation
workaround for cygwin under NT4, NTFS filesystem,
***based on a binary mode root directory***
symptom of a failing install : the MSwindows boo-boo box pops-up with "The application failed to initialize properly (Oxc0000022). Click on OK to terminate the application. " if your try to start Xwin.exe of xeyes.exe or pretty much any Xfree program except maybe pcitweak.
Check your mounts by typing "mount" and you shoud see something like :
===============================================================
Device Directory Type Flags
C:\posix\bin /usr/bin system binmode
C:\posix\lib /usr/lib system binmode
C:\posix / system binmode
C: /C system binmode
===============================================================
Well, you do seem to have the same problem I had. I know of two workarounds:
1 - make a temporary directory such as c:\temp\posix.text and extract the xc-4-binaries archives there with winzip or tar, according to your mood. mount this directory in textmode, with for instance
mount 'c:\temp\posix.text' /mnt/text
and copy all X11 stuff recursively to it s destination:
cp -ar /mnt/text/usr /
2 - remount your non-working dir in textmode (assuming your cygwin root is under c:\posix) :
mount 'C:\posix\usr\x11r6' /usr/X11R6
It s quick but I like it less because you it gives a tree with mixed binmode (in /bin ) and textmode (in /usr/X11R6/bin ) executables and DLLs.
3 - I did not try this, but it coud as well work:
- reinstall cygwin in textmode : check the radio button "Default text file type" to "DOS", in the 3rd box from the cygwin installer setup.exe
- try one of those ubiquitous DOS2UNIX.COM on the decompressed tarfiles of the xc-4-binaries
Good luck.