installing cabal 1.20 on linux mint debian edition (LMDE)

I'm trying to install cabal 1.20 like this: I installed ghc and ghc-prof from apt repository so I got the following: ii ghc 7.6.3-5 amd64 The Glasgow Haskell Compilation s ii ghc-prof 7.6.3-5 amd64 Profiling libraries for the Glasg Then I git cloned cabal and checked out Cabal-v1.20.0.0 Then I ran bootstrap.sh in cabal-install dir and I get the following error: Using gcc for C compiler. If this is not what you want, set CC. Using /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 instead. Checking installed packages for ghc-7.6.3... deepseq is already installed and the version is ok. time is already installed and the version is ok. Cabal is already installed and the version is ok. transformers is already installed and the version is ok. mtl is already installed and the version is ok. text is already installed and the version is ok. parsec is already installed and the version is ok. network is already installed and the version is ok. HTTP is already installed and the version is ok. zlib is already installed and the version is ok. random is already installed and the version is ok. stm is already installed and the version is ok. [...skipping many lines] package cabal-install-1.20.0.0 requires network-2.4.1.2 Building cabal-install-1.20.0.0... Preprocessing executable 'cabal' for cabal-install-1.20.0.0... <command line>: cannot satisfy -package-id network-2.4.1.2-fc99093587d92370c7febe034504fb40: network-2.4.1.2-fc99093587d92370c7febe034504fb40 is shadowed by package network-2.4.1.2-040cee5ece44014a8574cb3f87b1eec4 (use -v for more information) Error during cabal-install bootstrap: Building the cabal-install package failed. What am I doing wrong here? Thanks, Ovidiu

Not to judo past the original question, but would it solve your problem to
use an Ubuntu PPA[1]or the cabal binary distribution[2]?
Also were you trying to build it in a sandbox? You shouldn't be installing
things willy-nilly outside of a sandbox[3].
[1]: https://launchpad.net/~hvr/+archive/ghc
[2]: http://www.haskell.org/cabal/download.html
[3]https://github.com/bitemyapp/learnhaskell#cabal-guidelines
On Thu, May 29, 2014 at 1:01 AM, Ovidiu Deac
I'm trying to install cabal 1.20 like this:
I installed ghc and ghc-prof from apt repository so I got the following: ii ghc 7.6.3-5 amd64 The Glasgow Haskell Compilation s ii ghc-prof 7.6.3-5 amd64 Profiling libraries for the Glasg
Then I git cloned cabal and checked out Cabal-v1.20.0.0
Then I ran bootstrap.sh in cabal-install dir and I get the following error:
Using gcc for C compiler. If this is not what you want, set CC. Using /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 instead. Checking installed packages for ghc-7.6.3... deepseq is already installed and the version is ok. time is already installed and the version is ok. Cabal is already installed and the version is ok. transformers is already installed and the version is ok. mtl is already installed and the version is ok. text is already installed and the version is ok. parsec is already installed and the version is ok. network is already installed and the version is ok. HTTP is already installed and the version is ok. zlib is already installed and the version is ok. random is already installed and the version is ok. stm is already installed and the version is ok.
[...skipping many lines]
package cabal-install-1.20.0.0 requires network-2.4.1.2 Building cabal-install-1.20.0.0... Preprocessing executable 'cabal' for cabal-install-1.20.0.0... <command line>: cannot satisfy -package-id network-2.4.1.2-fc99093587d92370c7febe034504fb40: network-2.4.1.2-fc99093587d92370c7febe034504fb40 is shadowed by package network-2.4.1.2-040cee5ece44014a8574cb3f87b1eec4 (use -v for more information)
Error during cabal-install bootstrap: Building the cabal-install package failed.
What am I doing wrong here?
Thanks, Ovidiu
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

