[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dictionnaires



Bonjour,

J'essaye de monter un serveur dictd.
Quand je le mets en route:

root@hector:~ # /etc/init.d/dictd start
Starting dictionary server: dictd.
root@hector:~ # ps aux | grep dict
root      5345  0.0  0.1   3800   752 tty1     R+   02:42   0:00 grep dict
root@hector:~ # dict chien
/etc/dictd/dict.conf:18: syntax error, unexpected TOKEN_STRING, expecting $end
/etc/dictd/dict.conf:18: access { allow localhost deny * }
/etc/dictd/dict.conf:18: ^^^^^^
dict (yyerror): parse error
root@hector:~ #

Mon fichier de configuration /etc/dictd/dictd.conf:
access {
allow localhost
allow 127.0.0.1
# this allows access only from local host
}

# Database section here:
include /var/lib/dictd/db.list

Mon fichier de configuration pour le client /etc/dictd/dict.conf:

server localhost
#server dict.org
access { allow localhost deny * }
database fra-eng { data "/usr/share/dictd/fra-eng.dict.dz" index "/usr/share/dictd/fra-eng.index" }

Je n'ai pas l'impression de contredire les docs. Quelqu'un aurait-il une idée?
Quand je décommente "server dict.org", ça fonctionne mais je n'ai pas accès au dicos dans /var/lib/dictd/:

#server localhost
server dict.org
#access { allow localhost deny * }
#database fra-eng { data "/usr/share/dictd/fra-eng.dict.dz" index "/usr/share/dictd/fra-eng.index" }

Merci d'avance.

-- 
Stevan Kanban



Reply to: