[Haskell-beginners] Question about ghc and cabal: finding packages
ch.gosch at googlemail.com
Thu Aug 19 08:16:23 EDT 2010
Thanks guys for the helpful comments!
I will try the "cabal configure" way tonight.
2010/8/19 Daniel Fischer <daniel.is.fischer at web.de>
> On Thursday 19 August 2010 13:19:26, Jonas Almström Duregård wrote:
> > Try simply
> > cabal configure
> > in the directory where Setup.lhs (and your .cabal file) is located.
> > /J
> Or, to configure, build and install in one go, just `cabal install' in that
> If you want to go the runhaskell Setup.[l]hs road, however, you have to
> pass the --user flag to runhaskell Setup.[l]hs configure if you need
> packages from your user db.
> Or you have to reinstall the cabal-installed packages globally (surprise:
> pass the --global flag to cabal install), perhaps set `user-install: False'
> in ~/.cabal/config if you want to have global installs by default.
> > On 19 August 2010 09:12, C Gosch <ch.gosch at googlemail.com> wrote:
> > > Hi everyone,
> > > I have installed ghc 6.12.3 and the Haskell platform; now, when I
> > > install packages from hackage using
> > > cabal install <package-name>,
> > > they get installed in ~/.cabal,
> > > which is fair enough.
> > > However, when I call a
> > > runhaskell Setup.lhs configure
> > > that used to work on a different computer with the same software
> > > setup, ghc (or is it cabal?) complains that it cannot find the
> > > packages I have just installed.
> > > Checking again revealed that they are indeed installed, just not in
> > > the ghc installation directory,
> > > but under ~/.cabal.
> > > How can I tell cabal and/or ghc where to look for libraries?
> > >
> > > Thanks, again, for any help!
> > > Christian
> > >
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners