test driving cabal install... cabal install and normal install (runghc Setup) don't mix... two package.conf files...

After a little drama with zlib, I managed to get cabal-install installed. I then attempted to do cabal install HAppS-Server since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install. The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end. OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9.... However, this resulted in error thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2... Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data. I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design? ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1, I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised. Thomas.

I think you need to install HAppS-Data etc globally... I'm not sure why
locally installed (ie, only your user) packages wouldn't be picked up by runghc
Setup.hs'ing, but if they are install system wide it should definitely work.
I think it is cabal --global install foo
On Thu, 29 May 2008 18:11:04 -0700
"Thomas Hartman"
After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I see. I had done
sudo cabal install HAppS-Server
but this just installed with root ownership in my home directory.
I'm now trying with
sudo cabal install --global HAppS-Server
2008/5/29 Daniel Patterson
I think you need to install HAppS-Data etc globally... I'm not sure why locally installed (ie, only your user) packages wouldn't be picked up by runghc Setup.hs'ing, but if they are install system wide it should definitely work.
I think it is cabal --global install foo
On Thu, 29 May 2008 18:11:04 -0700 "Thomas Hartman"
wrote: After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

By the way, it just finally finished.
I still think it took way too long.
thomas.
2008/5/29 Thomas Hartman
I see. I had done
sudo cabal install HAppS-Server
but this just installed with root ownership in my home directory.
I'm now trying with
sudo cabal install --global HAppS-Server
2008/5/29 Daniel Patterson
: I think you need to install HAppS-Data etc globally... I'm not sure why locally installed (ie, only your user) packages wouldn't be picked up by runghc Setup.hs'ing, but if they are install system wide it should definitely work.
I think it is cabal --global install foo
On Thu, 29 May 2008 18:11:04 -0700 "Thomas Hartman"
wrote: After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

mistaske, that last comment should have gone on another thread.
2008/5/29 Thomas Hartman
By the way, it just finally finished.
I still think it took way too long.
thomas.
2008/5/29 Thomas Hartman
: I see. I had done
sudo cabal install HAppS-Server
but this just installed with root ownership in my home directory.
I'm now trying with
sudo cabal install --global HAppS-Server
2008/5/29 Daniel Patterson
: I think you need to install HAppS-Data etc globally... I'm not sure why locally installed (ie, only your user) packages wouldn't be picked up by runghc Setup.hs'ing, but if they are install system wide it should definitely work.
I think it is cabal --global install foo
On Thu, 29 May 2008 18:11:04 -0700 "Thomas Hartman"
wrote: After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Excerpts from Thomas Hartman's message of Thu May 29 18:11:04 -0700 2008:
After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>ru nghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas.
I'm having issues trying to get cabal-install (latest darcs) installed, as well. I'm seeing the message: Hackage/Types.hs:19:29: Module `Distribution.Version' does not export `Dependency' which was mentioned on this list earlier. Updating to the latest darcs Cabal doesn't do the trick, it seems: $ ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.3.10, Cabal-1.5.2, ... I grabbed that 1.3.10 as a tarball snapshot. The darcs cabal installs Cabal-1.5.2, and it seemed that the darcs cabal-install wanted >= 1.3.11 && < 1.5, so I've no idea what to do here :) --Philip Neustrom

On Thu, 2008-05-29 at 20:12 -0700, Philip Neustrom wrote:
I'm having issues trying to get cabal-install (latest darcs) installed, as well. I'm seeing the message:
Hackage/Types.hs:19:29: Module `Distribution.Version' does not export `Dependency'
which was mentioned on this list earlier. Updating to the latest darcs Cabal doesn't do the trick, it seems:
$ ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.3.10, Cabal-1.5.2, ...
I grabbed that 1.3.10 as a tarball snapshot.
If you used the tarball of Cabal then you'd want the corresponding tarball of cabal-install that was released at the same time. Otherwise the darcs version of one requires the darcs version of the other.
The darcs cabal installs Cabal-1.5.2, and it seemed that the darcs cabal-install wanted >= 1.3.11 && < 1.5, so I've no idea what to do here :)
I'll be making the 1.4 release from this branch: http://darcs.haskell.org/cabal-branches/cabal-1.4/ which is currently at version 1.3.11 since we've not hit 1.4 yet. Duncan

On Thu, May 29, 2008 at 06:11:04PM -0700, Thomas Hartman wrote:
After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
'cabal install' installs packages to your user database by default. However, 'Setup configure' only uses packages from the global database unless the --user flag is passed.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
Yep, this is by design. The first is a global database that will require root access to modify. The second is your user database which you can modify without root access.
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas.
I tried building HAppS-server the other day, and had a similar experience. It seems that HAppS uses some incredibly elaborate TH/typeclass hacks that take gobs of resources to compile -- my box actually ran out of memory attempting to build it. Cheers, Spencer Janssen

I think the reason it took longer to build HAppS-Server is that
previously, when I was installing the MyProject example from happs.org
I was using searchpath.
I guess searchpath doesn't compile every single haskell module,
whereas runghc Setup build and cabal install does.
2008/5/29 Spencer Janssen
On Thu, May 29, 2008 at 06:11:04PM -0700, Thomas Hartman wrote:
After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
'cabal install' installs packages to your user database by default. However, 'Setup configure' only uses packages from the global database unless the --user flag is passed.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
Yep, this is by design. The first is a global database that will require root access to modify. The second is your user database which you can modify without root access.
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas.
I tried building HAppS-server the other day, and had a similar experience. It seems that HAppS uses some incredibly elaborate TH/typeclass hacks that take gobs of resources to compile -- my box actually ran out of memory attempting to build it.
Cheers, Spencer Janssen _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
Daniel Patterson
-
Duncan Coutts
-
Philip Neustrom
-
Spencer Janssen
-
Thomas Hartman