problems getting cabal-install to work on CentOS

Chris Dornan chris at chrisdornan.com
Mon Apr 12 20:09:39 EDT 2010


Hi,

 

I sent the message below out to ‘libraries’ and then ‘haskell-café’ before I
thought to try, or realised that there must be, a Cabal development list
(which I have now joined).

 

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 ‘ExitFailure 127’ when it
tries to configure the app with Cabal. Note that I can  manually configure,
build and install the app myself without any problem—I can even down load
the cabal tarbal, cd into the root directory and type ‘cabal install’ and it
will work (provided it doesn’t have to download and install any dependent
packages).

 

I don’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.

 

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!

 

Cheers,

 

Chris

 

 

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 ‘ExitFailure 127’ error.

 

I can download the package and run ‘cabal install’ 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.

 

For example, if I try ‘cabal install permutation --verbose=3’ it finishes
like this:

 

link: done

*** Deleting temp files:

Deleting: /tmp/ghc1324_0/ghc1324_0.lpp

*** Deleting temp dirs:

Deleting: /tmp/ghc1324_0

/tmp/permutation-0.4.132758/permutation-0.4.1/dist/setup/setup configure

--verbose=3 --ghc --prefix=/home/chris/.cabal --user --constraint=base

==3.0.3.2 --constraint=ghc-prim ==0.2.0.0

cabal: Error: some packages failed to install:

permutation-0.4.1 failed during the configure step. The exception was:

ExitFailure 127

 

I have tried the same exercise with GHC 6.10.4 with cabal-install 0.8.0 the
same results.

 

I have downloaded the Cabal sources to try and add some instrumentation to
find out what is going wrong but have yet to succeed.

 

Does anybody have any suggestions? Is there an easier way of getting
cabal-install working on CentOS?

 

Any help much appreciated!

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/cabal-devel/attachments/20100412/e8f1b452/attachment.html


More information about the cabal-devel mailing list