[Haskell-cafe] new Cabal user question -- installing to Haskell
Platform on Windows network drive?
ps.haskell at gmail.com
Tue Jul 27 17:43:59 EDT 2010
Thanks very much.
I began by downloading the latest gtk+ bundle from
The instructions there said to just copy the files to any dir and add its
...\gtk\bin dir to my PATH, which I did, so that worked okay without admin
Given that I need to use these tools on a network drive (H:), and not C:,
I have installed the Platform and gtk to:
H:\proc\tools\Haskell Platform and
(My H: is a hdd, not usb; and I am trying to do all this without admin
privs, which is working fine so far.)
The gtk tests: pkg-config --cflags gtk+-2.0 and gtk-demo run fine. Great!
**** Anyone: ****
So, I am trying to use cabal (for the first time), on a Windows XP
I need to keep everything on H:, and not use C:.
The only copy of cabal I have is what came with the Platform:
I placed that bin dir in my PATH and tried a "cabal update".
(Does is matter what my current dir is, when I use cabal?)
Config file path source is default config file.
Config file C:\Documents and Settings\pschmitz\Application Data\cabal\config
Writing default configuration to C:\Documents and
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
So, by default, cabal wants to put its config and updates on C:.
I looked at C:\Documents and Settings\pschmitz\Application Data\cabal\config
It has various references to C:, some commented out. E.g.:
remote-repo-cache: C:\Documents and Settings\pschmitz\Application
build-summary: C:\Documents and Settings\pschmitz\Application
-- prefix: "C:\\Documents and Settings\\pschmitz\\Application Data\\cabal"
I also reviewed the Cabal User's Guide, including section
18.104.22.168 Paths in the simple build system
which has a table with command line switches and pathname defaults for
--prefix (global installs with the --global flag)
--prefix (per-user installs with the --user flag)
Given that I want to keep everything on H:,
and assuming that I don't want to place the Cabal configs and updates in the
Platform tree (H:\proc\tools\Haskell Platform),
I would _like_ to create a dir such as
to hold everything that Cabal would normally put on C:.
*** I'm afraid I'm having trouble figuring out how to accomplish this.
Is there (hopefully) a combination of cabal command line switches that will
create a new config file over on H: for me,
or must I edit the config file directly and move it to H:?
And then, how do I invoke cabal each time, to get it to use its tree on H:
(and ignore C:) ?
Thanks (very much) in advance.
-- Peter Schmitz
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe