From c5568e76f18ba6e3d9ed9f555dbcbbf53c3915bf Mon Sep 17 00:00:00 2001 From: ijones <ijones@syntaxpolice.org> Date: Sat, 16 Jul 2005 23:40:11 +0000 Subject: [PATCH] updated README with suggestions from simon and some clarification --- README | 47 ++++++++++++++++++++++++++++++++--------------- TODO | 5 +++-- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/README b/README index 2c9a3e29df..3963302ff2 100644 --- a/README +++ b/README @@ -1,12 +1,18 @@ Cabal home page: http://www.haskell.org/cabal +WARNING If you already have Cabal installed, including GHC 6.4 users, +read "Working with older versions of Cabal" for information first! If +you do this out of order, stuff might get screwy. If stuff gets +screwy, post to libraries@haskell.org for help. -= Quirky things about the build system =- -* "make install" as root, then try "ghci -package Cabal" to test it. - If you get an error about multiple versions of Cabal, read the section - below "Working with older versions of Cabal" +* If you don't already have Cabal installed: "make install" as root, +then try "ghci -package Cabal" to + test it. If you get an error about multiple versions of Cabal, read + the section below "Working with older versions of Cabal" You were + supposed to read this first. * GNUmakefile is the one you're probably interested in. If you see Makefile, it is probably from the fptools build tree, and it won't @@ -26,9 +32,16 @@ http://www.haskell.org/cabal This is the recommended method of installing Cabal. -If you have an older version of Cabal installed, in order to use the -new one after installation you may have to specify which version you -want when you run ghci. For instance: +If you have an older version of Cabal installed, you probably just +want to remove it: + + $ ghc-pkg unregister Cabal + + +If you don't want to remove it, and want both the old and new versions +installed, that's fine... In order to use the new one after +installation you may have to specify which version you want when you +run ghci. For instance: $ ghci -package Cabal ... @@ -37,18 +50,22 @@ want when you run ghci. For instance: ... (OK) -If you want to avoid this situation, you can remove the older version -with: +* Installing as a user (no root or administer access) + +If you have cabal installed already, you can this command to remove +it: + + $ ghc-pkg unregister Cabal --user + +If: - $ ghc-pkg unregister Cabal-1.0 +1) Cabal is installed in the global package file (use ghc-pkg -l to see) -or +2) You don't have root access - $ ghc-pkg unregister Cabal-1.0 --user +3) You need to install a newer version of Cabal in your user directory, -If you don't have root access, and you need to install a newer version -of Cabal in your user directory, then this formula may help to hide -the global version: +then this formula may help to hide the global version: $ ghc-pkg describe Cabal-1.0 | ghc-pkg --user register - $ ghc-pkg --user hide Cabal-1.0 @@ -87,7 +104,7 @@ Cabal Coders: - Martin Sjögren - Malcolm Wallace (via hmake) -Cabal proposal: +Cabal spec: - Isaac Jones - Simon Marlow - Ross Patterson diff --git a/TODO b/TODO index ca3ad92fad..e157addb0c 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,9 @@ ------------------------------------------------------------ -= 1.2 =- -* Move Distribution and everything into a subdirectory, so we can - build the Setup file with the normal invocation of cabal. +* MOVED FOR DARCS BUT NOT CVS. Move Distribution and everything + into a subdirectory, so we can build the Setup file with the normal + invocation of cabal. * Clean up readme according to Simon's suggestions - to install globally / with root access: should "just work" -- GitLab