home *** CD-ROM | disk | FTP | other *** search
- THE SWISH-E README
-
-
- SYSTEM REQUIREMENTS
-
- SWISH-E is written in C, and, up to this time, it has been tested on
- Solaris 2.5.1 and Dec Alpha 3.2 in house and by users on BSDI 2.0.
- If you are just using the provided executable, there are no
- requirements on the system; if, however you want to change the
- config.h files and recompile, a C compiler is needed. Pretty much any
- standard compiler should do, the ones we used are: gcc version 2.7.0
- and ucbb SC3.0.1.
-
- A tip from Wil Vree about compiling with a Sun C compiler:
- In the Makefile the following two opions need to be modified
- CC = /opt/SUNWspro/bin/cc
- CFLAGS= -xO2
-
-
- INSTALLATION
-
- Downloading only the executable
- --------------------------------
- 1. In a temporary directory download the swish-e.1.1.tar.Z file
-
- 2. Uncompress the file
- %gunzip swish-e.1.1.tar.Z
-
- 3. Untar the file
- %tar -xvf swish-e.1.1.tar
-
- 4. Move the untarred executable swish-e.1.1 in its final directory,
- most commonly /usr/local/bin.
-
-
-
- Downloading the C files and recompiling the executable
- -------------------------------------------------------
- 1. Create a directory where to keep the source code files, for
- example /opt/swish-e.1
-
- %mkdir /opt/swish-e.1
-
- 2. Download the swish-efiles.1.1.tar.Z into the directory, uncompress and
- untar it
- % gunzip swish-efiles.1.1.tar.Z
- %tar -xvf swish-efiles.1.1.tar
-
- The command should create the following directory and files:
-
- src/
- Makefile error.h index.c mem.h search.h
- check.c file.c index.h merge.c string.c
- check.h file.h list.c merge.h string.h
- config.h hash.c list.h oldconfig.h swish.c
- error.c hash.h mem.c search.c swish.h
- test.html
-
- 3. In the Makefile change the path for the C compiler
-
- Change
- CC = /vol/moby/moby_a/gnu/sun4_sunos5.1/bin/gcc
-
- to
- CC = {PATH}/gcc
-
- as stated in the SYSTEM REQUIREMENTS section, you do not need to
- necessarily use gcc to compile.
-
- 4. Make any needed changes in the config.h to customize swish-e to
- your site. Information about the variables contained in config.h
- and their values range is contained in the file itself, also an
- example of the config.h file is contained in the web page
- at http://sunsite.Berkeley.EDU/SWISH-E/changes.html
-
- 5. Compile the swish-e executable from the src/ directory
-
- %cd src
- %make pure
-
- NOTE: If you make changes to the code, using this Makefile will
- automatically enable you to use gdb (I used GDB 4.13) for
- debugging.
-
- 6. Run a quick test to make sure that the executable is working
- correctly.
-
- %make test
-
- If the test is successful, you should see the
- following:
-
- sunsite% make test
- ./swish-e -i test.html -v -f index.swish
-
- Checking file "test.html"...
- test.html (41 words)
-
- Removing very common words... no words removed.
- Writing main index... 25 unique words indexed.
- Writing file index... 1 file indexed.
- Running time: Less than a second.
- Indexing done!
- ./swish-e -f index.swish -w test
- # SWISH format 1.1
- # Search words: test
- # Name: (no name)
- # Saved as: index.swish
- # Counts: 25 words, 1 files
- # Indexed on: 13/08/97 10:40:54 PDT
- # Description: (no description)
- # Pointer: (no pointer)
- # Maintained by: (no maintainer)
- 1000 test.html "If you are seeing this, the test was successful!" 358
- .
-
- 7. Move the swish-e executable to /usr/local/bin
-
- 8. For instructions about how to index and search with swish-e check
- the the manual at http://sunsite.Berkeley.EDU/SWISH-E/manual.html,
- or check out AUTOSWISH at
- http://sunsite.Berkeley.EDU/SWISH-E/AutoSwish/
-
-
- QUESTIONS AND TROUBLESHOOTING
-
- If you run in any problem during installation, or if you have any
- question about swish-e use and features, let us know. Information about
- subscriptions to the discussion group is available at
- http://sunsite.Berkeley.EDU/SWISH-E/Discussion/
-
-
- Giulia Hill
- Library System Office
- UC Berkeley Libraries
- ghill@library.berkeley.edu
-
- 8/13/97
- Last updated 1/6/98
-
-
-