Namazu-users-en(old)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cant locate gettext



After I unpacking nmz205.zip I ran nmzsetup.bat which appears to have set 
up everything correctly.

  C:\tools\namazu>grep DIR C:\tools\namazu\etc\namazu\mknmzrc
  c:\tools\namazu\etc\namazu\mknmzrc:#$DIRECTORY_INDEX = "";
  c:\tools\namazu\etc\namazu\mknmzrc:$LIBDIR =
'C:/tools/namazu/share/namazu/pl';
  c:\tools\namazu\etc\namazu\mknmzrc:$FILTERDIR =
'C:/tools/namazu/share/namazu/fi
  lter';
  c:\tools\namazu\etc\namazu\mknmzrc:$TEMPLATEDIR =
'C:/tools/namazu/share/namazu/
  template';

  C:\tools\namazu>set | grep MKNMZ
  MKNMZRC=C:\tools\namazu\etc\namazu\mknmzrc

I got mknmz working by changing the paths in the mknmz code.

I think it is odd that the load_modules function is called BEFORE loading
the config
files (see below). 

From mknmz:

sub main {
    my $start_time = time;

    init();
    load_modules();  ## VJ: does a  require "gettext.pl" !! ($LIBDIR is
added to @INC)

    # To support Windows. Since they have nasty drive letter convention,
    # it is necessary to change mknmzrc dynamically with env. variable.
    load_rcfile($ENV{'MKNMZRC'}) if defined $ENV{'MKNMZRC'}; ##VJ: $LIBDIR
is modified

    load_rcfiles();
    my ($output_dir, @targets) = parse_options();
  

Vagn Johansen
Denmark