Haskell在启用分析后重新安装基础 [英] Haskell reinstall base with profiling enabled

查看:162
本文介绍了Haskell在启用分析后重新安装基础的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试按照此处中列出的说明重新安装我的Haskell库并启用了分析功能。



但是,每当cabal尝试重新安装其中一个库时,我会收到以下消息:

  LibraryNameHere .hs:1:1:
找不到模块`Prelude'
也许你还没有安装包`base'的分析库?
使用-v查看搜索的文件列表。

当我试图用分析重新安装 base 时启用我得到以下消息:

$ $ p $ $ $ c $ me @ machine:〜/ .cabal / $ cabal install -p base
解决依赖关系...
所有请求的软件包已经安装:
base-4.5.0.0
如果您想要重新安装,请使用--reinstall。
me @ machine:〜/ .cabal / $ cabal install --reinstall -p base
解析依赖关系...
cabal:无法解析依赖关系:
next goal:base (用户目标)
拒绝:base-4.7.0.0,4.6.0.1,4.6.0.0,4.5.1.0,4.5.0.0,4.4.1.0,4.0.0.0,
4.3.1.0,4.3。 0.0,4.2.0.2,4.2.0.1,4.2.0.0,4.1.0.0,4.0.0.0(只能使用已安装的
实例)
rejecting:base-3.0.3.2(conflict:base = >< 4.3> base> = 4.0&< 4.3)
rejecting:base-3.0.3.1(conflict:base => base> = 4.0&& code>

如何重新启用基本分析功能?

base 概要分析库默认不包含在你的Haskell / GHC安装中,它们将通过您的操作系统的软件包管理器在一个单独的软件包中。



Debian Linux Systems: sudo apt-get install ghc-prof


I am trying reinstall my Haskell libraries with profiling enabled by following the instructions listed here

However, whenever cabal attempts to reinstall one of the libraries I get the following message:

LibraryNameHere.hs:1:1:
    Could not find module `Prelude'
    Perhaps you haven't installed the profiling libraries for package `base'?
    Use -v to see a list of the files searched for.

When I try to reinstall base with profiling enabled I get the following messages:

me@machine:~/.cabal/$ cabal install -p base
Resolving dependencies...
All the requested packages are already installed:
base-4.5.0.0
Use --reinstall if you want to reinstall anyway.
me@machine:~/.cabal/$ cabal install --reinstall -p base
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: base (user goal)
rejecting: base-4.7.0.0, 4.6.0.1, 4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0,
4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0 (only already
installed instances can be used)
rejecting: base-3.0.3.2 (conflict: base => base>=4.0 && <4.3)
rejecting: base-3.0.3.1 (conflict: base => base>=4.0 && <4.2)

How do I reinstall base with profiling enabled?

解决方案

If the base profiling libraries were not included in the your Haskell/GHC installation by default, they will be included through your OS's package manager in a separate package.

Debian Linux Systems:

sudo apt-get install ghc-prof

这篇关于Haskell在启用分析后重新安装基础的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