Cygwin: человек больше не работает

2102
BlottoBot

Я установил cygwin в папку по умолчанию (C: \ cygwin) в Windows 7 Pro. Еще несколько месяцев назад (не знаю, как долго) справочные страницы работали нормально. Потом пришло обновление, и теперь man anythingничего не отображается кроме (END). Я пытался из моей учетной записи обычного пользователя, а также из учетной записи повышенных прав администратора. Нет радости

Я вполне уверен, что эвристика защиты + Comodo Firewall прервала установку, поместив в песочнице компонент обновления (D + кричит о autorebase и setup_x86 каждый раз, когда я проклят), но я знаю, что он не мешает отображению man-страниц (я отключил его и проблема сохраняется). Таким образом, сама система человека нарушена. Есть идеи как это исправить?

Примечание: я также попытался запустить makewhatis, но безуспешно.

1

2 ответа на вопрос

2
BlottoBot

Looks like I fixed the problem on my own with help from SpaghettiCat in the #cygwin channel on freenode. Things I checked before figuring out the problem:

  • I checked the value of $PAGER and $MANPAGER (they were blank)
  • I tried setting the value of both to "less" (no joy)
  • I tried feeding a known man page to man, via man /usr/share/man/man8/fdisk.8.gz (still no joy)
  • I swapped out a copy of /etc/man.conf with one from a known-working cygwin install. (no dice)

At this point, it was clear that more was messed up than just man. I figured I would have to trash my install. However, I discovered the cygcheck -c command, which I ran. The result: half of my packages were "Incomplete", including groff. Thanks, Microsoft System Restore!

After running cygwin's setup_x86.exe, and reinstalling the borked packages, everything's fine.

1
ankostis

I had the exact same problem and I managed to trace it down the to a corrupt cygwin1.dll. I found that for some reason (run installer while bash was running?) there were 2 files in my /bin folder, and the newer-one was disabled:

* cygwin1.dll (3148035 bytes, v1.7.30, APIv-0.272) * cygwin1.dll.new (3156896 bytes, v1.7.32, APIv-0.274) 

To fix it i had to re-install the package base/cygwin: the UNIX emulation engine. Then I run mandb, just to be sure...

(NOTE that cygcheck -c had not reported any problems!)