I'm trying to install a new version of cabal which supports sandboxes
(>=1.18). Note that the default version of cabal is 1.16.
Thanks for the pointers! I'll try installing from PPA in a few hours and
get back with an update
On Thu, May 29, 2014 at 9:22 AM, Christopher Allen
Not to judo past the original question, but would it solve your problem to use an Ubuntu PPA[1]or the cabal binary distribution[2]?
Also were you trying to build it in a sandbox? You shouldn't be installing things willy-nilly outside of a sandbox[3].
[1]: https://launchpad.net/~hvr/+archive/ghc [2]: http://www.haskell.org/cabal/download.html [3]https://github.com/bitemyapp/learnhaskell#cabal-guidelines
On Thu, May 29, 2014 at 1:01 AM, Ovidiu Deac
wrote: I'm trying to install cabal 1.20 like this:
I installed ghc and ghc-prof from apt repository so I got the following: ii ghc 7.6.3-5 amd64 The Glasgow Haskell Compilation s ii ghc-prof 7.6.3-5 amd64 Profiling libraries for the Glasg
Then I git cloned cabal and checked out Cabal-v1.20.0.0
Then I ran bootstrap.sh in cabal-install dir and I get the following error:
Using gcc for C compiler. If this is not what you want, set CC. Using /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 instead. Checking installed packages for ghc-7.6.3... deepseq is already installed and the version is ok. time is already installed and the version is ok. Cabal is already installed and the version is ok. transformers is already installed and the version is ok. mtl is already installed and the version is ok. text is already installed and the version is ok. parsec is already installed and the version is ok. network is already installed and the version is ok. HTTP is already installed and the version is ok. zlib is already installed and the version is ok. random is already installed and the version is ok. stm is already installed and the version is ok.
[...skipping many lines]
package cabal-install-1.20.0.0 requires network-2.4.1.2 Building cabal-install-1.20.0.0... Preprocessing executable 'cabal' for cabal-install-1.20.0.0... <command line>: cannot satisfy -package-id network-2.4.1.2-fc99093587d92370c7febe034504fb40: network-2.4.1.2-fc99093587d92370c7febe034504fb40 is shadowed by package network-2.4.1.2-040cee5ece44014a8574cb3f87b1eec4 (use -v for more information)
Error during cabal-install bootstrap: Building the cabal-install package failed.
What am I doing wrong here?
Thanks, Ovidiu
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

