Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#16 Fatal: Could not open "/usr/local/lxr/lxr/ident/xref

closed
nobody
5
2005-03-26
2004-12-04
kitten
No

Having difficulties indexing more than one tree. Added
several sourceroot declarations to lxr.conf like the
example states and it doesn't seem to like the format.
sourceroot: /var/tmp/lxr_build/sourcecode works just
fine but when I add another and change them to the
multiple format
sourceroot: sourcecode /var/tmp/lxr_build/sourcecode
the site tells me

Fatal: Could not open "/usr/local/lxr/lxr/ident/xref

What did I not configure properly?

Discussion

  • Malcolm Box
    Malcolm Box
    2005-03-26

    Logged In: YES
    user_id=215386

    You can't have multiple sourceroots for a single install.
    Instead, create several configuration blocks, each with a
    single sourceroot. Make sure that the dbprefix is set to a
    unique value for each one.

    E.g. if you have source directories dir1, dir2 and dir3,
    create 3 config blocks with:

    {baseurl="http://example.com/lxr/dir1", sourceroot="/dir1",
    dbprefix="dir1"},
    {baseurl="http://example.com/lxr/dir2", sourceroot="/dir2",
    dbprefix="dir2"}

    etc.

    Then you can have multiple source trees indexed and served
    by the same installation.

     
  • Malcolm Box
    Malcolm Box
    2005-03-26

    • status: open --> closed