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".
Axel, below is Macro's patch, can you take a look? ------------------------------> Macro patch start <------------------------------ Index: gtk-0.11.0/Gtk2HsSetup.hs =================================================================== --- gtk-0.11.0.orig/Gtk2HsSetup.hs 2010-05-26 14:49:49.000000000 -0300 +++ gtk-0.11.0/Gtk2HsSetup.hs 2010-05-26 14:51:13.000000000 -0300 @@ -455,7 +455,7 @@ -- existance of a .chs module may not depend on some CPP condition. extractDeps :: ModDep -> IO ModDep extractDeps m...@moddep { mdLocation = Nothing } = return md -extractDeps m...@moddep { mdLocation = Just f } = withFileContents f $ \con -> do +extractDeps m...@moddep { mdLocation = Just f } = withUTF8FileContents f $ \con -> do let findImports acc (('{':'#':xs):xxs) = case (dropWhile ((==) ' ') xs) of ('i':'m':'p':'o':'r':'t':' ':ys) -> case simpleParse (takeWhile ((/=) '#') ys) of ------------------------------> Macro patch end <------------------------------ Cheers, -- Andy > > 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