Hi,

Thanks for the replies .. I upgraded ghc to ghc 6.12 .. and installed Criterion through cabal .. There is another problem here which I really don't know if it is due to the ghc version or the dependencies or my OS version !!!

I installed Criterion package,libpng, gnuplot .. and lots of other packages which seemed to be useful ! 

Unfortunately when I run the below command it gives me errors at the end and says it can’t plot the png output .

./profile -t png:500×175 -k png:500×175

..

..

..

output type PNG 500 175 not supported on this platform
output type PNG 500 175 not supported on this platform


Why is it so ? What else do I need to be able to actually see the graphical result ?

Do I have to install gtk2hs as well ?

Actually, I installed gtk2hs-0.10.1, but it seems that it can’t be installed completely on ghc 6.12 !!

Below is the error I get after running make and make install : (before, I am not sure if my question is related to this thread or not .. sorry in advance)

For example I get this error at the end, after I run make :

make: *** [package.conf.inplace] Error 1

make: *** Deleting file `package.conf.inplace'

and I get this one at the end, when I run make install :

ghc: can’t find a package database at package.conf.inplace
make: *** [glib/System/Glib.o] Error 1

Is there any way to get this fixed ? Do I really have to install gtk2hs ?

Thanks,




On Wed, Apr 14, 2010 at 3:24 PM, Simon Peyton-Jones <simonpj@microsoft.com> wrote:
Can you check?  If it still happens with 6.12, please submit a bug report.
If 6.10 can't compile criterion, you might want to add a constraint to the Cabal meta-data.

Simon

| -----Original Message-----
| From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-
| users-bounces@haskell.org] On Behalf Of John Lato
| Sent: 13 April 2010 16:15
| To: Mozhgan kabiri
| Cc: glasgow-haskell-users@haskell.org
| Subject: Re: Can't install Criterion package on ghc ..
|
| > From: Mozhgan kabiri <mozhgan.kabiri@gmail.com>
| >
| > Hi,
| >
| > I am trying to install Criterion package, but I keep getting an error and I
| > can't figure it out why it is like this !!
| >
| > mozhgan@Mozhgan-KCh:~$ cabal install Criterion
| > Resolving dependencies...
| > Configuring vector-algorithms-0.3...
| > Preprocessing library vector-algorithms-0.3...
| > Building vector-algorithms-0.3...
| ...
|
| > [8 of 9] Compiling Data.Vector.Algorithms.Intro (
| > Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o
| )
| > ghc: panic! (the 'impossible' happened)
| >  (GHC version 6.10.4 for i386-unknown-linux):
| >    idInfo co{v a9WB} [tv]
|
| This is definitely a bug in GHC, most likely related to type families
| and fixed in GHC-6.12.x
|
| If you can upgrade to ghc-6.12.1, that should solve this problem.  If
| you need to remain on ghc-6.10.4, try installing an older version of
| criterion.  You can do this with 'cabal install criterion-0.4.1.0'
| Criterion-0.5 is the first version to depend upon vector-algorithms,
| so any previous version has a chance of working.
|
| John
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users@haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users