[SOLVED] Problem using dictd - a dictionary database server

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

[SOLVED] Problem using dictd - a dictionary database server

Post 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?
Last edited by zAchAry on 31. Oct 2011, 08:33, edited 3 times in total.
Image
Help to make Slackware easier Donate to Salix
djemos
Salix Warrior
Posts: 1466
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Can't install dictd from SBo

Post 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
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can't install dictd from SBo

Post 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...]
Image
Help to make Slackware easier Donate to Salix
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: [SOLVED] Problem using dictd - a dictionary database ser

Post 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.
Image
Help to make Slackware easier Donate to Salix
Post Reply