Personal tools

Lambdabot/Building

From HaskellWiki

< Lambdabot(Difference between revisions)
Jump to: navigation, search
m (Remove reference to specific version number)
(+)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Unfortunately, the packages that lambdabot depends on in hackage do not support ghc-6.10.
+
Unfortunately, some of the packages that [[Lambdabot]] depends on in [[Hackage]] do not, as of 9 January 2009, support [[GHC]] 6.10.
Fortunately, the darcs repositories of most of these packages do support it.
+
Fortunately, the [[darcs]] repositories of most of these packages do support it.
  
= To compile lambdabot on ghc >=6.10, follow the following steps =
+
== To compile lambdabot on ghc >=6.10, follow the following steps ==
  
  Get the stuff from darcs repositories:
+
  Get the stuff from [[darcs]] repositories:
 
  <code>
 
  <code>
 
  darcs get http://code.haskell.org/HSP/haskell-src-exts
 
  darcs get http://code.haskell.org/HSP/haskell-src-exts
darcs get http://www.glyc.dc.uba.ar/daniel/repos/ghc-mtl
 
darcs get http://www.glyc.dc.uba.ar/daniel/repos/hint
 
 
  darcs get http://code.haskell.org/mubot
 
  darcs get http://code.haskell.org/mubot
 
  darcs get http://code.haskell.org/lambdabot
 
  darcs get http://code.haskell.org/lambdabot
  </code>
+
</code>
 
   
 
   
  Lets install haskell-src-exts from darcs (TODO: This may not actually be required, the one from hackage might be good enough):
+
  Lets install haskell-src-exts from darcs (TODO: This may not actually be required, the one from Hackage might be good enough):
 
  <code>
 
  <code>
 
  cd haskell-src-exts
 
  cd haskell-src-exts
Line 20: Line 18:
 
  </code>
 
  </code>
  
Install ghc-mtl:
+
Install mueval:
 
  <code>
 
  <code>
  cd ghc-mtl
+
  cd mubot/mueval
 
  cabal install
 
  cabal install
  cd ..
+
  cd ../..
 
  </code>
 
  </code>
  
The mueval package depends on hint prior to the "New configuration api" patch, so lets unpull that patch (and its dependents), and install hint:
+
Apply a patch to lambdabot and install it:
 
  <code>
 
  <code>
  cd hint
+
  cd lambdabot
  darcs unpull -p "New configuration api"
+
  wget http://www.haskell.org/wikiupload/e/ed/Lambdabot.patch -O -|patch -p1
 
  cabal install
 
  cabal install
 
  cd ..
 
  cd ..
 
  </code>
 
  </code>
  
  Install mueval:
+
  Edit your online.rc file at ~/.cabal/share/lambdabot-<i>version</i>/online.rc
 +
And run lambdabot via:
 
  <code>
 
  <code>
  cd mubot/mueval
+
  lambdabot -e "rc ~/.cabal/share/lambdabot-<i>version</i>/online.rc"
cabal install
+
cd ../..
+
 
  </code>
 
  </code>
  
Apply a patch to lambdabot and install it:
+
This may not be complete, please correct it if any more fixes are required, and as things are updated.
 +
 
 +
----
 +
 
 +
When I try to install mueval with GHC 7.2.1, I get a conflict:
 +
 
 
  <code>
 
  <code>
  cd lambdabot
+
  cannot configure show-0.4.1.1. It requires base <4
wget http://www.haskell.org/sitewiki/images/e/ed/Lambdabot.patch -O -|patch -p1
+
  mueval-0.8.1 requires base ==4.*
  cabal install
+
cd ..
+
 
  </code>
 
  </code>
  
Edit your online.rc file at ~/.cabal/share/lambdabot-<version>/online.rc
+
=( [[User:Drb226|Dan Burton]] 04:50, 24 October 2011 (UTC)
And run lambdabot via:
+
<code>
+
lambdabot -e "rc ~/.cabal/share/lambdabot-<version>/online.rc"
+
</code>
+
  
This may not be complete, please correct it if any more fixes are required, and as things are updated.
+
After many hacks, I was finally able to get lambdabot installed on 7.2.1. See the [http://tunes.org/~nef/logs/haskell/11.10.23 #haskell irc logs for 23 Oct 2011], around 22:00; I was rather verbose about stating what problems I ran into and what I did to solve them. [[User:Drb226|Dan Burton]] 21:18, 25 October 2011 (UTC)

Latest revision as of 21:18, 25 October 2011

Unfortunately, some of the packages that Lambdabot depends on in Hackage do not, as of 9 January 2009, support GHC 6.10. Fortunately, the darcs repositories of most of these packages do support it.

[edit] To compile lambdabot on ghc >=6.10, follow the following steps

Get the stuff from darcs repositories:

darcs get http://code.haskell.org/HSP/haskell-src-exts
darcs get http://code.haskell.org/mubot
darcs get http://code.haskell.org/lambdabot


Lets install haskell-src-exts from darcs (TODO: This may not actually be required, the one from Hackage might be good enough):

cd haskell-src-exts
cabal install
cd ..

Install mueval:


cd mubot/mueval
cabal install
cd ../..

Apply a patch to lambdabot and install it:


cd lambdabot
wget http://www.haskell.org/wikiupload/e/ed/Lambdabot.patch -O -|patch -p1
cabal install
cd ..

Edit your online.rc file at ~/.cabal/share/lambdabot-version/online.rc
And run lambdabot via:

lambdabot -e "rc ~/.cabal/share/lambdabot-version/online.rc"

This may not be complete, please correct it if any more fixes are required, and as things are updated.


When I try to install mueval with GHC 7.2.1, I get a conflict:


cannot configure show-0.4.1.1. It requires base <4
mueval-0.8.1 requires base ==4.*

=( Dan Burton 04:50, 24 October 2011 (UTC)

After many hacks, I was finally able to get lambdabot installed on 7.2.1. See the #haskell irc logs for 23 Oct 2011, around 22:00; I was rather verbose about stating what problems I ran into and what I did to solve them. Dan Burton 21:18, 25 October 2011 (UTC)