cabal install c2hs problem

Hi all, This looks like a cabal bug and the folks on the c2hs list haven't responded, so hopefully this is the right place to ask. I ran "cabal install c2hs", which seemed to conclude succesfully. However, then running "cabal list c2hs" shows c2hs as "Not installed". I have observed this behavior on both linux and windows. On linux, despite the fact that cabal reports c2hs is not installed, packages which depend on it install fine. On windows xp, in what may or may not be a related error, cabal installing packages which depend on c2hs causes the error: "c2hs.exe: does not exist" I believe I am running the latest version of cabal on both linux and windows. Thanks in advance for your help. --Chris Casinghino

On Sun, Jan 3, 2010 at 11:14 AM, Chris Casinghino
Hi all,
This looks like a cabal bug and the folks on the c2hs list haven't responded, so hopefully this is the right place to ask.
I ran "cabal install c2hs", which seemed to conclude succesfully. However, then running "cabal list c2hs" shows c2hs as "Not installed". I have observed this behavior on both linux and windows.
On linux, despite the fact that cabal reports c2hs is not installed, packages which depend on it install fine.
On windows xp, in what may or may not be a related error, cabal installing packages which depend on c2hs causes the error:
"c2hs.exe: does not exist"
I believe I am running the latest version of cabal on both linux and windows.
Hi Chris, As far as I know, cabal is unable to track which executables we have installed, so any package which is just an executable will always show up as uninstalled. It sounds like your problem on windows is that cabal-install is installing executables into a directory which is not in your path. Antoine

Hi Antoine,
It sounds like your problem on windows is that cabal-install is installing executables into a directory which is not in your path.
Thanks for the prompt reply. c2hs.exe is definitely on my path. However, your comment prompted me to try running it manually, and I discovered c2hs itself is what is giving the error. So, it doesn't seem to be a cabal problem. Thanks for your help. --Chris Casinghino
participants (2)
-
Antoine Latter
-
Chris Casinghino