namazu-users-en
[Top] [All Lists]

[Namazu-users-en] Re: [ (can't open the index) ]] (Solved!)

2007-04-09 19:33:50
rex wrote:

Tadamasa Teranishi <yw3t-trns(_at_)asahi-net(_dot_)or(_dot_)jp> [2007-04-09 
00:52]:

It is ".namazurc" that "namazu.cgi" reads.
("namazurc" is not read. )

Yes, I know that now, but the namazu-sample file in the tarball says:

# This is a Namazu configuration file for namazu or namazu.cgi.
#
#  Originally, this file is named 'namazurc-sample'.  so you should
#  copy this to 'namazurc' to make the file effective.

I followed the instructions and didn't see the contradictory
instructions (copy to .namazurc) that appear elsewhere.

You should read the manual. see doc/en/manual.html.

namazurc settings

Various settings are possible in mknmzrc or .mknmzrc. Namazu normally
reads
configuration files in the following order:

 1. $(sysconfdir)/$(PACKAGE)/namazurc
    (Usually, /usr/local/etc/namazu/namazurc
 2. ~/.namazurc
 3. file which is specified by -f or --config=FILE --option.
    (In case of CGI, it is .namazurc in the directory namazu.cgi is
stored)

If more than one configuration file is found, all of the files are
loaded.

Installation prepares a sample configuration file
$(sysconfdir)/$(PACKAGE)/
namazurc-sample. You can copy this to
$(sysconfdir)/$(PACKAGE)/namazurc or to ~
/.namazurc in your home directory.

namazu.cgi

namazu.cgi installation

namazu.cgi is the CGI script for Namazu. namazu.cgi is installed in $
(libexecdir) directory (usually /usr/local/libexec). If you copy
namazu.cgi
into a CGI directory of your system, installation is done!

.namazurc settings

If you have a .namazurc file in the directory where namazu.cgi is
stored, the
.namazurc file will be treated as a CGI configuration file. For the
display to
be in Japanese, you need the following settings:

Lang ja

There seems to be a misunderstanding. 

It is ".namazurc" that "namazu.cgi" reads.
("namazurc" is not read. )

".namazurc" that exists in the same directory as "namazu.cgi" 
is read.
"namazurc" that exists in the same directory as "namazu.cgi" 
is not read. 

However, it is the third in "namazu.cgi" to read RC file that 
exists in the same directory. 

The first is "$(sysconfdir)/$(PACKAGE)/namazurc". (Usually, 
/usr/local/etc/namazu/namazurc)
The second is "~/.namazurc".

"$(sysconfdir)/$(PACKAGE)/namazurc" is read first though "namazu.cgi"
doesn't read "namazrurc" of the same directory. 
--
=====================================================================
TADAMASA TERANISHI  yw3t-trns(_at_)asahi-net(_dot_)or(_dot_)jp
http://www.asahi-net.or.jp/~yw3t-trns/index.htm
Key fingerprint =  474E 4D93 8E97 11F6 662D  8A42 17F5 52F4 10E7 D14E

_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en