mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
update README
This commit is contained in:
parent
fbd406eb03
commit
939c0558e6
69
README
69
README
@ -14,11 +14,15 @@
|
|||||||
|
|
||||||
Quick start:
|
Quick start:
|
||||||
|
|
||||||
Obtain the dependent libraries, then build with:
|
From hackage:
|
||||||
|
|
||||||
runhaskell Setup.lhs configure --user --prefix=$HOME
|
cabal update
|
||||||
runhaskell Setup.lhs build
|
cabal install xmonad xmonad-contrib
|
||||||
runhaskell Setup.lhs install --user
|
|
||||||
|
Alternatively install development snapshots (from darcs):
|
||||||
|
|
||||||
|
cabal install http://code.haskell.org/xmonad/xmonad.tar.gz \
|
||||||
|
http://code.haskell.org/XMonadContrib/xmc.tar.gz
|
||||||
|
|
||||||
For the full story, read on.
|
For the full story, read on.
|
||||||
|
|
||||||
@ -37,63 +41,26 @@ Building:
|
|||||||
You first need a Haskell compiler. Your distribution's package
|
You first need a Haskell compiler. Your distribution's package
|
||||||
system will have binaries of GHC (the Glasgow Haskell Compiler), the
|
system will have binaries of GHC (the Glasgow Haskell Compiler), the
|
||||||
compiler we use, so install that first. If your operating system's
|
compiler we use, so install that first. If your operating system's
|
||||||
package system doesn't provide a binary version of GHC, you can find
|
package system doesn't provide a binary version of GHC and the
|
||||||
them here:
|
cabal-install tool, you can find an installer for both here:
|
||||||
|
|
||||||
http://haskell.org/ghc
|
http://haskell.org/platform/
|
||||||
|
|
||||||
For example, in Debian you would install GHC with:
|
|
||||||
|
|
||||||
apt-get install ghc6
|
|
||||||
|
|
||||||
It shouldn't be necessary to compile GHC from source -- every common
|
It shouldn't be necessary to compile GHC from source -- every common
|
||||||
system has a pre-build binary version.
|
system has a pre-build binary version.
|
||||||
|
|
||||||
|
Alternatively you can install from hackage
|
||||||
|
|
||||||
|
http://haskell.org/ghc/
|
||||||
|
http://haskell.org/cabal/download.html
|
||||||
|
|
||||||
* X11 libraries:
|
* X11 libraries:
|
||||||
|
|
||||||
Since you're building an X application, you'll need the C X11
|
Since you're building an X application, you'll need the C X11
|
||||||
library headers. On many platforms, these come pre-installed. For
|
library headers. On many platforms, these come pre-installed. For
|
||||||
others, such as Debian, you can get them from your package manager:
|
others, such as Debian, you can get them from your package manager:
|
||||||
|
|
||||||
apt-get install libx11-dev
|
apt-get install libx11-dev libxinerama-dev libxext-dev
|
||||||
|
|
||||||
Typically you need: libXinerama libXext libX11
|
|
||||||
|
|
||||||
* Cabal
|
|
||||||
|
|
||||||
xmonad requires a recent version of Cabal, >= 1.2.0. If you're using
|
|
||||||
GHC 6.8, then it comes bundled with the right version. If you're
|
|
||||||
using GHC 6.6.x, you'll need to build and install Cabal from hackage
|
|
||||||
first:
|
|
||||||
|
|
||||||
http://hackage.haskell.org/package/Cabal
|
|
||||||
|
|
||||||
You can check which version you have with the command:
|
|
||||||
|
|
||||||
$ ghc-pkg list Cabal
|
|
||||||
Cabal-1.2.2.0
|
|
||||||
|
|
||||||
* Haskell libraries: mtl, unix, X11
|
|
||||||
|
|
||||||
Finally, you need the Haskell libraries xmonad depends on. Since
|
|
||||||
you've a working GHC installation now, most of these will be
|
|
||||||
provided. To check whether you've got a package run 'ghc-pkg list
|
|
||||||
some_package_name'. You will need the following packages:
|
|
||||||
|
|
||||||
mtl http://hackage.haskell.org/package/mtl
|
|
||||||
unix http://hackage.haskell.org/package/unix
|
|
||||||
X11 http://hackage.haskell.org/package/X11
|
|
||||||
|
|
||||||
* Build xmonad:
|
|
||||||
|
|
||||||
Once you've got all the dependencies in place (which should be
|
|
||||||
straightforward), build xmonad:
|
|
||||||
|
|
||||||
runhaskell Setup.lhs configure --user --prefix=$HOME
|
|
||||||
runhaskell Setup.lhs build
|
|
||||||
runhaskell Setup.lhs install --user
|
|
||||||
|
|
||||||
And you're done!
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -101,7 +68,7 @@ Running xmonad:
|
|||||||
|
|
||||||
Add:
|
Add:
|
||||||
|
|
||||||
$HOME/bin/xmonad
|
exec $HOME/.cabal/bin/xmonad
|
||||||
|
|
||||||
to the last line of your .xsession or .xinitrc file.
|
to the last line of your .xsession or .xinitrc file.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user