LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-15-2007, 11:06 PM   #16
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 797

Original Poster
Rep: Reputation: 247Reputation: 247Reputation: 247

Quote:
Originally Posted by gbowden
You can find the KDE bugzilla entry here.

------- Additional Comment #5 From giuseppe 2007-01-14 09:02 -------
This bug is solved on slackware
you need to edit
2 files /opt/kde/bin/khc_htdig.pl
and /opt/kde/bin/khc_docbookdig.pl
and edit the variables,should be like this

my $htdigdata = "/opt/www/htdig/common/";
my $htdigbin = "/opt/www/htdig/bin";
my $kdeprefix = "/opt/kde";


------- Additional Comment #6 From giuseppe 2007-01-19 20:17 -------
I forgot..
and edit the file /opt/kde/bin/khc_docbookdig.pl

my $htsearchpath="/opt/www/htdig/cgi-bin/htsearch";

Htdig MUST BE the latest 3.20b6
Thanks for the information. I tried that and I get the "htmerge failed" error. That's basically as far as I got on my own. It also appears that "Comment #6" should refer to the file "khc_htsearch.pl" instead of "khc_docbookdig.pl" since the variable referred to only exists in "hkc_htsearch.pl". I tried adding or changing it in both files with the same "htmerge failed" error. It seems the whole kde help indexing is dependant on the distro. I guess I'm going to have to wait until Slackware corrects the problem.

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).
 
Old 03-16-2007, 06:58 AM   #17
gbowden
Member
 
Registered: Dec 2003
Location: Spain
Distribution: Slackware 14.1
Posts: 146

Rep: Reputation: 27
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

Last edited by gbowden; 03-16-2007 at 07:11 AM.
 
Old 03-16-2007, 10:33 AM   #18
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 797

Original Poster
Rep: Reputation: 247Reputation: 247Reputation: 247
Quote:
Originally Posted by gbowden
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
Thanks Greg. Your suggestion helped me get a bit further. As it turns out, when I used "make install" for htdig it copied the binary files to "/opt/www/bin" instead of "/opt/www/htdig/bin"

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:
Unknown host or unable to contact server: help://kregexpeditor/index.docbook Ref: file:///root/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html
 
Old 03-16-2007, 10:37 AM   #19
General Maximus
LQ Newbie
 
Registered: Mar 2007
Distribution: Slackware 11, BOSS Linux
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by gbowden
I forgot..
and edit the file /opt/kde/bin/khc_docbookdig.pl

my $htsearchpath="/opt/www/htdig/cgi-bin/htsearch";
I can't find the variable my $htsearchpath in that file. Slack 11 here. Any ideas?
 
Old 03-16-2007, 11:25 AM   #20
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 797

Original Poster
Rep: Reputation: 247Reputation: 247Reputation: 247
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";
The above search path is different than the ones previously posted.
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"; }
The entire section of code around line 80 now looks like this.

Code:
my $locale;
if ( $lang eq "de" ) { $locale = "de_DE"; }
elsif ( $lang eq "en" ) { $locale = "en_US"; }
else { $locale = $lang; }
After all of these changes I am now able to successfully search the help index and obtain results. Thanks to gbowden for providing the information to get me looking in the correct places.

Last edited by Erik_FL; 03-16-2007 at 11:56 AM.
 
Old 03-16-2007, 12:22 PM   #21
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 797

Original Poster
Rep: Reputation: 247Reputation: 247Reputation: 247
Wink 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
make
make install
Rename the following directory.

/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/";
my $htdigbin = "/opt/www/bin";
my $kdeprefix = "/opt/kde";
File "/opt/kde/bin/khc_docbookdig.pl" change this (around line 79).

Code:
my $locale;
if ( $lang eq "de" ) { $locale = "de_DE"; }
else { $locale = $lang; }
to this

Code:
my $locale;
if ( $lang eq "de" ) { $locale = "de_DE"; }
elsif ( $lang eq "en" ) { $locale = "en_US"; }
else { $locale = $lang; }
File "/opt/kde/bin/khc_htdig.pl" change these variables to the values indicated.

Code:
my $htdigdata = "/opt/www/htdig/common/";
my $htdigbin = "/opt/www/bin";
my $kdeprefix = "/opt/kde";
File "/opt/kde/bin/khc_htdig.pl" change this variable to the value indicated.

Code:
my $htsearchpath="/opt/www/cgi-bin/htsearch";
NOTE: The above change isn't required to build the indexes, but is required for search to find any results when searching the indexes.

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
search box on first index page macewan LQ Suggestions & Feedback 7 09-30-2006 01:39 AM
application to index CD/DVDs ZaphyR Linux - Software 5 08-09-2005 12:14 PM
how to search for a application? ickselglic Linux - Newbie 4 03-09-2004 04:01 PM
Apache 2.0 search for index.html file pawlub Linux - Software 2 10-28-2003 10:03 AM
Application Search PuterFreaK LQ Suggestions & Feedback 0 01-24-2002 07:28 PM


All times are GMT -5. The time now is 07:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration