Jumat, 03 September 2010

m4:/etc/mail/sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

sendmail di debian lenny

sewaktu mau install sendmail setelah selesai install sendmail-cf

terdapat error seperti ini

m4:/etc/mail/sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

Starting Mail Transport Agent (MTA): sendmailMakefile:364: warning: overriding commands for target `/etc/aliases.db'
Makefile:361: warning: ignoring old commands for target `/etc/aliases.db'
Makefile:422: warning: overriding commands for target `/etc/aliases'
Makefile:361: warning: ignoring old commands for target `/etc/aliases'
make: *** No rule to make target `/usr/share/sendmail-cf/m4/cf.m4', needed by `/etc/mail/databases'. Stop.

kita bisa mengecek keberadaan file dipaket mana dengan dpkg. caranya

dpkg -S /usr/share/sendmail-cf/m4/cf.m4

ternyata tidak ada

dan coba kita trace ke error sebelumnya

m4:/etc/mail/sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

menunjukan error di file

/etc/mail/sendmail.mc

coba baca line 10

/usr/share/sendmail-cf/m4/cf.m4

kemudian

baca baris dibawahnya ada clue

/usr/share/sendmail/cf/m4/cf.m4

sekarang dicoba
#dpkg -S /usr/share/sendmail/cf/m4/cf.m4
sendmail-cf: /usr/share/sendmail/cf/m4/cf.m4

nahhh kemungkinan besar generate file /etc/mail/sendmail.mc ada kesalahan coba ganti di line 10


/usr/share/sendmail-cf/m4/cf.m4 dengan /usr/share/sendmail/cf/m4/cf.m4


dan lakukan apt-get install sendmail

dan lancar jaya