2011-08-10 22 views
5

यह सवाल केवल yak-shaving कोशिश करते हैं और another problem निवारण करने के लिए है।कबाल: कबाल कॉन्फ़िगर विफल रहता है

तो, मेरा एक और समस्या का निदान करने की कोशिश में, मैं कोशिश करने के लिए सलाह दी गई थी:

cabal unpack base 
cd base-4.3.1.0 
cabal haddock 

कि क्या किया देखने के लिए।

केवल, जब मैंने cabal unpack base किया, तो यह base-3.0.3.2 अनपॅक किया गया। फिर cabal haddock ने शिकायत की कि मुझे पहले cabal configure चलाने की आवश्यकता है, तो असफल रहा (गलत त्रुटि खो दी, दुख की बात है)।

इसलिए मैंने आधार-4.3.1.0 स्थापित करने का निर्णय लिया, बस मैं निर्देशों को बिल्कुल सही कर सकता था।
इंस्टॉल करने के बाद भी, cabal unpack basebase-3.0.3.2 unpacks, हालांकि cabal unpack base-4.3.1.0base-4.3.1.0 unpacks।

अब मैं करने के लिए या तो कॉन्फ़िगर नहीं कर सकता करने के लिए कर रहा हूँ:

% cabal unpack base 
Unpacking to base-3.0.3.2/ 
% cd base-3.0.3.2 
% cabal haddock 
cabal: Run the 'configure' command first. 
% cabal configure 
Resolving dependencies... 
Configuring base-3.0.3.2... 
cabal: At least the following dependencies are missing: 
base >=4.0 && <4.3, syb ==0.1.* 
% cd .. 
% 
% cabal unpack base-4.3.1.0 
Unpacking to base-4.3.1.0/ 
% cd base-4.3.1.0 
% cabal haddock 
cabal: Run the 'configure' command first. 
% cabal configure 
Resolving dependencies... 
Configuring base-4.3.1.0... 
configure: WARNING: unrecognized options: --with-compiler, --with-gcc 
checking for gcc... gcc 
checking whether the C compiler works... yes 
... 
checking for library containing iconv... -liconv 
checking for library containing locale_charset... none required 
configure: creating ./config.status 
config.status: error: cannot find input file: `base.buildinfo.in' 
% cd .. 

इसके अलावा, मैं, आधार-3.0.3.2 करने के लिए वापस नहीं कर सकते क्योंकि यह आधार संस्करण> = 4.0 < 4.3 होने पर निर्भर करता है (डब्ल्यूटीएफ?), और मैं बेस-4.2.0.2 बी/सी स्थापित नहीं कर सकता, यह बी/सी में विफल रहता है, यह base.buildinfo.in नहीं मिल सकता है।

% cabal --version 
cabal-install version 0.10.2 
using version 1.10.1.0 of the Cabal library 
% cabal info base 
* base    (library) 
    Synopsis:  Basic libraries (backwards-compatibility version) 
    Versions available: 3.0.3.1, 3.0.3.2, (4.0.0.0), (4.1.0.0), (4.2.0.0), 
         (4.2.0.1), (4.2.0.2), (4.3.0.0), (4.3.1.0) 
    Versions installed: (4.3.1.0) 
    Homepage:  [ Not specified ] 
    Bug reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/base 
    Description: This is a backwards-compatible version of the base package. 
        It depends on a later version of base, and was probably 
        supplied with your compiler when it was installed. 
    License:  BSD3 
    Maintainer: [email protected] 
    Source repo: http://darcs.haskell.org/packages/base3-compat 
    Dependencies: base >=4.0 && <4.3, syb ==0.1.* 
    Documentation: /usr/local/share/doc/ghc/html/libraries/base-4.3.1.0 
    Cached:  Yes 
    Modules: 
    ... 
% 

मैं क्या गलत कर रहा हूं और मैं इसे कैसे ठीक कर सकता हूं? -संकलन स्वयं base

उत्तर

5

कोई नहीं करने के लिए है। यह किसी विशेष ghc स्थापना से जुड़ा हुआ है, इसलिए यदि आप इसे बनाते हैं तो आप किसी अन्य बेस पैकेज का उपयोग नहीं कर सके। मुझे आश्चर्य नहीं है कि आधार पैकेज हैकेज से नहीं बना है; सबसे अधिक संभावना है कि कोई भी इसे बनाने की कोशिश नहीं करता है।

वैसे भी, मैं checking out the ghc source कोशिश करता हूं। base.buildinfo.in फ़ाइल base package repo में होगी। आप फ़ाइल को रेपो से अपने अनपॅक किए गए वितरण में कॉपी कर सकते हैं, लेकिन चेक-आउट स्रोत से बस बनाना बेहतर है।

बस दस्तावेज़ों को स्थापित करना सुनिश्चित करें, न कि पुस्तकालय।

संबंधित मुद्दे