[Haskell-beginners] 'cabal install hdirect' can't find hdirect

Daniel Fischer daniel.is.fischer at web.de
Sun Jul 4 07:10:39 EDT 2010


On Sunday 04 July 2010 12:34:52, Stephen Tetley wrote:
> On 4 July 2010 11:28, Daniel Fischer <daniel.is.fischer at web.de> wrote:
> > Well, in case of emergency, there's always
> >
> > *download the .tar.gz from hackage via wget, browser, ...
> > * unpack the archive
> > $ cd hdirect/0.21.0
> > $ cabal install
>
> If you download the archive there is also the manual way:

Sure, but "cabal install" requires less typing. And it defaults to user-
installs, so you needn't pass --user to Setup configure. And with a proper 
config file, you needn't pass --enable-library-profiling to configure and 
you needn't run (Setup) haddock manually and cabal install automatically 
puts the created docs in the same place as the others.

On the whole, cabal install is much more convenient :)

>
> cd into the archive after untarring it...
>
> > runhaskell Setup.hs configure
> > runhaskell Setup.hs build
> > runhaskell Setup.hs install
>
> The last step may require sudo privileges depending on your set up.
> Also some archives have a Setup.lhs rather than Setup.hs file.



More information about the Beginners mailing list