                        TroubleShooting
                        ===============

In the following sections replace ${MuPAD_DIR} by the directory
where you have installed MuPAD (e.g. /usr/local/MuPAD).


Finding libraries
-----------------
   On some systems unix environment variable must be set to tell MuPAD 
   where to find X11/XView dynamic libraries (LD_LIBRARY_PATH or on 
   HP-UX SHLIB_PATH) and fonts (FONT_PATH). 

   HP-UX / XView libraries: 
   ------------------------
       It is necessary to change the environment variable SHLIB_PATH. 
       (This is used to search for dynamic libraries at run time.) 

       setenv SHLIB_PATH ${MuPAD_DIR}/hp/xview 
       or
       setenv SHLIB_PATH ${MuPAD_DIR}/hp/xview:${SHLIB_PATH} 

       Insert this line into your file ~/.cshrc. 

       Be sure that these libraries and also the directories of this 
       path are readable and executable. 

   Solaris and other systems / XView libraries:
   --------------------------------------------
       Sometimes it is necessary to change the environment variable 
       LD_LIBRARY_PATH. (This is used to search for dynamic libraries 
       at run time.) 

       setenv LD_LIBRARY_PATH /XXX/lib 
       or
       setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/XXX/lib 

       Where XXX is the directory in which OpenWindows is installed. 
       This is ususally one of the following: /usr/openwin/ , 
       /opt/openwin/ , /usr/local/openwin/. Insert this line into 
       your file ~/.cshrc. 

   Some (older) systems Xview fonts:
   ---------------------------------
       Running MuPAD on IBM RS/6000 or DECstation you may need the 
       XView fonts too. Copy the file xview.fonts.tar.gz from the 
       ftp server. To unpack these fonts type: 

       uncompress xview.fonts.tar.gz ; tar xf xview.fonts.tar ; 
       rm xview.fonts.tar 

       To install these fonts on your system, please read the document 
       README which is located in the extracted directory Xview.fonts . 



Possible warnings when starting MuPAD
=====================================

   Textsw package
   --------------
      XView Warning: 

        No such file or directory, extras menu file 
        /usr/lib/.text_extras_menu (Textsw package)

      Copy the file text_extras_menu which is located in 
      ${MuPAD_DIR}/share/xview to /usr/lib/.text_extras_menu or set the 
      environment variable EXTRASMENU: 

      setenv EXTRASMENU ${MuPAD_DIR}/share/xview/text_extras_menu 

   <utmp>
   ------
      XView Warning: 

        Warning: make sure that you can write <utmp>

      This is an incompatibility of old XView portations to new SYSV 
      operating systems. Ignore it.  Do not change the permissions on 
      this file!!! 

   Font package
   ------------
      XView Warning: 

        XView warning: Cannot load font '--0' (Font package)

      Ignore it. 

   ttysw_sigwinch
   --------------
      XView Warning: 

        XView warning: ttysw_sigwinch, 
        can't get tty process group: Not a typewriter

      Again an incompatibility of XView. Ignore it. 




