Personal tools

WxHaskell/Linux

From HaskellWiki

< WxHaskell(Difference between revisions)
Jump to: navigation, search
m (WxHaskell/Building on Linux moved to WxHaskell/Linux)
m
Line 46: Line 46:
 
<code>ACCEPT_KEYWORDS="~x86" emerge wxhaskell</code>
 
<code>ACCEPT_KEYWORDS="~x86" emerge wxhaskell</code>
   
(users of other arches should use their arch keywrods as appropriate)
+
(users of other arches should use their arch keywords as appropriate)
   
 
==== Fedora Core 6 ====
 
==== Fedora Core 6 ====

Revision as of 20:18, 16 September 2008

This page records some user experiences building wxHaskell on Linux. It should be cleaned up!


Contents

1 Sources

Built wxGTK-2.6.4 from sources with the configuration:

/usr/local/src/wxGTK-2.6.4/mybuild$ ../configure --enable-sound --enable-unicode

Add /usr/local/lib to your /etc/ld.so.conf before running sudo ldconfig after installing wxGTK.

Build wxHaskell from the darcs repository, configured with ./configure --enable-split-objs -hcprof, and follow the usual installation documentation from here on. The --enable-split-objs and -hcprof options are not mandatory, but they are nice to have

Note 2008-02-20: there was a bug that made --with-opengl necessary on some systems (depending on how wxWidgets was built), but it has been fixed

For more detailed information, see Installing wxWidgets 2.6.3 on Motif, Installing wxWidgets 2.6 on GTK+, or Installing wxWidgets 2.6.4 on X11.

2 Debian and Ubuntu

2.1 Ghc 6.6 version

For Debian Linux systems:

  1. get wxWidgets 2.6
    • aptitude install libwxgtk2.6-dev
  2. obtain the wxhaskell-bin-debian-gtk2.6.3-ghc6.6-0.10.3.deb package from sourceforge
    • Install it with dpkg -i

You may need to add /usr/local/lib to your library search path. You can do that by making a file called /etc/ld.so.conf.d/usr_local.conf containing:

/usr/local/lib

after adding the file, run ldconfig.

2.2 Ghc 6.8 version
  1. get wxWidgets 2.6
    • aptitude install libwxgtk2.6-dev
  2. get ghc
    • apt-get --target-release=unstable install ghc6
  3. obtain the wxhaskell-bin-gtk2.6.3-ghc6.8.2-0.10.3.deb package from sourceforge
    • Install it with dpkg -i

3 Gentoo

wxHaskell is available in portage for x86, amd64, sparc and ppc

ACCEPT_KEYWORDS="~x86" emerge wxhaskell

(users of other arches should use their arch keywords as appropriate)

4 Fedora Core 6

There is no wxHaskell package to go with the ghc-6.6 packages. You will have to compile it yourself. This a simple matter of:

  • Installing wxGTK:
    • yum install wxGTK-devel
  • Getting the sources:
  • Configuring, building and installing:
    • configure && make && make install && make wx && make wx-install