I got around this problem by downgrading to 6.10.3 (I think I rebuilt cabal as well)<br><br>I&#39;m not sure if the problem is with cabal, GHC, or some 64bit ubuntu library. (probably a combination of ghc+64bit ubuntu)<br>
<br>Does anybody have ghc 6.10.4 working on 64bit Ubuntu?<br><br>- Job<br><br><div class="gmail_quote">On Mon, Aug 31, 2009 at 2:43 PM, Fernando Henrique Sanches <span dir="ltr">&lt;<a href="mailto:fernandohsanches@gmail.com">fernandohsanches@gmail.com</a>&gt;</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;">Sorry for ressurecting the thread, my I&#39;m having the same problem here.<br><br>Deleting the .cabal/config file shows only temporary results, and -v3 isn&#39;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" target="_blank">hackage.haskell.org</a><br>

~/sources/haskell-platform-2009.2.0.2 % cabal update<div class="im"><br>cabal: :: openFile: does not exist (No such file or directory)<br></div>~/sources/haskell-platform-2009.2.0.2 % cabal update -v3<div class="im"><br>
cabal: ?: openFile: does not exist (No such file or directory)<br>
<br></div>I&#39;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&#39;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 &lt;<a href="mailto:daan@cs.uu.nl" target="_blank">daan@cs.uu.nl</a>&gt;<br>stability:<br>homepage: <a href="http://www.cs.uu.nl/%7Edaan/parsec.html" target="_blank">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 &lt;<a href="mailto:daan@cs.uu.nl" target="_blank">daan@cs.uu.nl</a>&gt;<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><font color="#888888"><br><br clear="all">
Fernando Henrique Sanches</font><div><div></div><div class="h5"><br>

<br><br><div class="gmail_quote">On Thu, Jul 30, 2009 at 7:52 AM, Mike Pentney <span dir="ltr">&lt;<a href="mailto:mike.pentney@physics.org" target="_blank">mike.pentney@physics.org</a>&gt;</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&#39;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&#39;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>
lol, yep you&#39;re right. I&#39;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>
On Tue, Jul 28, 2009 at 10:44 AM, Thomas Hartman &lt;<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a> &lt;mailto:<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a>&gt;&gt; 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 &lt;<a href="mailto:jvranish@gmail.com" target="_blank">jvranish@gmail.com</a> &lt;mailto:<a href="mailto:jvranish@gmail.com" target="_blank">jvranish@gmail.com</a>&gt;&gt;:<div><div></div><div>

<br>
     &gt; I tried updating to ghc-6.10.4 and have exactly the same error.<br>
     &gt; Also ghc doesn&#39;t seem to be able to find any of the haskell platform<br>
     &gt; packages, even though it ghc-pkg finds them just fine.<br>
     &gt;<br>
     &gt; For example (trimmed for brevity):<br>
     &gt;<br>
     &gt; ghc-pkg list<br>
     &gt; /usr/local/lib/ghc-6.10.4/./package.conf:<br>
     &gt;     Cabal-1.6.0.3,<br>
     &gt; ...<br>
     &gt;     parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1,<br>
     &gt; ...<br>
     &gt;<br>
     &gt; ghci -v readModel.hs<br>
     &gt; GHCi, version 6.10.4: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a>  :? for help<br>
     &gt; Glasgow Haskell Compiler, Version 6.10.4, for Haskell 98, stage 2<br>
    booted by<br>
     &gt; GHC version 6.8.2<br>
     &gt; Using package config file: /usr/local/lib/ghc-6.10.4/./package.conf<br>
     &gt; ...<br>
     &gt;<br>
     &gt; readModel.hs:9:7:<br>
     &gt;     Could not find module `Text.Parsec.Language&#39;:<br>
     &gt;       locations searched:<br>
     &gt;         Text/Parsec/Language.hs<br>
     &gt;         Text/Parsec/Language.lhs<br>
     &gt; Failed, modules loaded: none.<br>
     &gt; ...<br>
     &gt;<br>
     &gt;<br>
     &gt; ghc-pkg finds parsec, but ghci can&#39;t find it.<br>
     &gt;<br>
     &gt; And if I do a cabal -v3 update I get a:<br>
     &gt; cabal: 3: openFile: does not exist (No such file or directory)<br>
     &gt;<br>
     &gt; Anybody figured it out?<br>
     &gt;<br>
     &gt; - Job Vranish<br>
     &gt;<br>
     &gt; On Fri, Jul 17, 2009 at 11:17 AM, Thomas Hartman<br></div></div><div>
    &lt;<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a> &lt;mailto:<a href="mailto:tphyahoo@gmail.com" target="_blank">tphyahoo@gmail.com</a>&gt;&gt; wrote:<br>
     &gt;&gt;<br>
     &gt;&gt; cabal -v3 update<br>
     &gt;&gt;<br>
     &gt;&gt; will give you a more verbose version of what is going wrong.<br>
     &gt;&gt;<br>
     &gt;&gt; cabal --help<br>
     &gt;&gt;<br>
     &gt;&gt; regrettably, cabal --help doesn&#39;t tell you this but there is always<br>
     &gt;&gt; the man page I suppose.<br>
     &gt;&gt;<br>
     &gt;&gt; 2009/7/16 Tony Hannan &lt;<a href="mailto:tonyhannan2@gmail.com" target="_blank">tonyhannan2@gmail.com</a><br></div>
    &lt;mailto:<a href="mailto:tonyhannan2@gmail.com" target="_blank">tonyhannan2@gmail.com</a>&gt;&gt;:<div><br>
     &gt;&gt; &gt; Hello,<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; I&#39;m on Ubuntu 8.10.<br>
     &gt;&gt; &gt; I installed ghc 6.10.4 (from binary package:<br>
     &gt;&gt; &gt; ghc-6.10.4-i386-unknown-linux-n.tar.bz2).<br>
     &gt;&gt; &gt; I installed haskell-platform-2009.2.0.1 (from source package:<br>
     &gt;&gt; &gt; haskell-platform-2009.2.0.1.tar.gz). It contains<br>
    cabal-install-0.6.2.<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; Then when I run &quot;cabal update&quot;, I get the following error:<br>
     &gt;&gt; &gt; cabal:  : openFile: does not exist (No such file or directory)<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; Any ideas?<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; Thanks,<br>
     &gt;&gt; &gt; Tony<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; _______________________________________________<br>
     &gt;&gt; &gt; Libraries mailing list<br></div>
     &gt;&gt; &gt; <a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a> &lt;mailto:<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a>&gt;<div><br>
     &gt;&gt; &gt; <a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; _______________________________________________<br>
     &gt;&gt; Haskell-Cafe mailing list<br></div>
     &gt;&gt; <a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a> &lt;mailto:<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a>&gt;<div><br>

     &gt;&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
     &gt;<br>
     &gt;<br>
    _______________________________________________<br>
    Haskell-Cafe mailing list<br></div>
    <a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a> &lt;mailto:<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a>&gt;<div><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>
_______________________________________________<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>
</div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">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>
<br></blockquote></div><br>