[Haskell-beginners] Re: [Haskell-cafe] Unable to install packages

Tim Baumgartner baumgartner.tim at googlemail.com
Sat Nov 27 14:14:37 EST 2010


Hi Roland,

I installed Leksah on Ubuntu 10.10 recently using the instructions
found on http://rizwanbulbul.blogspot.com/2010/06/installing-leksah-gtk-gtk2hs-and-glade.html
It was quite straight forward for me.

Regards
Tim


2010/11/27 Roland Senn <rsx at bluewin.ch>:
>  I learned a little bit Haskell with Hugs on Windows and now I want to
> develop on Linux.
>
> I installed the Haskell Platform on Unbunto 10.10. There were no problems.
> Then I tried to install Leksah with
> sudo cabal install leksah --global
> It failed with:
> Resolving dependencies...
> /tmp/gtksourceview2-0.11.12661/gtksourceview2-0.11.1/Gtk2HsSetup.hs:25:0:
>     warning: #warning Setup.hs is guessing the version of Cabal. If
> compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version
> 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal'
> command)
> [1 of 2] Compiling Gtk2HsSetup      (
> /tmp/gtksourceview2-0.11.12661/gtksourceview2-0.11.1/Gtk2HsSetup.hs,
> /tmp/gtksourceview2-0.11.12661/gtksourceview2-0.11.1/dist/setup/Gtk2HsSetup.o
> )
> [2 of 2] Compiling Main             (
> /tmp/gtksourceview2-0.11.12661/gtksourceview2-0.11.1/Setup.hs,
> /tmp/gtksourceview2-0.11.12661/gtksourceview2-0.11.1/dist/setup/Main.o )
> Linking
> /tmp/gtksourceview2-0.11.12661/gtksourceview2-0.11.1/dist/setup/setup ...
> Configuring gtksourceview2-0.11.1...
> Preprocessing library gtksourceview2-0.11.1...
> Building gtksourceview2-0.11.1...
> [ 1 of 13] Compiling Graphics.UI.Gtk.SourceView.Signals (
> dist/build/Graphics/UI/Gtk/SourceView/Signals.hs,
> dist/build/Graphics/UI/Gtk/SourceView/Signals.o )
> Graphics/UI/Gtk/SourceView/Signals.chs:51:46:
>    Module `System.Glib.UTFString' does not export `maybePeekUTFString'
> cabal: Error: some packages failed to install:
> gtksourceview2-0.11.1 failed during the building phase. The exception was:
> ExitFailure 1
> leksah-0.8.0.8 depends on gtksourceview2-0.11.1 which failed to install.
>
> I searched the Internet on "gtksourceview2 maybePeekUTFString" and found a
> patch:
> http://www.mail-archive.com/gtk2hs-devel@lists.sourceforge.net/msg00971/gtk_0_11_2-needs-glib--__-0_11_2-for-maybepeekutfstring.dpatch
>
> As a newby with the Haskell tools, I searched the Internet on how to install
> a patch.
> I found dpm and I tried to install it with:
>
> sudo cabal install dpm --global
>
> It failed with:
> configure: error: in `/tmp/terminfo-0.3.1.31936/terminfo-0.3.1.3':
> configure: error: curses headers could not be found, so this package cannot
> be built
> See `config.log' for more details.
> cabal: Error: some packages failed to install:
> DPM-0.2.1 depends on terminfo-0.3.1.3 which failed to install.
> darcs-2.5 depends on terminfo-0.3.1.3 which failed to install.
> haskeline-0.6.3.2 depends on terminfo-0.3.1.3 which failed to install.
> terminfo-0.3.1.3 failed during the configure step. The exception was:
> ExitFailure 1
>
> So after installing Haskell Platform, I only found broken packages!
>
> What can I do to install Leksah?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Beginners mailing list