Quote:
A few people have fixed problems with building the KDE help index, but none of them seem to "fix" all the problems in the Slackware distro. I can't easily use another distro because none of them will install on my RAID controller (or at least I can't figure out how to do that). |
I got it to work using the method I posted.
In /opt/kde/bin/khc_htdig.pl I have the following variables: my $htdigdata = "/srv/www/htdig/common/"; my $htdigbin = "/usr/bin"; my $kdeprefix = "/opt/kde"; In /opt/kde/bin/khc_docbookdig.pl I have the following variables: my $htdigdata = "/srv/www/htdig/common/"; my $htdigbin = "/usr/bin"; my $kdeprefix = "/opt/kde"; In /opt/kde/bin/hkc_htsearch.pl I have the following variables: my $htsearchpath="/opt/www/cgi-bin/htsearch"; I have to change $htdigbin to /usr/bin because that is where I installed the htdig binary file when I compiled the latest htdig sources. Hope this helps you. Regards, Greg |
Quote:
I now get an indication of "success" building the index, but the search index is apparently empty. Attempts to search for anything obviously in the application manuals return no results. There is still an error reported in the details. Code:
htdig: Errors to take note of: |
Quote:
|
IMPORTANT! There are two errors in the information that has been posted previously.
The file name and the direcotry name for "$htsearchpath" were both incorrect. The file "/opt/kde/bin/khc_htsearch.pl" is where this change should be made. Code:
my $htsearchpath="/opt/www/cgi-bin/htsearch"; If "$htsearchpath" is incorrect any attempts to search the help index will yeild no results (apparently reporting no error). I had to make two more changes to resolve all the errors. Rename the following directory. /opt/kde/share/doc/HTML/en/KRegExpEditor To this /opt/kde/share/doc/HTML/en/kregexpeditor The error that I got was because the file name matching is case sensitive. I also had to add this at line 80 of /opt/kde/bin/khc_docbookdig.pl Code:
elsif ( $lang eq "en" ) { $locale = "en_US"; } Code:
my $locale; |
Complete solution
To avoid confusion, here are ALL the steps that I did to correct the problems with the KDE help index.
First, it was necessary to compile and install the most recent "htdig" source. I downloaded "htdig-3.2.0b6.tar.gz" and extracted the files to "/usr/src/htdig-3.2.0b6". Although this step might not be necessary, it does affect the rest of the instructions for correcting the problem. If this step is NOT done then substitute "/opt/www/htdig/bin" instead of "/opt/www/bin" in subsequent instructions. I have only tested with the latest "htdig" so I highy recommend using that. To compile and install "htdig" use these commands Code:
./configure /opt/kde/share/doc/HTML/en/KRegExpEditor To this /opt/kde/share/doc/HTML/en/kregexpeditor That corrects an error due to case sensitive file names. Edit the following files as indicated. File "/opt/kde/bin/khc_docbookdig.pl" change these variables to the values indicated. Code:
my $htdigdata = "/opt/www/htdig/common/"; Code:
my $locale; Code:
my $locale; Code:
my $htdigdata = "/opt/www/htdig/common/"; Code:
my $htsearchpath="/opt/www/cgi-bin/htsearch"; The "correct" location of the "htdig" binary files is not clear to me. The "htdig" that comes with Slackware is located in "/opt/www/htdig/bin". When I recompile and install "htdig" it is installed to "/opt/www/bin". In any case, the variable "$htdigbin" in the scripts must specify the correct location. I am not quite sure what to make of the "locale" problem. It may be due to some other problem and my "fix" may just be working around the other problem. The other variables "$htdigdata" and "$kdeprefix" are dependent on the installation and distro in question. These instructions should work for Slackware 11.0 but will probably not work with some other distros. Substituting the correct directory names may work around the problem in other distros. |
All times are GMT -5. The time now is 01:03 AM. |