मैंने पहली बार हलिंट स्थापित करने का प्रयास किया। cabal install hlint
लेकिन फिर मैं त्रुटि मिली: (?)जब मैं hlint स्थापित करने का प्रयास करता हूं तो मुझे पुराने समय के आसपास त्रुटियां मिलती हैं- 1.1.0.3
cabal: Error: some packages failed to install:
cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install.
haskell-src-exts-1.18.2 depends on old-time-1.1.0.3 which failed to install.
hlint-1.9.37 depends on old-time-1.1.0.3 which failed to install.
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 77
तब मैं GHC-आधुनिक स्थापित करने की कोशिश की क्योंकि मैंने पढ़ा है कि hlint कि पैकेज की निर्भरता है। यह सोचकर कि यह समस्या का समाधान कर सकता है। तो मैंने cabal install ghc-mod
किया जिसने मुझे त्रुटि दी।
cabal: Error: some packages failed to install:
cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install.
ghc-mod-5.6.0.0 depends on old-time-1.1.0.3 which failed to install.
haskell-src-exts-1.17.1 depends on old-time-1.1.0.3 which failed to install.
hlint-1.9.35 depends on old-time-1.1.0.3 which failed to install.
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 77
तो यह एक ही समस्या हो रहा है अपने पैकेज old-time-1.1.0.3
के आसपास है और मैं वास्तव में यह कैसे हल करने के लिए पता है न। कोई सुझाव?
समाधान:
अपने कबाल कॉन्फ़िग फ़ाइल (आप "कबाल उपयोगकर्ता के config init" चलाकर स्थान सत्यापित कर सकते हैं) को संशोधित निम्नलिखित लाइनों को रोकने के लिए:
के बहुत सारेextra-prog-path: C:\Program Files\Haskell Platform\8.0.1\msys\usr\bin
extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\lib
extra-include-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\include
यदि आप इस तरह के किसी मुद्दे को हल करने की वास्तविक उम्मीद चाहते हैं तो आपको अधिक से अधिक विस्तार ('-v3' के साथ असफल कमांड के आउटपुट) में शामिल होना चाहिए। एक त्वरित Google खोज से पता चलता है कि यह संभवतः जीसीसी की टूटी हुई स्थापना से संबंधित है (या ghc एक अलग सी संकलक का उपयोग कर रहा है) – user2407038