[Haskell-cafe] Re: cabal: : openFile: does not exist (No such
file or directory)
Fernando Henrique Sanches
fernandohsanches at gmail.com
Mon Aug 31 14:43:26 EDT 2009
Sorry for ressurecting the thread, my I'm having the same problem here.
Deleting the .cabal/config file shows only temporary results, and -v3 isn't
helping:
~/sources/haskell-platform-2009.2.0.2 % cabal update
Config file /home/fernando/.cabal/config not found.
Writing default configuration to /home/fernando/.cabal/config
Downloading the latest package list from hackage.haskell.org
~/sources/haskell-platform-2009.2.0.2 % cabal update
cabal: :: openFile: does not exist (No such file or directory)
~/sources/haskell-platform-2009.2.0.2 % cabal update -v3
cabal: ?: openFile: does not exist (No such file or directory)
I'm on Ubuntu 9.04 x64. ghc 6.10.4
This is the output of the mentioned describe-parsec command, but I don't
know what to do with it:
~/sources/haskell-platform-2009.2.0.2 % ghc-pkg describe parsec-2.1.0.1
name: parsec
version: 2.1.0.1
license: BSD3
copyright:
maintainer: Daan Leijen <daan at cs.uu.nl>
stability:
homepage: http://www.cs.uu.nl/~daan/parsec.html
package-url:
description: Parsec is designed from scratch as an industrial-strength
parser
library. It is simple, safe, well documented (on the package
homepage), has extensive libraries and good error messages,
and is also fast.
category: Parsing
author: Daan Leijen <daan at cs.uu.nl>
exposed: True
exposed-modules: Text.ParserCombinators.Parsec.Language
Text.ParserCombinators.Parsec.Token
Text.ParserCombinators.Parsec.Error
Text.ParserCombinators.Parsec.Char
Text.ParserCombinators.Parsec.Combinator
Text.ParserCombinators.Parsec.Expr
Text.ParserCombinators.Parsec.Perm
Text.ParserCombinators.Parsec.Pos
Text.ParserCombinators.Parsec.Prim
Text.ParserCombinators.Parsec
hidden-modules:
import-dirs: /usr/local/lib/parsec-2.1.0.1/ghc-6.10.4
library-dirs: /usr/local/lib/parsec-2.1.0.1/ghc-6.10.4
hs-libraries: HSparsec-2.1.0.1
extra-libraries:
extra-ghci-libraries:
include-dirs:
includes:
depends: base-4.1.0.0
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces: /usr/local/share/doc/parsec-2.1.0.1/html/parsec.haddock
haddock-html: /usr/local/share/doc/parsec-2.1.0.1/html
Fernando Henrique Sanches
On Thu, Jul 30, 2009 at 7:52 AM, Mike Pentney <mike.pentney at physics.org>wrote:
> 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.
>
> When I got the error, I deleted my (old) copy of
>
> ~/.cabal/config
>
> 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...
>
> HTH
>
> Mike.
>
>
> Job Vranish wrote:
>
>> lol, yep you're right. I'd assumed the haskell platform shipped with the
>> latest parsec, when in fact it does not :) my bad...
>>
>> 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.
>>
>> - Job
>>
>> On Tue, Jul 28, 2009 at 10:44 AM, Thomas Hartman <tphyahoo at gmail.com<mailto:
>> tphyahoo at gmail.com>> wrote:
>>
>> did you verify parsec-2.1.0.1 exports
>>
>> Text.Parsec.Language
>>
>> ?
>>
>> This might be a parsec 2 versus parsec 3 issue
>>
>> ghc-pkg describe parsec-2.1.0.1
>>
>> should tell you the answer to that.
>>
>>
>>
>> 2009/7/27 Job Vranish <jvranish at gmail.com <mailto:jvranish at gmail.com
>> >>:
>>
>> > I tried updating to ghc-6.10.4 and have exactly the same error.
>> > Also ghc doesn't seem to be able to find any of the haskell platform
>> > packages, even though it ghc-pkg finds them just fine.
>> >
>> > For example (trimmed for brevity):
>> >
>> > ghc-pkg list
>> > /usr/local/lib/ghc-6.10.4/./package.conf:
>> > Cabal-1.6.0.3,
>> > ...
>> > parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1,
>> > ...
>> >
>> > ghci -v readModel.hs
>> > GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help
>> > Glasgow Haskell Compiler, Version 6.10.4, for Haskell 98, stage 2
>> booted by
>> > GHC version 6.8.2
>> > Using package config file: /usr/local/lib/ghc-6.10.4/./package.conf
>> > ...
>> >
>> > readModel.hs:9:7:
>> > Could not find module `Text.Parsec.Language':
>> > locations searched:
>> > Text/Parsec/Language.hs
>> > Text/Parsec/Language.lhs
>> > Failed, modules loaded: none.
>> > ...
>> >
>> >
>> > ghc-pkg finds parsec, but ghci can't find it.
>> >
>> > And if I do a cabal -v3 update I get a:
>> > cabal: 3: openFile: does not exist (No such file or directory)
>> >
>> > Anybody figured it out?
>> >
>> > - Job Vranish
>> >
>> > On Fri, Jul 17, 2009 at 11:17 AM, Thomas Hartman
>> <tphyahoo at gmail.com <mailto:tphyahoo at gmail.com>> wrote:
>> >>
>> >> cabal -v3 update
>> >>
>> >> will give you a more verbose version of what is going wrong.
>> >>
>> >> cabal --help
>> >>
>> >> regrettably, cabal --help doesn't tell you this but there is always
>> >> the man page I suppose.
>> >>
>> >> 2009/7/16 Tony Hannan <tonyhannan2 at gmail.com
>> <mailto:tonyhannan2 at gmail.com>>:
>> >> > Hello,
>> >> >
>> >> > I'm on Ubuntu 8.10.
>> >> > I installed ghc 6.10.4 (from binary package:
>> >> > ghc-6.10.4-i386-unknown-linux-n.tar.bz2).
>> >> > I installed haskell-platform-2009.2.0.1 (from source package:
>> >> > haskell-platform-2009.2.0.1.tar.gz). It contains
>> cabal-install-0.6.2.
>> >> >
>> >> > Then when I run "cabal update", I get the following error:
>> >> > cabal: : openFile: does not exist (No such file or directory)
>> >> >
>> >> > Any ideas?
>> >> >
>> >> > Thanks,
>> >> > Tony
>> >> >
>> >> > _______________________________________________
>> >> > Libraries mailing list
>> >> > Libraries at haskell.org <mailto:Libraries at haskell.org>
>> >> > http://www.haskell.org/mailman/listinfo/libraries
>> >> >
>> >> >
>> >> _______________________________________________
>> >> Haskell-Cafe mailing list
>> >> Haskell-Cafe at haskell.org <mailto:Haskell-Cafe at haskell.org>
>> >> http://www.haskell.org/mailman/listinfo/haskell-cafe
>> >
>> >
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org <mailto:Haskell-Cafe at haskell.org>
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090831/dc433e60/attachment.html
More information about the Haskell-Cafe
mailing list