Installing 4store on Gentoo

# emerge –ask rasqal raptor

These are the pack­ages that would be merged, in order:

Cal­cu­lat­ing depend­en­cies… done!
[ebuild N ] media-libs/raptor-1.4.18 USE=“unicode –curl –xml“
[ebuild N ] dev-libs/rasqal-0.9.16 USE=“pcre –gmp –test –xml”

Then I down­loaded and unpaked the 4store from http://​4store​.org/, then when run­ning configure…

# ./​configure
[OK ] pkg-​config installed
[OK ] rap­tor installed
[OK ] rasqal installed
[OK ] glib2 installed
[OK ] pcre installed
[OK ] read­line installed
[OK ] ncurses installed
[FAIL] no ter­m­cap devel system

I installed sys-​libs/​libtermcap-​compat but did not helped, after a quick chat on #gentoo (irc​.freen​ode​.net), I down­loaded and installed the GNU ter­m­cap from http://​ftp​.gnu​.org/​g​n​u​/​t​e​r​m​c​ap/ (ver­sion 1.3.1 dated 2002!) and all went fine:

# ./​configure
[OK ] pkg-​config installed
[OK ] rap­tor installed
[OK ] rasqal installed
[OK ] glib2 installed
[OK ] pcre installed
[OK ] read­line installed
[OK ] ncurses installed
[OK ] ter­m­cap installed
[OPT ] no avahi, will build without cluster support

# make

The com­pil­a­tion is quite fast, hmmm, I remem­ber 3store was tak­ing longer…but those were dif­fer­ent hard­ware times.

# mkdir /​var/​lib/​4store/​

(cd tests && make –w test)
make[1]: Enter­ing dir­ect­ory ‘/usr/local/src/4store-v0.9.2/tests’
(cd query && pwd && ./setup.sh –autorun)
/usr/local/src/4store-v0.9.2/tests/query
4store[20927]: backend-setup.c:178 erased files for KB query_​test_​root
4store[20927]: backend-setup.c:302 cre­ated RDF metadata for KB query_​test_​root
remov­ing old data
Read­ing <file:///usr/local/src/4store-v0.9.2/tests/query/../../data/swh.xrdf>
into <http://​example​.com/​s​w​h​.​x​rdf>
Pass 1, pro­cessed 63 triples (63)
Read­ing <file:///usr/local/src/4store-v0.9.2/tests/query/../../data/tiger/TGR06001.nt>
into <http://​example​.com/​T​G​R​06001​.nt>
Pass 1, pro­cessed 764610 triples (764547)
Read­ing <file:///usr/local/src/4store-v0.9.2/tests/query/../../data/nasty.ttl>
into <http://​example​.com/​n​a​s​t​y​.​ttl>
Pass 1, pro­cessed 764638 triples (28)
Pass 2, pro­cessed 764638 triples, 29045 triples/​s
Updat­ing index
Index update took 28.432670 seconds
Impor­ted 764638 triples, aver­age 18167 triples/​s
[PASS] add-​and-​delete
[FAIL] count (expec­ted see http://​4store​.org/​t​r​a​c​/​w​i​k​i​/​D​e​p​e​n​d​e​n​c​ies end­notes)
[PASS] distinct-​predicate
[PASS] foaf-​all-​limit
[PASS] foaf-​bnode-​vs-​variable
[PASS] foaf-​construct
[PASS] foaf-​disjunctive-​filter
[PASS] foaf-​distinct
[PASS] foaf-​graph-​all
[PASS] foaf-​graph-​pred
[PASS] foaf-​knows-​name
[PASS] foaf-​knows-​name-​sha1
[PASS] foaf-​knows-​sha1
[PASS] foaf-​knows-​sha1-​xml
[PASS] foaf-​multi-​disjunctive-​filter
[PASS] foaf-​nested-​optional
[PASS] foaf-​nothing
[PASS] foaf-​optional-​order
[PASS] foaf-​optional-​pair
[PASS] foaf-​optional-​regex
[PASS] foaf-​repeat-​var
[PASS] graphs
[PASS] integ­rity
[PASS] null-​optional
[PASS] null-​optional-​double
[PASS] optimiser-​disjunction
[PASS] select-​bnodes
[PASS] select-​order
[PASS] select-​unused
[PASS] size
[PASS] tiger-​broadway
[PASS] tiger-​explosion
[PASS] tiger-​fail-​optional
[PASS] tiger-​harold-​ave
[PASS] tiger-​landmarks
[PASS] tiger-​mixed-​optional
[PASS] tiger-​reverse
[PASS] tiger-​sugar-​hill
[PASS] tiger-​sugar-​hill-​filter
[PASS] tiger-​typical
[PASS] tiger-​water-​names
[FAIL] union-​nobind (expec­ted see http://​4store​.org/​t​r​a​c​/​w​i​k​i​/​D​e​p​e​n​d​e​n​c​ies end­notes)
Tests com­pleted: passed 4042 (2 fails)

now down­load­ing some DMOZ rdf data to feel the speed…