Sorry for ressurecting the thread, my I'm having the same problem here.<br><br>Deleting the .cabal/config file shows only temporary results, and -v3 isn't helping:<br><br>~/sources/haskell-platform-2009.2.0.2 % cabal update<br>
Config file /home/fernando/.cabal/config not found.<br>Writing default configuration to /home/fernando/.cabal/config<br>Downloading the latest package list from <a href="http://hackage.haskell.org">hackage.haskell.org</a><br>
~/sources/haskell-platform-2009.2.0.2 % cabal update<br>cabal: :: openFile: does not exist (No such file or directory)<br>~/sources/haskell-platform-2009.2.0.2 % cabal update -v3<br>cabal: ?: openFile: does not exist (No such file or directory)<br>
<br>I'm on Ubuntu 9.04 x64. ghc 6.10.4<br><br>This is the output of the mentioned describe-parsec command, but I don't know what to do with it:<br><br>~/sources/haskell-platform-2009.2.0.2 % ghc-pkg describe parsec-2.1.0.1<br>
name: parsec<br>version: 2.1.0.1<br>license: BSD3<br>copyright:<br>maintainer: Daan Leijen <<a href="mailto:daan@cs.uu.nl">daan@cs.uu.nl</a>><br>stability:<br>homepage: <a href="http://www.cs.uu.nl/~daan/parsec.html">http://www.cs.uu.nl/~daan/parsec.html</a><br>
package-url:<br>description: Parsec is designed from scratch as an industrial-strength parser<br> library. It is simple, safe, well documented (on the package<br> homepage), has extensive libraries and good error messages,<br>
and is also fast.<br>category: Parsing<br>author: Daan Leijen <<a href="mailto:daan@cs.uu.nl">daan@cs.uu.nl</a>><br>exposed: True<br>exposed-modules: Text.ParserCombinators.Parsec.Language<br> Text.ParserCombinators.Parsec.Token<br>
Text.ParserCombinators.Parsec.Error<br> Text.ParserCombinators.Parsec.Char<br> Text.ParserCombinators.Parsec.Combinator<br> Text.ParserCombinators.Parsec.Expr<br>
Text.ParserCombinators.Parsec.Perm<br> Text.ParserCombinators.Parsec.Pos<br> Text.ParserCombinators.Parsec.Prim Text.ParserCombinators.Parsec<br>hidden-modules:<br>import-dirs: /usr/local/lib/parsec-2.1.0.1/ghc-6.10.4<br>
library-dirs: /usr/local/lib/parsec-2.1.0.1/ghc-6.10.4<br>hs-libraries: HSparsec-2.1.0.1<br>extra-libraries:<br>extra-ghci-libraries:<br>include-dirs:<br>includes:<br>depends: base-4.1.0.0<br>hugs-options:<br>cc-options:<br>
ld-options:<br>framework-dirs:<br>frameworks:<br>haddock-interfaces: /usr/local/share/doc/parsec-2.1.0.1/html/parsec.haddock<br>haddock-html: /usr/local/share/doc/parsec-2.1.0.1/html<br><br><br clear="all">Fernando Henrique Sanches<br>
<br><br><div class="gmail_quote">On Thu, Jul 30, 2009 at 7:52 AM, Mike Pentney <span dir="ltr"><<a href="mailto:mike.pentney@physics.org">mike.pentney@physics.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I had a similar problem (on Ubuntu Incontinent Ibex). I'd previously installed ghc 6.8.x, and (among other things) cabal. When I decided to upgrade to the Haskell platform, I deleted ghc but not my original cabal installation.<br>
<br>
When I got the error, I deleted my (old) copy of<br>
<br>
~/.cabal/config<br>
<br>
and it seemed to fix the problem. I'd assumed something in the config file was pointing to a file or directory that had been removed when I uninstalled ghc 6.8.x...<br>
<br>
HTH<br>
<br>
Mike.<br>
<br>
<br>
Job Vranish wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
lol, yep you're right. I'd assumed the haskell platform shipped with the latest parsec, when in fact it does not :) my bad...<br>
<br>
However, I fixed the cabal issue by installing ghc 6.10.3 and rebuilding the haskell platform. Apparently there is either a compiler issue or incompatibility with 6.10.4 that causes the cabal: : openFile: does not exist (No such file or directory) error.<br>
<br>
- Job<br>
<br></div><div class="im">
On Tue, Jul 28, 2009 at 10:44 AM, Thomas Hartman <<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a> <mailto:<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a>>> wrote:<br>
<br>
did you verify parsec-2.1.0.1 exports<br>
<br>
Text.Parsec.Language<br>
<br>
?<br>
<br>
This might be a parsec 2 versus parsec 3 issue<br>
<br>
ghc-pkg describe parsec-2.1.0.1<br>
<br>
should tell you the answer to that.<br>
<br>
<br>
<br></div>
2009/7/27 Job Vranish <<a href="mailto:jvranish@gmail.com" target="_blank">jvranish@gmail.com</a> <mailto:<a href="mailto:jvranish@gmail.com" target="_blank">jvranish@gmail.com</a>>>:<div><div></div><div class="h5">
<br>
> I tried updating to ghc-6.10.4 and have exactly the same error.<br>
> Also ghc doesn't seem to be able to find any of the haskell platform<br>
> packages, even though it ghc-pkg finds them just fine.<br>
><br>
> For example (trimmed for brevity):<br>
><br>
> ghc-pkg list<br>
> /usr/local/lib/ghc-6.10.4/./package.conf:<br>
> Cabal-1.6.0.3,<br>
> ...<br>
> parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1,<br>
> ...<br>
><br>
> ghci -v readModel.hs<br>
> GHCi, version 6.10.4: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a> :? for help<br>
> Glasgow Haskell Compiler, Version 6.10.4, for Haskell 98, stage 2<br>
booted by<br>
> GHC version 6.8.2<br>
> Using package config file: /usr/local/lib/ghc-6.10.4/./package.conf<br>
> ...<br>
><br>
> readModel.hs:9:7:<br>
> Could not find module `Text.Parsec.Language':<br>
> locations searched:<br>
> Text/Parsec/Language.hs<br>
> Text/Parsec/Language.lhs<br>
> Failed, modules loaded: none.<br>
> ...<br>
><br>
><br>
> ghc-pkg finds parsec, but ghci can't find it.<br>
><br>
> And if I do a cabal -v3 update I get a:<br>
> cabal: 3: openFile: does not exist (No such file or directory)<br>
><br>
> Anybody figured it out?<br>
><br>
> - Job Vranish<br>
><br>
> On Fri, Jul 17, 2009 at 11:17 AM, Thomas Hartman<br></div></div><div class="im">
<<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a> <mailto:<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a>>> wrote:<br>
>><br>
>> cabal -v3 update<br>
>><br>
>> will give you a more verbose version of what is going wrong.<br>
>><br>
>> cabal --help<br>
>><br>
>> regrettably, cabal --help doesn't tell you this but there is always<br>
>> the man page I suppose.<br>
>><br>
>> 2009/7/16 Tony Hannan <<a href="mailto:tonyhannan2@gmail.com" target="_blank">tonyhannan2@gmail.com</a><br></div>
<mailto:<a href="mailto:tonyhannan2@gmail.com" target="_blank">tonyhannan2@gmail.com</a>>>:<div class="im"><br>
>> > Hello,<br>
>> ><br>
>> > I'm on Ubuntu 8.10.<br>
>> > I installed ghc 6.10.4 (from binary package:<br>
>> > ghc-6.10.4-i386-unknown-linux-n.tar.bz2).<br>
>> > I installed haskell-platform-2009.2.0.1 (from source package:<br>
>> > haskell-platform-2009.2.0.1.tar.gz). It contains<br>
cabal-install-0.6.2.<br>
>> ><br>
>> > Then when I run "cabal update", I get the following error:<br>
>> > cabal: : openFile: does not exist (No such file or directory)<br>
>> ><br>
>> > Any ideas?<br>
>> ><br>
>> > Thanks,<br>
>> > Tony<br>
>> ><br>
>> > _______________________________________________<br>
>> > Libraries mailing list<br></div>
>> > <a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a> <mailto:<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a>><div class="im"><br>
>> > <a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
>> ><br>
>> ><br>
>> _______________________________________________<br>
>> Haskell-Cafe mailing list<br></div>
>> <a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a> <mailto:<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a>><div class="im"><br>
>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br></div>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a> <mailto:<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a>><div class="im"><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></blockquote><div><div></div><div class="h5">
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>