Enabling the search engine on a mirrored SxS site (was Re: KurtWerks site bug)

Roger Oberholtzer roger
Mon May 17 11:33:27 PDT 2004


On Mon, 17 Jun 2002 19:48:53 -0400
Tim Wunder <tim at thewunders.org> wrote:

> OK, just installing namazu doesn't help. There must be some configuring to
> do. There appears to be some instruction on the SxS, but it appears to be
> geared around the swish search engine, which isn't namazu. I think I'm
> gonna need a little more help, here.

I did not install all of namazu. Here is a repost of what I did:

On a 'stock' eD 2.4 box, which is running my mirror, I did this to get
namazu working:

1. downloaded namazu-2.0.10.tar.gz from www.namazu.org

2. unpacked it and ran:

	./configure --prefix=/opt

	make

   It will probably complain that you do not have File-MMagic installed.
   No worry, the error message tells you exactly what to do to install it,
   and it is included in the namazu sources. Nothing additional to download.
   Just a few commands to type. Quite easy. They are in the message. If
   you needed to install File-MMagic, then you will need to re-run
   './configure --prefix=/opt' after it is installed.

   In fact, I am not sure the --prefix is needed. After all, we do not use
   the whole namazu - there is nothing installed in /opt for it. I did this
   as Doug said that was how he did it.

   NOTE:: You do not need to do a 'make install' for the SxS. Aside from
   File-MMagic, we only need 2 files, discussed in the next steps.

3. Put nmz/.libs/libnmz.so.3.2.0 in /opt/lib and then type:

	cd /opt/lib

	ln -s libnmz.so.3.2.0 libnmz.so.3

   Be sure /opt/lib is in /etc/ld.so.conf, running ldconfig if you added
   it to this file. If you do not do this, then namazu.cgi will not run.

4. Put src/.libs/namazu.cgi in <SxShome>/cgi-bin, then run: 

	chmod a=rx ./namazu.cgi

   Tyoe: ldd ./namazu.cgi

   It should not complain about any missing files.

5. Be sure to exclude the mothership's namazu.cgi from being updated. This
   is the only file in the SxS tree that we have changed.

   The File-MMagic stuff is untouched by the SxS, which 'could' be a source
   of the trouble.

There you have it. My namazu now works. I doubt you need all the 
Perl modules mentioned elsewhere. My system is a basic install with no Perl
stuff added (that I am aware of).

Please let me know if I left anything out.

And feel free to search my SxS!

-- 
+============================+===============================+
| Roger Oberholtzer          |   E-mail:        roger at opq.se |
| OPQ Systems AB             |      WWW:  http://www.opq.se/ |
| Erik Dahlbergsgatan 41-43  |    Phone: Int + 46 8   314223 |
| 115 32 Stockholm           |   Mobile: Int + 46 733 621657 |
| Sweden                     |      Fax: Int + 46 8   302602 |
+============================+===============================+




More information about the Linux-users mailing list