configuration option and gift-generate-inverted-file errors

Xin ZHOU <[email protected]>
Newsgroups gmane.comp.gnu.gift.general
Organization HUG
Message-ID <[email protected]>
hello,

i'm new user of gift so i was broken by some beginning problems. So i 
need some help.

version used gift-0.1.14

1st question:
to install gift other than the default directory, i use the option 
"--prefix". But it seems that those script use still the /usr/bin/. one 
exemple, i use ./configure --prefix /home/---/gift-local, but in 
gift-add-collection.pl i find something like :
=============================================================================
system("/usr/bin/gift-extract-features $lTemp");

system qq(/usr/bin/gift-write-feature-descs < $lTemp |perl -e 'print 
"Writing InvertedFileFeatureDescription...\n";open 
OF,">$main::lIndexPrefix/InvertedFileFeatureDescription.db" or die 
"could not open $lIndexPrefix";while(<STDIN>){print OF join(" ",(split(" 
",\$_))[0..1]),"\\n";};print "finished.\n";' );

system("/usr/bin/gift-generate-inverted-file $lIndexPrefix/");
============================================================================
so when i use gift-add-collection.pl, very evident that 
gift-extract-features hadn't been excuted.

i'm afraid that somewhere else in the program, i've still this type of 
problem. so what i want to know is that :

1. if i use a correct version ?? if not, which one should be?? where can 
i get it??

2. if it's a correct version, then this means that the configure option 
which i use is wrong. So what does the correct one look like?? Or should 
i put some other option??

3. if it's a correct version and the configure option which i use is 
right, then, does it means that we should do something manully? like 
type "gift-generate-inverted-file /gift-index-data/collection-name/"?? 
Was it  all i should do?? or is there any other changement which hadn't 
been detected??

*************************************************************************************

second qestion for " gift-generate-inverted-file ". As i mentioned, when 
i finish gift-add-collection.pl, the gift-generate-inverted-file hadn't 
been excuted. So i've got url2fts.xml, InvertFileFeatureDescription.db, 
gift-auxiliary-1, gift-auxiliary-2, these 4 files are not in size 0. 
InvertedFile.db and InvertedFileOffset.db are in size 0. So i suggest 
that i should run myshelf " gift-generate-inverted-file ". So the output 
message is this :
==========================================================================
Creating an inverted file using the 
files/home/----/gift-indexing-data/medCLEF/
/home/----/gift-indexing-data/medCLEF//url2fts.xml
/home/----/gift-indexing-data/medCLEF//InvertedFileFeatureDescription.db

Opening /home/----/gift-indexing-data/medCLEF/url2fts.xml ...success.
constructing parser
Reading
15809450 characters
Read url2fts.xml
Successfully processed
URLFile /home/----/gift-indexing-data/medCLEF/url2fts.xml processed.
NEWGEN I want to use/generate the 
files:/home/----/gift-indexing-data/medCLEF/InvertedFile.db
/home/----/gift-indexing-data/medCLEF/InvertedFileOffset.db
/home/----/gift-indexing-data/medCLEF/url2fts.xml
/home/----/gift-indexing-data/medCLEF/InvertedFileFeatureDescription.db
files successfully opened

Processing File: 0 CAccessorElement(0 
http://localhost/~/----/Images/medCLEF/Peir/Images/00009584.jpg 
http://localhost/~/----/Images/medCLEF_thumbnails/Peir/Images/00009584_thumbnail_jpg.jpg 
/home/----/gift-indexing-data/medCLEF/Peir/Images/00009584_jpg.fts)--
...
h
...finished

....(means repeated the same thing for all images)

before mergesort
STARTING mit MERGESIZE1
MERGESORT MergeSize 12
endmerge
MERGESORT MergeSize 24
endmerge
MERGESORT MergeSize 48
endmerge
MERGESORT MergeSize 96
endmerge
MERGESORT MergeSize 192
endmerge
MERGESORT MergeSize 384
endmerge
MERGESORT MergeSize 768
endmerge
MERGESORT MergeSize 1536
endmerge
MERGESORT MergeSize 3072
endmerge
MERGESORT MergeSize 6144
endmerge
MERGESORT MergeSize 12288
endmerge
MERGESORT MergeSize 24576
endmerge
MERGESORT MergeSize 49152
endmerge
MERGESORT MergeSize 98304
endmerge
MERGESORT MergeSize 196608
endmerge
MERGESORT MergeSize 393216
endmerge
MERGESORT MergeSize 786432
endmerge
MERGESORT MergeSize 1572864
endmerge
MERGESORT MergeSize 3145728
endmerge
MERGESORT MergeSize 6291456
endmerge
MERGESORT MergeSize 12582912
endmerge
MERGESORT MergeSize 25165824
endmerge
MERGESORT MergeSize 50331648
endmerge
MERGESORT MergeSize 100663296
endmerge
MERGESORT MergeSize 201326592
endmerge
MERGESORT MergeSize 402653184
../../libGIFTAcInvertedFile/include/merge_sort_streams.h:358 lToBeSorted 
false, after seekg(-1879048192)
gift-generate-inverted-file: 
../../libGIFTAcInvertedFile/include/merge_sort_streams.h:364: char* 
merge_sort_streams(const char*, const char*, int) [with T = 
CIFBuilderTriplet]: Assertion `lToBeSorted1' failed.
==============================================================================
i look into the code of "merge_sort_streams.h", however i've no idea 
where is the problem.... I've checked the gift-config.mrml, the 
collection-ID, collection-name are all correct. So i'm lost.

waiting for your help. thx very much

ZHOU Xin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.