This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.7.9: Installing error: fonts and X-start-menu-icons


I checked the FAQs, searched the list archives as best I could, and Googled several combinations of the messages I received and could not find anything. I did find references to some of the symptoms I describe, but could not find any resolution to the issues.

This is a clean install of Cygwin on a Windows XP box using a Samba share as the destination. I performed a minimal install using the installer, tweaked the /etc/passwd file (due to Samba), added emacs, then added the packages recommended in the Cygwin/X User's Guide (http://x.cygwin.com/docs/ug/cygwin-x-ug.pdf): xorg-server, xinit, xorg-docs, and X-start-menu-icons. I also explicitly selected xcalc (to test the install), and xterm (dunno, just in case it wasn't automagically done with the dependencies check). During the installation, X-start-menu-icons.sh failed (from the setup.log file):

    2011/12/20 23:43:53 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/font-misc-misc.sh
    2011/12/20 23:44:17 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/font-alias.sh
    2011/12/20 23:45:48 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/font-adobe-dpi75.sh
    2011/12/20 23:46:45 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/X-start-menu-icons.sh
    2011/12/20 23:46:47 abnormal exit: exit code=126

However, when I looked at the setup.log.full, it was obvious that there were other problems that didn't cause the postintall scripts to fail:

    2011/12/20 23:43:53 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/font-misc-misc.sh
    /etc/postinstall/font-misc-misc.sh: line 3:
      /usr/bin/mkfontdir: Permission denied
    2011/12/20 23:44:17 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/font-alias.sh
    /etc/postinstall/font-alias.sh: line 3:
      /usr/bin/mkfontdir: Permission denied
    /etc/postinstall/font-alias.sh: line 8:
      /usr/bin/mkfontdir: Permission denied
    /etc/postinstall/font-alias.sh: line 13:
      /usr/bin/mkfontdir: Permission denied
    /etc/postinstall/font-alias.sh: line 18:
      /usr/bin/mkfontdir: Permission denied
    2011/12/20 23:45:48 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/font-adobe-dpi75.sh
    /etc/postinstall/font-adobe-dpi75.sh: line 3:
      /usr/bin/mkfontdir: Permission denied
    2011/12/20 23:46:45 running: X:\cygwin\bin\bash.exe --norc
      --noprofile /etc/postinstall/X-start-menu-icons.sh
    /etc/postinstall/X-start-menu-icons.sh: line 7:
      /usr/X11R6/bin/X-start-menu-icons.sh: Permission denied
    2011/12/20 23:46:47 abnormal exit: exit code=126

The result is that when I tried to perform a startxwin, I got the following (relevant excerpt from terminal output in case anyone else is seeing this problem and searches):

    [dix] Could not init font path element
      /usr/share/fonts/TTF/, removing from list!
    [dix] Could not init font path element
      /usr/share/fonts/OTF/, removing from list!
    [dix] Could not init font path element
      /usr/share/fonts/Type1/, removing from list!
    ...
    Warning: Cannot convert string
      "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*"
      to type FontStruct
    Warning: Unable to load any usable ISO8859 font
    Warning: Unable to load any usable ISO8859 font
    Error: Aborting: no font found

I tried to run font-misc-misc.sh manually (well, /etc/postinstall/font-misc-misc.sh.done by this point as the installer thought it completed okay):

    #zippy@blammo /etc/postinstall
    $ ./font-misc-misc.sh.done
    ./font-misc-misc.sh.done: line 3:
      /usr/bin/mkfontdir: Permission denied
    $ chmod +x /usr/bin/mkfontdir
    $ ./font-misc-misc.sh.done

Once I changed the permissions, it did not complain anymore. I then re-ran the remaining relevant postinstall scripts for the fonts: /etc/postinstall/font-alias.sh.done and /etc/postinstall/font-adobe-dpi75.sh.done. Neither complained.

I then figured I had to change the permissions on /usr/X11R6/bin/X-start-menu-icons.sh, which I did, but I also had to change the permissions on /etc/postinstall/X-start-menu-icons.sh for it to work. Once that was successful, I moved /etc/postinstall/X-start-menu-icons.sh to /etc/postinstall/X-start-menu-icons.sh.done.

   #zippy@blammo /etc/postinstall
   $ chmod +x /usr/X11R6/bin/X-start-menu-icons.sh
   $ ./X-start-menu-icons.sh
   -bash: ./X-start-menu-icons.sh: Permission denied
   $ chmod +x X-start-menu-icons.sh
   $ ./X-start-menu-icons.sh
   $ mv X-start-menu-icons.sh X-start-menu-icons.sh.done

Sadly, I'm a noob for all intents and purposes at Cygwin (haven't installed it since the 90s, eep), so I am not in a position to submit a patch, but hopefully my report is detailed enough to make it easy for someone that knows what they are doing.

Attachment: cygcheck.out
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]