installing haskell on ubuntu using apt-get??

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

installing haskell on ubuntu using apt-get??

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
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: installing haskell on ubuntu using apt-get??

C K Kashyap
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 <[hidden email]> wrote:
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
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe



_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: installing haskell on ubuntu using apt-get??

Michael Snoyman
In reply to this post by Vasili I. Galchin
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 <[hidden email]> wrote:
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
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe



_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: installing haskell on ubuntu using apt-get??

Chris Wong-2
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 <[hidden email]> wrote:
> 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
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe