Hi Axel, Axel Simon <axel.si...@in.tum.de> writes:
> Hi Andy, > > On Sep 15, 2010, at 4:30, Andy Stewart wrote: > >> Hi Axel, >> >> Have many people at #haskell ask me why 'gtk' package can't install >> successful. >> At last, i found they're not install gtk2hs-buildtools. >> >> Most people won't read gtk2hs manual, just do "cabal install gtk" and >> expect everything fine, and *many* people just think below error is >> fault of 'gtk' and give up to install: >> >> ------------------------------> error start <------------------------------ >> Resolving dependencies... >> Configuring gtk-0.11.2... >> setup: gtk2hsC2hs is required but it could not be found. >> setup: ./gtk.cabal has been changed, please re-configure. >> Resolving dependencies... >> Configuring gtk-0.11.2... >> setup: gtk2hsC2hs is required but it could not be found. >> cabal: Error: some packages failed to install: >> gtk-0.11.2 failed during the configure step. The exception was: >> ExitFailure 1 >> ------------------------------> error end <------------------------------ >> >> Currently, is two ways fix this problem: >> >> 1) Buid dummy module let 'gtk' depend, perhaps you don't like this ugly >> way. :) >> > > a) gtk2hs-buildtools would have to install a dummy library > a) then a program that builds on gtk would always install this library, which > is unnecessary > b) this doesn't work because e.g. gtk2hsC2hs is used before libraries, that > gtk depends on, are > checked for Ok, i see. > >> 2) We search gtk2hsC2hs in PATH, if not found, print below information: >> "Please install package 'gtk2hs-buildtools' first or make sure $HOME/.cabal >> in your PATH". >> >> Then user at least know he need install gtk2hs-buildtools first. >> > > We could do this, although this would duplicated parts of the Cabal code. > >> What do you think? > > Do you want to look into that? It probably boils down to overriding a hook > that manually executes > the functions to checks the existence of say gtk2hsC2hs. If that can't be > found you abort with a > better error message. Great, it's helpful. >I could perhaps do this, but not in the near future as I'm travelling for > another week. This fix not hurry, just suggestion before we release gtk-0.12.0 Enjoy travel! ;) -- Andy ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel