I've painstakingly spent one whole day trying to set up lxr, and I've almost given up. Everything seems to work except that the source cgi script seems to generate a list of "/" instead of "/usr/local/lxr/src/1.0.0" which is where I've set up the source code for cross-referencing.
Please, please someone help me! I am at my wit's end.
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you post your lxr.conf, we might be able to help you.
The most likely reason that source isn't showing the right directory is that the script isn't picking up the right configuration, but I've never heard of it returning a listing for /
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-03-17
Here's the lxr.conf.
Thanks in advance.
------------------------------------------------------------
{
# Configuration for http://192.168.1.3/lxr.
# baseurl is used to select configuration block.
'baseurl' => 'http://tatooine/lxr', # Put your URL here
'virtroot' => '/src/1.0.0', # The bit after
# the / above
'variables' => {
# Define typed variable "v". This is the list of versions to index.
'v' => {'name' => 'Version',
# This can come from a file, a function or be explicitly
# ennumerated.
# From a file:
# 'range' => [ readfile('src/versions') ],
# Explicitly:
# 'range' => [qw(v1 v2 v3.1 v4 experimental)],
# If files within a tree can have different versions,
# e.g in a CVS tree, 'range' can be specified as a
# function to call for each file:
#'range' => sub { return
# ($files->allreleases($LXR::Common::pathname),
# $files->allrevisions($LXR::Common::pathname))
# },
# deferred function call.
.
.
.
# sourceroot - where to get the source files from
# For ordinary directories, this specifies a directory which has each version as
a
# subdirectory e.g.
# indexed-src/version1/...
# indexed-src/version2/...
# The names of the version directories must match the values for the Version
# variable above.
'sourceroot' => '/usr/local/lxr/src',
# Alternatively, this can specify a CVS repository by setting the value to "cvs:" # followed by the path to the repository. Note this must be file accessible - remote
# server access does NOT work.
# 'sourceroot' => 'cvs:/hom/karsk/a/CVSROOT/linux',
# The name to display for this source tree
'sourcerootname' => 'Example',
# The DBI identifier for the database to use
# For mysql, the format is dbi:mysql:dbname=<name>
# for Postgres, it is dbi:Pg:dbname=<name>
'dbname' => 'dbi:mysql:dbname=lxr',
# If you need to specify the username or password for the database connection,
# uncomment the following two lines
# 'dbpass' => 'foo',
# 'dbuser' => 'lxr',
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The first obvious problem is in the setting of virtroot - as the comment says, this should be the path after the / in the baseurl. So in your case it should be /lxr, not /src/1.0.0
Your second problem is that you haven't specified any versions in the 'v' variable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-03-18
Ok, I've changed the virtroot to '/lxr'. As for 'v' I've used the 'default'=>'1.0.0' but still doesn't seem to work. Also tried setting 'name' => '1.0.0', but no luck. Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've painstakingly spent one whole day trying to set up lxr, and I've almost given up. Everything seems to work except that the source cgi script seems to generate a list of "/" instead of "/usr/local/lxr/src/1.0.0" which is where I've set up the source code for cross-referencing.
Please, please someone help me! I am at my wit's end.
Thanks in advance.
Which version of lxr are you using?
If you post your lxr.conf, we might be able to help you.
The most likely reason that source isn't showing the right directory is that the script isn't picking up the right configuration, but I've never heard of it returning a listing for /
Here's the lxr.conf.
Thanks in advance.
------------------------------------------------------------
{
# Configuration for http://192.168.1.3/lxr.
# baseurl is used to select configuration block.
'baseurl' => 'http://tatooine/lxr', # Put your URL here
'virtroot' => '/src/1.0.0', # The bit after
# the / above
'variables' => {
# Define typed variable "v". This is the list of versions to index.
'v' => {'name' => 'Version',
# This can come from a file, a function or be explicitly
# ennumerated.
# From a file:
# 'range' => [ readfile('src/versions') ],
# Explicitly:
# 'range' => [qw(v1 v2 v3.1 v4 experimental)],
# If files within a tree can have different versions,
# e.g in a CVS tree, 'range' can be specified as a
# function to call for each file:
#'range' => sub { return
# ($files->allreleases($LXR::Common::pathname),
# $files->allrevisions($LXR::Common::pathname))
# },
# deferred function call.
.
.
.
# sourceroot - where to get the source files from
# For ordinary directories, this specifies a directory which has each version as
a
# subdirectory e.g.
# indexed-src/version1/...
# indexed-src/version2/...
# The names of the version directories must match the values for the Version
# variable above.
'sourceroot' => '/usr/local/lxr/src',
# Alternatively, this can specify a CVS repository by setting the value to "cvs:" # followed by the path to the repository. Note this must be file accessible - remote
# server access does NOT work.
# 'sourceroot' => 'cvs:/hom/karsk/a/CVSROOT/linux',
# The name to display for this source tree
'sourcerootname' => 'Example',
# The DBI identifier for the database to use
# For mysql, the format is dbi:mysql:dbname=<name>
# for Postgres, it is dbi:Pg:dbname=<name>
'dbname' => 'dbi:mysql:dbname=lxr',
# If you need to specify the username or password for the database connection,
# uncomment the following two lines
# 'dbpass' => 'foo',
# 'dbuser' => 'lxr',
The first obvious problem is in the setting of virtroot - as the comment says, this should be the path after the / in the baseurl. So in your case it should be /lxr, not /src/1.0.0
Your second problem is that you haven't specified any versions in the 'v' variable.
Ok, I've changed the virtroot to '/lxr'. As for 'v' I've used the 'default'=>'1.0.0' but still doesn't seem to work. Also tried setting 'name' => '1.0.0', but no luck. Thanks in advance.
You need to have the 'range' member of variable v set up as well as the default. So you should have:
'v' => {'name' => 'Version',
'range' => [qw(1.0.0)],
'default' => '1.0.0',
},
Ok, I tried that too... still doesn't work. I think there's something probably wrong with the source script itself... but you know better.
Thanks.