Page 1 of 1
[SOLVED] Problem using dictd - a dictionary database server
Posted: 16. Oct 2011, 14:40
by zAchAry
Code: Select all
$ dictd
/etc/dictd/dictd.conf:18: syntax error, unexpected $end
/etc/dictd/dictd.conf:18: # User section here:
/etc/dictd/dictd.conf:18: ^
dictd (yyerror): parse error
parse error
Code: Select all
# /etc/rc.d/rc.dictd start
dictd starting.
/etc/dictd/dictd.conf:18: syntax error, unexpected $end
/etc/dictd/dictd.conf:18: # User section here:
/etc/dictd/dictd.conf:18: ^
dictd (yyerror): parse error
parse error
This is the dictd.conf file:
Code: Select all
# /etc/dictd/dictd.conf
# Site section here:
# Access section here:
access {
allow localhost
allow 127.0.0.1
# this allows access only from local host
}
# Database section here:
include /etc/dictd/db.list
# User section here:
I want to connect
xfce4-dict with the
Culmus dictionaries by defining the server as localhost:2628
Does anyone has a clue about what I should do?
Re: Can't install dictd from SBo
Posted: 16. Oct 2011, 15:03
by djemos
Go to slackbuilds.org and download the source code for dict. Then copy the file dictd-1.11.1.tar.gz to /usr/src/slapt-src/office/dictd and run again slapt-src -i dictd
Re: Can't install dictd from SBo
Posted: 16. Oct 2011, 15:07
by zAchAry
djemos wrote:Go to slackbuilds.org and download the source code for dict. Then copy the file dictd-1.11.1.tar.gz to /usr/src/slapt-src/office/dictd and run again slapt-src -i dictd
Thanks djemos

[...subject has been changed...]
Re: [SOLVED] Problem using dictd - a dictionary database ser
Posted: 31. Oct 2011, 09:02
by zAchAry
If
xfce4-dict (or any other DICT client) indicates that it can't connect to localhost or 127.0.0.1 (Could not connect to server.) then you might need to modify the settings of the DICT server.
Check that
/etc/dictd/db.list has the precise locations of your dictionaries.
This db.list file is not directing to any dictionary. the # signs should be removed.
Code: Select all
#database dbname1
# {
# data /usr/share/dictd/dbname1.dict.dz
# index /usr/share/dictd/dbname1.index
#}
#database dbname2
# {
# data /usr/share/dictd/dbname2.dict.dz
# index /usr/share/dictd/dbname2.index
#}
#database dbname3
# {
# data /usr/share/dictd/dbname3.dict.dz
# index /usr/share/dictd/dbname3.index
#}
If your dictionaries are located at
/usr/share/dictd/
Code: Select all
waldstein-he-eng.dict.dz
waldstein-he-eng.index
wiktionary-he-eng.dict.dz
wiktionary-he-eng.index
wordnet-he-eng.dict.dz
wordnet-he-eng.index
You need to edit the file
/etc/dictd/db.list so it will direct to the dictionaries at /usr/share/dictd/
Code: Select all
database waldstein-he-eng
{
data /usr/share/dictd/waldstein-he-eng.dict.dz
index /usr/share/dictd/waldstein-he-eng.index
}
database wiktionary-he-eng
{
data /usr/share/dictd/wiktionary-he-eng.dict.dz
index /usr/share/dictd/wiktionary-he-eng.index
}
database wordnet-he-eng
{
data /usr/share/dictd/wordnet-he-eng.dict.dz
index /usr/share/dictd/wordnet-he-eng.index
}
Restart the dictd service.