From: ellis@nova.gmi.edu (Stew Ellis)
Newsgroups: comp.infosystems.gopher
Subject: Re: Xgopher 1.2 w/OW3 problem + solution
Date: 14 Dec 92 19:11:45 GMT
Organization: GMI Engineering&Management Institute, Flint, MI

ruck@delta.ee.ufl.edu (John R Ruckstuhl Jr) writes:


>I posted:

>>Sun's OpenWindows 3 xnews, with bundled OW3 olwm, and I get
>>
>>The Xgopher Application Resources file is not available.
>>The file 'Xgopher' should be stored in the directory
>>/usr/local/X11R5/lib/X11/app-defaults.
>>It can also be located in your own app-defaults directory, or the contents
>>can be copied to one of your other X windows resources files.
>>
>>xgopher cannot continue without this file.
>>
>>I did the things obvious to me:
>>Make sure LD_LIBRARY_PATH is set to /usr/local/X11R5/lib, and exported, 
>>before running the xgopher client,
>>Diddle with the XFILESEARCHPATH, ...


>Allan Tuchman had said it in a followup to someone else earlier:
>> or you have possibly set your XFILESEARCHPATH or XUSERFILESEARCH
>> path values differently.

>The startup routine for OW3 shipped by Sun sets XFILESEARCHPATH.

>As I said, I diddled with XFILESEARCHPATH, but I thought !directories!
>go on that path.  :(  
>It turns out the !specific file! should go on that path (or some string
>that expands to the specific file when ??Xt routines?? grok it).

>One easy solution for me, in a Bourne-ish shell, is simply:
>    (unset XFILESEARCHPATH; xgopher)
>csh users probably have to use unsetenv to get the same result?

>Frank Peters (fwp@CC.MsState.Edu) suggested adding
>    /usr/local/X11R5/lib/X11/%T/%N%S
>to XFILESEARCHPATH, which works for me also and is perhaps the more
>general and better solution.


>I must say that the error message printed:
>    The Xgopher Application Resources file is not available.
>    The file 'Xgopher' should be stored in the directory
>    /usr/local/X11R5/lib/X11/app-defaults.
>confuses some of us novices, because, dangit, the file !is! there.

>Thanks to Frank Peters, and anyone else whose reply is in transit.
>Apologies to Allan Tuchman, for not realizing he identified the problem
>already.

>Regards,
>ruck
>-- 
>John R. Ruckstuhl, Jr.                  ruck@alpha.ee.ufl.edu
>Dept of Electrical Engineering          ruck@cis.ufl.edu, uflorida!ruck
>University of Florida                   ruck%sphere@cis.ufl.edu, sphere!ruck


I also was having trouble with the above error message, even though the file
was in $(OPENWINHOME)/lib/app-defaults.  I was running from a series of
different machines running different X's.  The only common feature was that
we were all trying to telnet into a Sun and run an xgopher compiled with
Sun's OW3 libs and display it locally on our X servers.  It would run if the
client and server were running on a Sun workstation NFS mounting the same
file system from the telnet serving Sun.  The problem was that
XFILESEARCHPATH was not being set.  Setting it to
	setenv XFILESEARCHPATH /usr/openwin/lib/%T/%N%S

Since the error message already seemed to know this, it was confusing.  Part
of my problem also was that I had no other apps that refused to run without
their app-defaults resources.

Thank you Allan Tuchman.



--
--                                                        ___________________
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
Newsgroups: comp.infosystems.gopher