fatal: LXR::Config line 96: Can't find config

Help
2003-07-18
2003-07-25
  • Steeve McCauley

    Steeve McCauley - 2003-07-18

    Holy jumpin this is a pain in the ass to get going.  At least I think I've finally got most of the mod_perl issues sorted.

    Strangely, some of the perl scripts in the lxr directory return the error, and some show the perl source.  The .htaccess file looks like this,

    Options Indexes ExecCGI FollowSymlinks

    order deny,allow

    <Files lxr.conf>
    deny from all
    </Files>

    <Files lib>
    deny from all
    </Files>

    <Files ~ (find|search|source|ident|diff|cgi-bin)$>
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSetEnv PERL5LIB lib
    allow from all
    </Files>

    When I try to run search, I get the following message,

    fatal: LXR::Config, line 96: Can't find config for http://toast.ts:8080/lxr/search

    My lxr.conf looks like this,

    # Configuration file
    (
    {
      'swishindex' => '/usr/local/bin/swish-e',
      'swishsearch' => '/usr/local/bin/swish-e',
      'swishdir' => '/usr/local/lxr/swishdir',
      'ectagsbin'   => '/usr/bin/ctags',
      'tmpdir'              => '/tmp',
      'genericconf' => '/usr/lib/perl5/site_perl/LXR/Lang/generic.conf'
    },

    {
         'baseurl'          => 'http://toast:8080/lxr',  # Put your URL here
         'virtroot'         => '/lxr',                    # The bit after the / above
         'variables' => {
                                             'v' => {'name'    => 'Version',
                                                             'range' => [qw(linux-2.4.20-18.9)],
                                                             'default' => 'linux-2.4.20-18.9'},
                                             'a' => {'name'    => 'Architecture',
                                                             'range'   => [qw(i386 alpha arm m68k mips ppc sparc sparc64)]},
                                            },

      'maps' => {
                             '/include/asm[^\/]*/' => '/include/asm-$a/',
                             '/arch/[^\/]+/'       => '/arch/$a/',
                            },

      'htmlhead'            => 'html-head.html',
      'htmltail'            => 'html-tail.html',
      'htmldir'                 => 'html-dir.html',
      'htmlident'       => 'html-ident.html',
      'htmlident_refs'  => 'html-ident-refs.html',
      
      'sourcehead'  => 'html-head.html',
      'sourcedirhead'       => 'html-head.html',
      'stylesheet'       => 'lxr.css',
      'sourceroot'  => '/usr/src',
      'sourcerootname'      => 'linux-2.4.20-18.9',
      'dbname'              => 'dbi:mysql:dbname=lxr',
      'dbuser'              => 'lxr',
      'swishdir' => '/usr/local/lxr/swishdir',
      'incprefix'   => ['/include', '/include/linux'],
      'graphicfile' => '(?i)\.(gif|jpg|jpeg|pjpg|pjpeg|xbm|png)$',  #'
      'filetype' => {
                                     'C' => ['C', '\.c$' #'
                                      , 'LXR::Lang::Generic', '8'],
                                     'C++' => ['C++', '\.C$|((?i)\.c\+\+$|\.cc$|\.cpp$|\.cxx$|\.h$|\.hh$|\.hpp$|\.hxx$|\.h\+\+$)' #'
                                      , 'LXR::Lang::Generic', '8'],
                                     'Java' => ['Java', '(?i)\.java$'   #'
                                      , 'LXR::Lang::Java', '4'],
                                     'Make' => ['Make', '(?i)\.mak$|makefile*' #'
                                                            , 'LXR::Lang::Generic'],
                                     'Perl' => ['Perl', '(?i)\.pl$|\.pm$|\.perl$'   #'
                                      , 'LXR::Lang::Generic', '4'],
                                     'php' => ['php', '(?i)\.php$|\.php3$|\.phtml$'   #'
                                      , 'LXR::Lang::Generic', '2'],
                                     'Python' => ['Python', '(?i)\.py$|\.python$'   #'
                                      , 'LXR::Lang::Generic', '4'],
                                    },

      'interpreters' => {
                                             'perl' => 'Perl',
                                             'python' => 'Python',
                                            },
      

    })

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks