Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running 11.10 (amd64). I see there's this package:

http://packages.ubuntu.com/source/oneiric/haskell-hunit

However:

$ sudo apt-get install haskell-hunit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package haskell-hunit

How should I resolve this?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

That is a source package:

7.13 How do I install a source package?

Debian source packages can't actually be "installed", they are just unpacked in whatever directory you want to build the binary packages they produce.

Source packages are distributed on most of the same mirrors where you can obtain the binary packages. If you set up your APT's sources.list(5) to include the appropriate "deb-src" lines, you'll be able to easily download any source packages by running

 apt-get source foo

To help you in actually building the source package, Debian source package provide the so-called build-dependencies mechanism. This means that the source package maintainer keeps a list of other packages that are required to build their package. To see how this is useful, run

 apt-get build-dep foo

before building the source.

So you can't actually "install" it. However, there are binary packages built from it:

One of them should contain what you want.

share|improve this answer
add comment

I typically install only Haskell Platform and GHC from apt and then install everything else through Cabal. Haskell dependencies are a bit messy and many times require updating packages much sooner than Ubuntu's 6 month release cycle. Cabal install's everything into ~/.cabal/ which is nice because if things get screwed up, you can delete it and start over. I think most of the Haskell community works this way from what I've gathered on IRC.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.