<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I sent the message below out to &#8216;libraries&#8217; and then &#8216;haskell-café&#8217; before I thought to try, or realised that there must be, a Cabal development list (which I have now joined).<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Basically I am trying to get the latest cabal-install to work with GHC-6.12.1 on CentOS 5 and it is giving me an &#8216;ExitFailure 127&#8217; when it tries to configure the app with Cabal. Note that I can  manually configure, build and install the app myself without any problem&#8212;I can even down load the cabal tarbal, cd into the root directory and type &#8216;cabal install&#8217; and it will work (provided it doesn&#8217;t have to download and install any dependent packages).<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I don&#8217;t know what is going wrong but, unless somebody knows what is failing, to make progress it looks as if I need to add some instrumentation around the code that is generating the error.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Can anybody point me in the right direction? If somebody has encountered this before, or knows what is likely to be going on, or of Cabal debug infrastructure I can call on, or the part of the source code that I can instrument, I would be very grateful!<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Cheers,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Chris<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I am trying to install cabal-install 0.8.2 with GHC 6.12.1 on a CentOS 5.2 system and am running up against a &#8216;ExitFailure 127&#8217; error.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I can download the package and run &#8216;cabal install&#8217; inside the package directory and all will be fine, but if I let cabal download and install the package cabal runs into problems as soon as it tries to configure.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>For example, if I try &#8216;cabal install permutation --verbose=3&#8217; it finishes like this:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:36.0pt'>link: done<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>*** Deleting temp files:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Deleting: /tmp/ghc1324_0/ghc1324_0.lpp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>*** Deleting temp dirs:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Deleting: /tmp/ghc1324_0<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>/tmp/permutation-0.4.132758/permutation-0.4.1/dist/setup/setup configure<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>--verbose=3 --ghc --prefix=/home/chris/.cabal --user --constraint=base<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>==3.0.3.2 --constraint=ghc-prim ==0.2.0.0<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>cabal: Error: some packages failed to install:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>permutation-0.4.1 failed during the configure step. The exception was:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>ExitFailure 127<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I have tried the same exercise with GHC 6.10.4 with cabal-install 0.8.0 the same results.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I have downloaded the Cabal sources to try and add some instrumentation to find out what is going wrong but have yet to succeed.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Does anybody have any suggestions? Is there an easier way of getting cabal-install working on CentOS?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Any help much appreciated!<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>