home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1026 < prev    next >
Encoding:
Text File  |  1992-07-21  |  3.7 KB  |  97 lines

  1. Newsgroups: alt.gopher
  2. Path: sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!choctaw!peterson
  3. From: peterson@choctaw.NoSubdomain.NoDomain (Bob Peterson)
  4. Subject: Re: Conversion Confusion!
  5. Message-ID: <1992Jul21.204559.11882@csc.ti.com>
  6. Sender: usenet@csc.ti.com
  7. Nntp-Posting-Host: choctaw
  8. Reply-To: peterson@csc.ti.com
  9. Organization: Texas Instruments
  10. References:  <1992Jul21.145454.24143@csus.edu>
  11. Date: Tue, 21 Jul 1992 20:45:59 GMT
  12. Lines: 83
  13.  
  14. In article <1992Jul21.145454.24143@csus.edu>, heidis@sfsuvax1.sfsu.edu (Heidi Schmidt) writes:
  15. |> We have experienced some difficulty in converting from Gopher 0.9 and
  16. |> the Wais gateway to Gopher 1.01.  Any assistance would be appreciated!
  17. |> 
  18. |> Our Gopher data directory is: /usr/mail1/gopher
  19. |> Our Wais directory is: /usr/support/wais/wais-sources
  20. |> 
  21. |> We tried creating a link to "test.src" using the example in server.c:
  22. |> 
  23. |>     ...
  24. |>
  25. |> Then we tried creating a link using the example in the gopherd man
  26. |> pages:
  27. |>
  28. |>     ...
  29. |>
  30. |> We've tried a bunch of different things, but we just don't seem to get
  31. |> it . . . Thanks in advance for your help.
  32. |> 
  33. |> Heidi Schmidt
  34. |> San Francisco State University
  35.  
  36.   I just ran into a similar problem.  
  37.  
  38.   I've been using WAIS for some time, and had my indexes in
  39. /conestoga/u3/peterson/WAISIndexes.  My WAIS data lives in various
  40. places, e.g., /conestoga/u2/peterson/Friends. 
  41.  
  42.   When waisindex builds an index the pathname of the data (apparently)
  43. is entered into the index.  When gopherd running with -c attempts to
  44. read the data pointed to by the index, code in Waisindex.c looks for
  45. the Gopher data path in the path returned from the query and, if not
  46. found, returns "Error in Hostdata!".  
  47.  
  48.   If you make this check conditional on the dochroot variable you then
  49. discover a statement in fixfile in openers.c that forces all pathnames
  50. to be relative.
  51.  
  52.   I ended up using symbolic links from inside the Gopher tree _and_ I
  53. rebuilt the WAIS indexes, specifying the files to be indexed using the
  54. path beginning with the Gopher tree root.  
  55.  
  56.   For example, my gopherd runs against /hacks/release/etc/gopher-data.
  57. We automatically archive a large number of FAQ articles in
  58. /epoch/misc/ftproot/pub/FAQ.  I built an index of the FAQ articles in
  59. /conestoga/u3/peterson/WAISIndexes/FAQ.*.  To get the FAQ index into
  60. Gopher I created a FAQ directory in /hacks/release/etc/gopher-data then
  61. did the following.
  62.     cd /hacks/release/etc/gopher-data/FAQ
  63.     # link to the directory containing the indexes
  64.     ln -s /conestoga/u3/peterson/WAISIndexes FAQIndex
  65.     # link from the index directory to the actual data
  66.     ln -s /epoch/misc/ftproot/pub/FAQ \
  67.         FAQIndex/FAQData
  68.     # Describe FAQs and the FAQ Index
  69.     vi aboutFAQindex
  70.     # Set the titles and the entry types for the textual
  71.     # description and the WAIS index
  72.     mkdir .cap
  73.     vi .cap/aboutFAQindex .cap/FAQindex
  74.     # Rebuild the WAIS index, using the Gopher path to get to 
  75.     # the data files.  This means the index's pathnames begin
  76.     # with the Gopher root path.
  77.     cd ~
  78.     waisindex -r -t netnews \
  79.         -d /hacks/release/etc/gopher-data/FAQ/FAQIndex/index \
  80.         /hacks/release/etc/gopher-data/FAQ/FAQIndex/FAQData/*
  81.  
  82.   Clear as mud?
  83.  
  84.   The bottom line: the Gopher -c hack seems incomplete, at least as far
  85. as WAIS indexes.  In a number of places Gopher code still assumes paths
  86. cannot be absolute, and must begin with the Gopher root path.  However,
  87. with the above links and running with -c (our Gopher lives behind a very
  88. restrictive gateway) WAIS indexes do work.
  89.  
  90.     Bob
  91.  
  92. --
  93. Bob Peterson             Work: peterson@csc.ti.com              Expressway Site
  94. Texas Instruments        Home: peterson@zgnews.lonestar.org     North Building
  95. P.O. Box 655474, MS238   TIMSG: RWP  Landline: +1 214 995 6080  Aisle A4
  96. Dallas, Tx USA 75265                 FAX line: +1 214 995 0304  2-88V97
  97.