
thanks for replying everyone. is there a way to change the location of registry in a global installation?
________________________________ From: Brandon Allbery
To: Imam Toufique Cc: "xmonad@haskell.org" Sent: Wednesday, April 4, 2012 5:44 PM Subject: Re: [xmonad] how to install xmonad for group of users. On Wed, Apr 4, 2012 at 20:15, Imam Toufique
wrote: I have been trying to install xmonad (using cabal) for the past week for a group of users and having some issues with it. When I try to install it for myself it works just fine, but I when I try install it for a group of users, it gives me errors that some packages/modules are missing. I used the following cabal command:
cabal install --prefix=$PREFIX --build-log=/tmp/xmonad.log.3 xmonad (where my prefix is /net/tools/xmonad/0.10
There are two aspects to use of cabal-install: install location and registry information. Changing --prefix does not change the registry used; if you want to do a global install, you need to add the --global option so that the package is registered in the global database instead of the local one. (Note that --global will also change the default install location to the one ghc itself is installed in, which is /usr/local for the official Haskell Platform packages and /usr for most Linux distribution packages.)
-- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms