Difference between revisions of "Lambdabot/Building"

From HaskellWiki
Jump to navigation Jump to search
m (Use italics)
(fmt)
Line 1: Line 1:
Unfortunately, the packages that lambdabot depends on in hackage do not support ghc-6.10.
+
Unfortunately, the packages that [[Lambdabot]] depends on in [[Hackage]] do not, as of 8 December 2008, 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
Line 11: Line 11:
 
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 27: Line 27:
 
</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:
+
The mueval package depends on hint prior to the "New configuration api" patch, so let's unpull that patch (and its dependents), and install hint:
 
<code>
 
<code>
 
cd hint
 
cd hint
Line 35: Line 35:
 
</code>
 
</code>
   
Install mueval:
+
Install mueval:
 
<code>
 
<code>
 
cd mubot/mueval
 
cd mubot/mueval
Line 42: Line 42:
 
</code>
 
</code>
   
Apply a patch to lambdabot and install it:
+
Apply a patch to lambdabot and install it:
 
<code>
 
<code>
 
cd lambdabot
 
cd lambdabot
Line 56: Line 56:
 
</code>
 
</code>
   
This may not be complete, please correct it if any more fixes are required, and as things are updated.
+
This may not be complete, please correct it if any more fixes are required, and as things are updated.

Revision as of 18:59, 8 December 2008

Unfortunately, the packages that Lambdabot depends on in Hackage do not, as of 8 December 2008, support GHC 6.10. Fortunately, the darcs repositories of most of these packages do support it.

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://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/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 ghc-mtl:

cd ghc-mtl
cabal install
cd ..

The mueval package depends on hint prior to the "New configuration api" patch, so let's unpull that patch (and its dependents), and install hint:


cd hint
darcs unpull -p "New configuration api"
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/sitewiki/images/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.