How can I install profiling libraries in Haskell when using cabal, in Ubuntu 14.04.5? -
i have haskell project obtain stack trace when exception thrown. using ghc 8.0.2 , module graphics.ui.glut
, version of glut 2.7.0.11.
i have installed module using cabal.
this page official website suggests compile using -prof
flag. however, following error
failed load interface ‘graphics.ui.glut’ perhaps haven't installed profiling libraries package ‘glut-2.7.0.11’? use -v see list of files searched for.
i using ubuntu 14.04.5 lts. using this link, decided run
sudo apt-get install libghc-glut-prof
however, did not solve problem. how can solve this?
thank you.
running
sudo apt-get install libghc-glut-prof
is right thing if indeed use debian package graphics.ui.glut
.
if have installed glut
package cabal
yourself, e.g. with
cabal install glut
or other package pulls in glut
, can run
cabal install --enable-library-profiling --force-reinstall glut
(or whatever other package installed pulled in glut
) rebuild profiling enabled.
none of specific glut
.
Comments
Post a Comment