installing haskell on ubuntu using apt-get??

My config: runghc 7.4.1 3.2.0-61-generic #93-Ubuntu I installed Haskell using Ubuntu's "apt-get install" ======================================================== Please see results below ... (should I instead install Haskell from haskell.org??) vasili@vasili-VirtualBox:~/biolib$ cabal configure Resolving dependencies... Configuring bio-0.5.2... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package text-1.2.0.0 requires bytestring-0.10.4.0 package tagsoup-0.13.3 requires bytestring-0.10.4.0 package parsec-3.1.7 requires bytestring-0.10.4.0 package bio-0.5.2 requires bytestring-0.10.4.0 package binary-0.4.5 requires bytestring-0.10.4.0 package unix-2.5.1.0 requires bytestring-0.9.2.1 vasili@vasili-VirtualBox:~/biolib$

Hi Vasili ... did you install haskell platform? If not, I suggest that you
install haskell-platform using apt-get.
Regards,
Kashyap
On Wed, Nov 5, 2014 at 12:05 PM, Vasili I. Galchin
My config:
runghc 7.4.1
3.2.0-61-generic #93-Ubuntu
I installed Haskell using Ubuntu's "apt-get install"
========================================================
Please see results below ... (should I instead install Haskell from haskell.org??)
vasili@vasili-VirtualBox:~/biolib$ cabal configure Resolving dependencies... Configuring bio-0.5.2... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package text-1.2.0.0 requires bytestring-0.10.4.0 package tagsoup-0.13.3 requires bytestring-0.10.4.0 package parsec-3.1.7 requires bytestring-0.10.4.0 package bio-0.5.2 requires bytestring-0.10.4.0 package binary-0.4.5 requires bytestring-0.10.4.0 package unix-2.5.1.0 requires bytestring-0.9.2.1 vasili@vasili-VirtualBox:~/biolib$
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I'd recommend using Herbert's PPA for installing GHC so you get something
newer. bitemyapp has a good guide[1]. I'd also recommend following the
Stackage installation guide[2], which builds on top of bitemyapp's guide.
[1] https://github.com/bitemyapp/learnhaskell#getting-started
[2]
https://github.com/fpco/stackage/wiki/Preparing-your-system-to-use-Stackage
On Wed, Nov 5, 2014 at 8:35 AM, Vasili I. Galchin
My config:
runghc 7.4.1
3.2.0-61-generic #93-Ubuntu
I installed Haskell using Ubuntu's "apt-get install"
========================================================
Please see results below ... (should I instead install Haskell from haskell.org??)
vasili@vasili-VirtualBox:~/biolib$ cabal configure Resolving dependencies... Configuring bio-0.5.2... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package text-1.2.0.0 requires bytestring-0.10.4.0 package tagsoup-0.13.3 requires bytestring-0.10.4.0 package parsec-3.1.7 requires bytestring-0.10.4.0 package bio-0.5.2 requires bytestring-0.10.4.0 package binary-0.4.5 requires bytestring-0.10.4.0 package unix-2.5.1.0 requires bytestring-0.9.2.1 vasili@vasili-VirtualBox:~/biolib$
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi Vasili,
Your problem looks like Cabal hell [1]. The solution to that is to
clear the package database and start over, which should be as simple
as
rm -r ~/.ghc
As long as you haven't installed packages globally (sudo cabal
install) that should be enough.
On Wed, Nov 5, 2014 at 8:21 PM, Michael Snoyman
I'd recommend using Herbert's PPA for installing GHC so you get something newer. bitemyapp has a good guide[1]. I'd also recommend following the Stackage installation guide[2], which builds on top of bitemyapp's guide.
[1] https://github.com/bitemyapp/learnhaskell#getting-started [2] https://github.com/fpco/stackage/wiki/Preparing-your-system-to-use-Stackage
I second this. Haskell development moves quickly, so it's important to have (relatively) recent tools. Once you have Cabal 1.20 installed, I recommend reading up on package sandboxes too [2]. They can make these version conflicts easier to deal with in the future. Chris [1] http://cdsmith.wordpress.com/2011/01/17/the-butterfly-effect-in-cabal/ [2] http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html
participants (4)
-
C K Kashyap
-
Chris Wong
-
Michael Snoyman
-
Vasili I. Galchin