【发布时间】:2017-04-14 14:44:41
【问题描述】:
我有一个 Haskell 项目,我想在抛出异常时获取该项目的堆栈跟踪。我正在使用 GHC 8.0.2 和模块 Graphics.UI.GLUT,其中 GLUT 的版本是 2.7.0.11。
我已经使用 cabal 安装了模块。
This page from the official website 建议我使用-prof 标志进行编译。但是,我收到以下错误
Failed to load interface for ‘Graphics.UI.GLUT’
Perhaps you haven't installed the profiling libraries for package ‘GLUT-2.7.0.11’?
Use -v to see a list of the files searched for.
我使用的是 Ubuntu 14.04.5 LTS。使用this link,我决定运行
sudo apt-get install libghc-glut-prof
但是,这并没有解决问题。我该如何解决这个问题?
谢谢。
【问题讨论】:
-
如果你真的使用从 Ubuntu 安装的
Graphics.UI.GLUT(通过libghc-glut-dev包),它应该已经解决了这个问题。你确定你也没有通过cabal(cabal install glut) 安装glut吗? -
@JoachimBreitner 我想我是使用 cabal 安装的。请问这种情况应该怎么解决?
标签: ubuntu haskell profiling ubuntu-14.04 glut