[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get install and cabal install



[Moving this to d-haskell, where it is more appropriate.]

Dear Semen,

Am Donnerstag, den 30.08.2012, 11:46 +0100 schrieb Semen Trygubenko:
> Most of the haskell packages that I required are now
> packaged for Ubuntu 12.04 and I was using apt to get
> them. However, some packages were not packaged so I
> installed them on top using cabal.
> 
> Is there a document that describes the interaction of
> packages available through cabal and packages available
> through apt?

Unfortunately, not. Personally, I managed to get by by using "cabal
install --dry-run", see what packages it installed and, if they are
available from Debian (resp. Ubuntu), I apt-get install them first.

> I have ran into a situation where I need to get the latest
> package because it contains a bug fix, and I am unable to
> produce a combination of apt and cabal installations that
> works.
> 
> Depending on what combination of cabal and apt
> installations I specify I am either able to install
> happstack-server 7.0.4 or I run into the following error:
> 
> 
> Loading package text-0.11.1.13 ... 
> 
> GHCi runtime linker: fatal error: I found a duplicate definition for symbol
>    _hs_text_decode_utf8
> whilst processing object file
>    /usr/lib/haskell-packages/ghc/lib/text-0.11.1.13/ghc-7.4.1/HStext-0.11.1.13.o
> This could be caused by:
>    * Loading two different object files which export the same symbol
>    * Specifying the same object file twice on the GHCi command line
>    * An incorrect `package.conf' entry, causing some object to be
>      loaded twice.
> GHCi cannot safely continue in this situation.  Exiting now.  Sorry.
> 
> cabal: Error: some packages failed to install:
> happstack-server-7.0.4 failed during the building phase. The exception was:
> ExitFailure 1
> 
> 
> Could you pleas ehelp?

Hmm, I have not seen this before. When you use cabal to install
additional libraries, do you install them system-wide or only in your
user directory (which is the default). The former is likely to break.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: