ghc:无法找到包数据库

时间:2014-10-23 11:15:01

标签: haskell ghc

我试图运行ghci REPL,但这种情况发生了

# ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
ghc: can't find a package database at /usr/lib/ghc/package.conf.d

尝试列出已安装的模块时:

# ghc-pkg list
ghc-pkg: /var/lib/ghc/package.conf.d: openFile: does not exist (No such file or directory)

尝试安装openFile时:

# cabal install openFile
cabal: ghc-pkg: /var/lib/ghc/package.conf.d: openFile: does not exist (No such

文件或目录)

0 个答案:

没有答案