Remarks on special systems
==========================

   Remarks on IBM RS/6000
   ----------------------
    Editing Keys

      The IBM RS/6000 keyboard does not have a left set of function keys or 
      any usable function keys past F10. The editing keys can be remapped 
      via xmodmap (see below for examples) or the standard keyboard 
      equivalents can be used. 

      Sun             IBM
      L2  (Again)     Meta-a
      L4  (Undo)      Meta-u
      L6  (Copy)      Meta-c
      L8  (Paste)     Meta-v
      L9  (Find)      Meta-f
      L10 (Cut)       Meta-x

    Help Key

      To use the help functions of XView and OLWM you must bind the Help 
      keysym to some other key. For example, to make the F8 key act like 
      the Help key, type: 

      xmodmap - << EOF
      keysym F8 = Help
      EOF

    Meta Key

      The AIX Windows keyboard map must first be altered for the Meta key 
      to be noticed by the XView Toolkit. Use the xmodmap command: 

      xmodmap - << EOF
      keysym Alt_L = Meta_L
      keysym Alt_R = Meta_R
      EOF


   Remarks on SGI
   --------------

      All of MuPAD's graphical interfaces run in 'full-screen-debug' mode, 
      because of a bug in the X11-server Xsgi. This mode slows down the 
      speed of xmupad, hypage (hypertext system), mdx (debugger) and vcam 
      (graphic tool). 

      Within mdx, user input in the terminal window does not work. This is 
      a problem of the TERMSW-package of the SGI-XView port. If you know any 
      solution, please let us know. 

      You may have to specify the font for MuPAD's graphical interfaces. 
      Select a font with a fixed width. xlsfonts lists all available fonts 
      on your server. Make an entry in your .Xdefaults, for example 

      Font.name: lucida-normal-10


   Remarks on HP
   -------------

      It is necessary to change the environment variable SHLIB_PATH (see 
      above).


   Remarks on Sun
   --------------

      It may be necessary to change the environment variable LD_LIBRARY_PATH
      (see above).


   Remarks on Linux
   ----------------

   Crashes of the XView fontend
      
      Lots of these crashes can be prevented by using the latest XView
      libraries from ftp://sunsite.unc.edu/pub/Linux/libs/X/xview/. 


   Backspace and Delete Keys don't work properly

      Here are two solutions possible. On one hand you can modify your 
      system keyboard mapping : 

      1) If the Backspace key performs a Delete and the Delete key does 
         nothing, you can change this behaviour by applying the following 
         system keymap MuPAD.map: 

                 keycode  14 = Remove Delete
                 keycode 111 = Delete
                 string Remove = "\010"

         Load it with the system command loadkeys MuPAD.map. 

     2)  On the other hand you may start mupad in an xterm with some modified 
         key mappings (this solutions was proposed by the MuPAD user and Linux 
         expert Winfried Trmper <winni@xpilot.org>). Please get 
         ftp://ftp.mupad.de/MuPAD/contrib/muterm and install it somewhere in 
         your path. 

   Copy&Paste doesn't work

      XView uses special keys for Copy&Paste. You have to map these keys on 
      your keyboard in order to Copy&Paste in a XView application like MuPAD. 
      Please set the following values in your ~/.Xmodmap: 

                 ! Print Screen  ->  Copy
                 keycode 111 = 0xffcd 
                 ! Scroll Lock   ->  Paste
                 keycode  78 = 0xffcf
                 ! Pause         ->  Cut
                 keycode 110 = 0xffd1

      Now you can Copy&Paste inside of XView applications like MuPAD or 
      textedit. To exchange data between an xterm and a XView application 
      you have to tell the xterm how to react on the new defined Copy&Paste 
      keys in your .Xdefaults: 

                 XTerm*VT100*Translations: #override \n\
                   <Key>L8:  insert-selection(CLIPBOARD, \
                     CUT_BUFFER0, PRIMARY)\n\
                   <Key>L6:  start-extend() select-end( \
                     CLIPBOARD, CUT_BUFFER0, PRIMARY)\n\
                   Mod1<Key>F3:   string(0x16`xv_get_sel`0x0c)


   The '^'-key generates a '^@' symbol in xmupad

      This bug is due to a incompatibility between XView and keyboard 
      mappings with 'deadkeys' like the german mapping de-latin1.map. 
      Please use de-latin1-nodeadkeys.map instead. 

      

   MuPAD 1.4.0 refuses to run on systems on which MuPAD 1.3 did run

      MuPAD 1.4.0 complains about a syntax error in the MuPAD init file: 

                 Syntax Error: Missing ';'; Position [7,0]; file 
                 '/usr/local/MuPAD/share/lib/.mupadsysinit'

      MuPAD 1.4.0 was linked against libc.so.5.4.23. This newer libc 
      contains changes in the read system command which makes it 
      incomplatible with older versions and produces the above error. 

      To overcome the problems please update your libc to libc.so.5.4.x.  


   Known Bugs
   ----------

      In some cases a window remains empty. Activate a window by clicking the 
      left mouse anywhere on the window background or click the menu item 
      Refresh in the Window popup. This will refresh the contents of a window. 
      For example, if you use the dynamically linked version of MuPAD under 
      Solaris 2.4 you have to do a refresh by hand, because of a bug in the 
      new Solaris XView libraries. 


MuPAD FAQ
=========

A more up to date list of known problems is in the MuPAD FAQ:
http://www.mupad.de/cgi-bin/project/mupad/faq/bin