If I do cabal update && cabal install cabal
Apparently cabal is installed correctly
ovidiu@thinkpad ~ $ cabal update && cabal install cabal
Downloading the latest package list from hackage.haskell.org
Resolving dependencies...
Downloading Cabal-1.20.0.1..
[...skipping many lines...]
In-place registering Cabal-1.20.0.1...
Installing library in
/home/ovidiu/.cabal/lib/x86_64-linux-ghc-7.6.3/Cabal-1.20.0.1
Registering Cabal-1.20.0.1...
Installed Cabal-1.20.0.1
But I can't find ~/.cabal/bin anywhere
ovidiu@thinkpad ~ $ ls ~/.cabal
config lib logs packages share world
On Thu, May 29, 2014 at 1:55 PM, Vlatko Basic
Install (any) cabal package in Ubuntu (with synaptic), and than run
cabal update cabal install cabal
After that new cabal will be in your .cabal/bin directory (which should be on your path), and available to you only.
Cabal is just another package that can be installed. Current version is 1.20
vlatko
-------- Original Message -------- Subject: Re: [Haskell-beginners] installing cabal 1.20 on linux mint debian edition (LMDE) From: Ovidiu Deac
To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell Date: 29.05.2014 09:29 I'm trying to install a new version of cabal which supports sandboxes (>=1.18). Note that the default version of cabal is 1.16.
Thanks for the pointers! I'll try installing from PPA in a few hours and get back with an update
On Thu, May 29, 2014 at 9:22 AM, Christopher Allen
wrote: Not to judo past the original question, but would it solve your problem to use an Ubuntu PPA[1]or the cabal binary distribution[2]?
Also were you trying to build it in a sandbox? You shouldn't be installing things willy-nilly outside of a sandbox[3].
[1]: https://launchpad.net/~hvr/+archive/ghc https://launchpad.net/%7Ehvr/+archive/ghc [2]: http://www.haskell.org/cabal/download.html [3]https://github.com/bitemyapp/learnhaskell#cabal-guidelines
On Thu, May 29, 2014 at 1:01 AM, Ovidiu Deac
wrote: I'm trying to install cabal 1.20 like this:
I installed ghc and ghc-prof from apt repository so I got the following: ii ghc 7.6.3-5 amd64 The Glasgow Haskell Compilation s ii ghc-prof 7.6.3-5 amd64 Profiling libraries for the Glasg
Then I git cloned cabal and checked out Cabal-v1.20.0.0
Then I ran bootstrap.sh in cabal-install dir and I get the following error:
Using gcc for C compiler. If this is not what you want, set CC. Using /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 instead. Checking installed packages for ghc-7.6.3... deepseq is already installed and the version is ok. time is already installed and the version is ok. Cabal is already installed and the version is ok. transformers is already installed and the version is ok. mtl is already installed and the version is ok. text is already installed and the version is ok. parsec is already installed and the version is ok. network is already installed and the version is ok. HTTP is already installed and the version is ok. zlib is already installed and the version is ok. random is already installed and the version is ok. stm is already installed and the version is ok.
[...skipping many lines]
package cabal-install-1.20.0.0 requires network-2.4.1.2 Building cabal-install-1.20.0.0... Preprocessing executable 'cabal' for cabal-install-1.20.0.0... <command line>: cannot satisfy -package-id network-2.4.1.2-fc99093587d92370c7febe034504fb40: network-2.4.1.2-fc99093587d92370c7febe034504fb40 is shadowed by package network-2.4.1.2-040cee5ece44014a8574cb3f87b1eec4 (use -v for more information)
Error during cabal-install bootstrap: Building the cabal-install package failed.
What am I doing wrong here?
Thanks, Ovidiu
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing listBeginners@haskell.orghttp://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

...and I'm back to the error regarding the shadowing of network pakage
ovidiu@thinkpad ~ $ cabal install cabal-install
Resolving dependencies...
Downloading cabal-install-1.20.0.2...
Configuring cabal-install-1.20.0.2...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package HTTP-4000.2.8 requires network-2.4.1.2
package cabal-install-1.20.0.2 requires network-2.4.1.2
Building cabal-install-1.20.0.2...
Preprocessing executable 'cabal' for cabal-install-1.20.0.2...
<command line>: cannot satisfy -package-id
network-2.4.1.2-fc99093587d92370c7febe034504fb40:
network-2.4.1.2-fc99093587d92370c7febe034504fb40 is shadowed by package
network-2.4.1.2-040cee5ece44014a8574cb3f87b1eec4
(use -v for more information)
Failed to install cabal-install-1.20.0.2
cabal: Error: some packages failed to install:
cabal-install-1.20.0.2 failed during the building phase. The exception was:
ExitFailure 1
On Thu, May 29, 2014 at 9:49 PM, Peter Jones
Ovidiu Deac
writes: ovidiu@thinkpad ~ $ cabal update && cabal install cabal
That should be:
$ cabal install cabal-install
Cabal is a library, and cabal-install is the executable.
-- Peter Jones, Founder, Devalot.com Defending the honor of good code
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

What is the output of: ghc-pkg list | grep network ?

Eventually I fixed the problem by using the Trusty apt repository and then
let cabal update itself.
Thanks!
On Thu, May 29, 2014 at 11:06 PM, Dan Serban
What is the output of: ghc-pkg list | grep network ? _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (5)
-
Christopher Allen
-
Dan Serban
-
Ovidiu Deac
-
Peter Jones
-
Vlatko Basic