Hi Andy, Magicloud, On 27.05.2010, at 10:20, Andy Stewart wrote:
> Magicloud Magiclouds <magicloud.magiclo...@gmail.com> writes: > >> The gtk2hs-buildtools problem is resolved. So I could install gio >> now. Thanks. >> But still, I met another problem of gtk: >> Configuring gtk-0.11.0... >> setup: ./Graphics/UI/Gtk/General/IconTheme.chs: invalid argument >> cabal: Error: some packages failed to install: > I think it's a bug of of Gtk2HsSetup.hs that report by Macro. > When you local is not utf8, will got "invalid argument". Magicloud, as Andy said, there is a bug in that we read the source files in the current locale and not as UTF-8. If you set your locale to UTF-8, it should work. > Axel, below is Macro's patch, can you take a look? > The patch doesn't apply cleanly. Anyway, this should be fixed in all Gtk2HsSetup.hs files at once, otherwise this problem will become very confusing. Secondly, the trigger of the problem are your fancy bulletin characters in IconTheme.chs. The don't even render: http://haskell.org/gtk2hs/docs/gtk-docs-0.11.0/Graphics-UI-Gtk-General-IconTheme.html Could you replace them by *? If you have all the packages checked out, it would be great if you could fix the Gtk2HsSetup.hs files. Thanks, Axel >> >> On Thu, May 27, 2010 at 2:50 PM, Andy Stewart <lazycat.mana...@gmail.com >> > wrote: >>> Magicloud Magiclouds <magicloud.magiclo...@gmail.com> writes: >>> >>>> I think this problem related to the problem I submit just now. >>>> Since I cannot install gtk2hs-buildtools with cabal, I download the >>>> source and installed it. Then this step failed. >>> Can you use "ghc-pkg check" check your local packages? >>> Perhaps other package broken in your system. >>> >>> Cheers, >>> >>> -- Andy >>> >>>> >>>> On Thu, May 27, 2010 at 1:55 PM, Andy Stewart <lazycat.mana...@gmail.com >>>> > wrote: >>>>> Axel Simon <axel.si...@in.tum.de> writes: >>>>> >>>>>> On May 27, 2010, at 4:51, Magicloud Magiclouds wrote: >>>>>> >>>>>>> Hi, when installing gtk, I got this >>>>>>> Configuring gio-0.11.0... >>>>>>> setup: gtk2hsHookGenerator: shal.list: openFile: does not >>>>>>> exist (No >>>>>>> such file or directory) >>>>>>> What should I do? Thanks. >>>>>> >>>>>> Have you moved your .cabal directory around? Or your home >>>>>> directory? >>>>>> Or did you perhaps delete parts of your cabal directory? >>>>>> >>>>>> The file (should be marshal.list) is installed with gtk2hs- >>>>>> buildtools. >>>>>> The path to it is provided by cabal. >>>>> Axel, i think he has install old darcs gtk2hs-buildtools and >>>>> never update it >>>>> when he install gio from hackage. >>>>> >>>>> In old version of gtk2hs-buildtools, gtkmarshal.list is *hard >>>>> code* gtkmarshal.list, >>>>> when we change from gtkmarshal.list to marshal.list, old >>>>> gtk2hs-buildtools try to delete first three characters >>>>> (marshal.list >>>>> -> shal.list). >>>>> >>>>> So he need update gtk2hs-buildtools from hackage first. >>>>> >>>>> Cheers, >>>>> >>>>> -- Andy >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Gtk2hs-devel mailing list >>>>> Gtk2hs-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel >>>>> >>> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gtk2hs-devel mailing list > Gtk2hs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel ------------------------------------------------------------------------------ _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel