Forum OpenACS Q&A: OpenFTS installation problems

Collapse
Posted by Jarkko Laine on
I have a fresh OpenACS installation and I tried to set up OpenFTS driver for it.

However, make doesn't work, though I've tried to change Makefile.global the right way (INC = ../include -I/usr/include)

In file included from Snowball.c:7:
../../include/fts.h:16: tcl.h: No such file or directory
make[2]: *** [Snowball.o] Error 1
make[2]: Leaving directory `/usr/local/src/Search-OpenFTS-tcl-0.3.1/dict/snowball'
make[1]: *** [snowball] Error 2
make[1]: Leaving directory `/usr/local/src/Search-OpenFTS-tcl-0.3.1/dict'
make: *** [dicts] Error 2
[nsadmin@swissnet Search-OpenFTS-tcl-0.3.1]$ locate tcl.h
etc...
/usr/include/tcl.h
etc...

I'm not sure if I have the right version (0.3.1) of Search-openfts-tcl, but I think so because the driver is pointing by default to 0.3.1 source folder.

When I didn't manage to get the driver built, I tried to point openacs to old 0.2 dir. After that, when I submitted the form in driver initialization, I got the following error:

Database operation "dml" failed
    while executing
"error "$err""
    invoked from within
"if [catch {
    db_dml create_table "create table $table_name ( ${table_id} int not null primary key, path varchar unique, fts_index txtidx, last_modi..."
    ("uplevel" body line 21)
    invoked from within
"uplevel {
    	  ad_page_contract {

    Initialize OpenFTS

    @author Neophytos Demetriou
OK, this doesn't really tell a lot about the reason, but maybe someone knows why there's an error in the first place (inconcistency with 0.2 driver, etc)...

I have found just one old chat discussion concerning this issue, but it wasn't of help at the end. So I'm not sure which version of openfts should be used and would be very thankful of any help getting the right one compiled.

Collapse
Posted by Jose Mendez on
Did you ever resolve this problem? I am trying openfts with OpenACS 4.6 and I get the same error. I've tried different versions (0.3, 0.3.1, 0.3.2) of OpenFTS  but haven't been able to get it to initialize. I've also not been able to find the 0.31 version of OpenFTS which is supposed to be the one to use with OA 4.6 - I found OpenFTS-perl-0.31 but not the TCL version. any help will be greatly appreciated. Thanks.

Database operation "dml" failed
    while executing
"error "$err""
    invoked from within
"if [catch {
    db_dml create_table "create table $table_name ( ${table_id} int not null primary key, path varchar unique, fts_index txtidx, last_modi..."
    ("uplevel" body line 21)
    invoked from within
"uplevel {
          ad_page_contract {

    Initialize OpenFTS

    @author Neophytos Demetriou

} {
    table_name
    table_id
    dict
    numbergroup..."
    (procedure "code::tcl::/web/captive-dev/packages/openfts-driver/www/admi..." line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..."