Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-24 Thread Jacek Generowicz


On 2011 May 23, at 16:02, Johannes Waldmann wrote:


I just did this (in a pristine virtual machine):

* install ubuntu-11.04-desktop-amd64.iso
* sudo apt-get install libgmp3-dev zlib1g-dev libglut3-dev
* install from binary ghc-7.0.3-x86_64-unknown-linux.tar.bz2
* install from source haskell-platform-2011.2.0.1.tar.gz

and this definitely works, i.e. 'ghc-pkg list'
shows the platform modules, and no errors.


If you haven't trashed that VM yet, would you mind checking whether  
lambdabot cabal-installs cleanly? (Modulo giving it things that it  
might need such as a readline-dev package.)


Thanks


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-24 Thread Johannes Waldmann

  * install ubuntu-11.04-desktop-amd64.iso
  * sudo apt-get install libgmp3-dev zlib1g-dev libglut3-dev
  * install from binary ghc-7.0.3-x86_64-unknown-linux.tar.bz2
  * install from source haskell-platform-2011.2.0.1.tar.gz

 If you haven't trashed that VM yet, would you mind checking whether  
 lambdabot cabal-installs cleanly? (Modulo giving it things that it  
 might need such as a readline-dev package.)

sudo apt-get install libreadline-dev
cabal install lambdabot

gives the error (.size expression ... does not evaluate to a constant)
that was mentioned in another thread
http://hpaste.org/46401/bot_install_error




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Anthony Cowley
On Mon, May 23, 2011 at 5:17 AM, Jacek Generowicz
jacek.generow...@cern.ch wrote:
 So, after this tale of agony, here are two concrete questions:

 a) Am I right in concluding that GHC 7.0.3 will not run on OS X 10.5
 (without unreasonable effort)?

This is a frustrating situation. Note that there is a binary for 7.0.1
that supports 10.5
http://www.haskell.org/ghc/download_ghc_7_0_1#macosxintel. From
this, you should be able to build 7.0.3 yourself. One minor note: if
you're interested in LLVM, stick to the 32-bit build.! If you
encounter problems, #haskell will help.

As for the platform, if it is giving you trouble, don't shy away from
just using GHC and cabal as normal! After you've cabal installed a few
big packages, you will find that you've acquired many of the most
popular packages.

 b) On Ubuntu Natty I installed the generic linux GHC 7.0.3 binary.
 Downloaded Haskell Platform 2011.2.0.1 source distribution. ./configure
 worked happily. make fails as follows.

 Building transformers-0.2.2.0
 /usr/local/haskell-platform-2011.2.0.1/bin/ghc --make Setup -o
 Setup -package Cabal-1.10.1.0
 command line: cannot satisfy -package Cabal-1.10.1.0:
    Cabal-1.10.1.0-1fb2094e19492373b1a39284193e7984 is unusable due to
 missing or recursive dependencies:
      process-1.0.1.5-55dfaccf3a91c4cb8f6284a0bafef198


The Ubuntu HP story is a bit of a gotcha for the innocent user, too.
But, again, you can happily install GHC 7.0.3, and then cabal install
your way to happiness. The problem you encountered seems due to a
conflict among packages that came with GHC.

I think your strategy of nuking everything Haskell through your
package manager (if available), then manually (not forgetting ~/.ghc
and ~/.cabal) was prudent to get out of the hole you found yourself
in. But don't let HP installation troubles keep you away from Haskell
altogether!

Anthony

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Jacek Generowicz


On 2011 May 23, at 13:45, Anthony Cowley wrote:


On Mon, May 23, 2011 at 5:17 AM, Jacek Generowicz
jacek.generow...@cern.ch wrote:

a) Am I right in concluding that GHC 7.0.3 will not run on OS X 10.5
(without unreasonable effort)?


This is a frustrating situation. Note that there is a binary for 7.0.1
that supports 10.5
http://www.haskell.org/ghc/download_ghc_7_0_1#macosxintel.


OK, that was painless. Thanks!


From this, you should be able to build 7.0.3 yourself.


That's interesting. I won't try that *right* now.


As for the platform, if it is giving you trouble, don't shy away from
just using GHC and cabal as normal! After you've cabal installed a few
big packages, you will find that you've acquired many of the most
popular packages.


If by cabal install you mean use the command cabal ... yeah, that  
would be great, if only I could install cabal-install, which fails. Or  
do you mean manual install of Cabal packages? Either way, I'm not  
making much progress.





b) On Ubuntu Natty I installed the generic linux GHC 7.0.3 binary.
Downloaded Haskell Platform 2011.2.0.1 source distribution. ./ 
configure

worked happily. make fails as follows.

Building transformers-0.2.2.0
/usr/local/haskell-platform-2011.2.0.1/bin/ghc --make Setup - 
o

Setup -package Cabal-1.10.1.0
command line: cannot satisfy -package Cabal-1.10.1.0:
   Cabal-1.10.1.0-1fb2094e19492373b1a39284193e7984 is unusable due to
missing or recursive dependencies:
 process-1.0.1.5-55dfaccf3a91c4cb8f6284a0bafef198



The Ubuntu HP story is a bit of a gotcha for the innocent user, too.
But, again, you can happily install GHC 7.0.3, and then cabal install
your way to happiness.


Maybe if I managed to install just one package manually, then I might  
start sharing some of you optimism :-)



The problem you encountered seems due to a
conflict among packages that came with GHC.


Which does seem rather odd, doesn't it? I'm tempted to think that I  
didn't quite manage to nuke everything, because I find it hard to  
believe that GHC itself comes with internal conflicts which The Google  
seems not to have heard about.



I think your strategy of nuking everything Haskell through your
package manager (if available), then manually (not forgetting ~/.ghc
and ~/.cabal) was prudent to get out of the hole you found yourself
in.


Yup,  ~/.ghc and ~/.cabal didn't escape my attention.

Except that it doesn't seem to have worked (yet - hope springs eternal).

When I ghc-pkg check, I get lots of complaints about ~/.cabal/lib/ 
somelibrary/ghc-7.0.3 not being found. Erm, I nuked it all and then  
installed ghc-7.0.3 from scratch (generic Linux binary package), so  
I've no idea *why* my system thinks that these should exist unless  
*it* put them there after the purge during the installation of ghc.


Any ideas how to solve this?


But don't let HP installation troubles keep you away from Haskell
altogether!


I'm determined not to let that happen, but when the few precious  
moments I can afford to spend on Haskell end up being spent on  
installation troubles rather than Haskell itself, then it does become  
rather tough to keep the motivation.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Anthony Cowley
On Mon, May 23, 2011 at 8:16 AM, Jacek Generowicz
jacek.generow...@cern.ch wrote:

 On 2011 May 23, at 13:45, Anthony Cowley wrote:
 As for the platform, if it is giving you trouble, don't shy away from
 just using GHC and cabal as normal! After you've cabal installed a few
 big packages, you will find that you've acquired many of the most
 popular packages.

 If by cabal install you mean use the command cabal ... yeah, that would
 be great, if only I could install cabal-install, which fails. Or do you mean
 manual install of Cabal packages? Either way, I'm not making much
 progress.

What I do is get GHC installed, then download the cabal-install
package from hackage and use the bootstrap.sh installer it comes with.
Then you can use the cabal executable to install packages as you go.

Anthony

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Jacek Generowicz


On 2011 May 23, at 14:29, Anthony Cowley wrote:


On Mon, May 23, 2011 at 8:16 AM, Jacek Generowicz
jacek.generow...@cern.ch wrote:


On 2011 May 23, at 13:45, Anthony Cowley wrote:
As for the platform, if it is giving you trouble, don't shy away  
from
just using GHC and cabal as normal! After you've cabal installed a  
few

big packages, you will find that you've acquired many of the most
popular packages.


If by cabal install you mean use the command cabal ... yeah,  
that would
be great, if only I could install cabal-install, which fails. Or do  
you mean

manual install of Cabal packages? Either way, I'm not making much
progress.


What I do is get GHC installed, then download the cabal-install
package from hackage and use the bootstrap.sh installer it comes with.
Then you can use the cabal executable to install packages as you go.


Been there, done that, got the crashes :-(

I've had the pleasure of watching the bootstrap.sh crash a number of  
times now.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Jacek Generowicz


On 2011 May 23, at 14:16, Jacek Generowicz wrote:



On 2011 May 23, at 13:45, Anthony Cowley wrote:


On Mon, May 23, 2011 at 5:17 AM, Jacek Generowicz
jacek.generow...@cern.ch wrote:





I think your strategy of nuking everything Haskell through your
package manager (if available), then manually (not forgetting ~/.ghc
and ~/.cabal) was prudent to get out of the hole you found yourself
in.


Yup,  ~/.ghc and ~/.cabal didn't escape my attention.


Hmm, maybe I was mistaken, and maybe ~/.ghc survived. I nuked  
everything again (there was a .ghc: I assumed it had been re-created,  
but maybe it was an old one (I didn't check the datestamps), but  
no .cabal). Now 'make' and 'make install' *have* worked for HP.  
Haven't got around to trying to use it yet, but I thought I'd share  
the good news.


Thanks for your moral support, it seems to have done the trick :-)

Conclusion: I *probably* failed to remove ~/.ghc, so some old data  
were interfering with the supposedly clean installation.


A manual install of the GHC 7.0.3 generic Linux binary, followed by  
installation from source of HP 2011.2.0.1 *has* worked for me on  
Ubuntu Natty, once I nuked *all* previous traces of Haksell on the  
system. I *did* have to install libgmp in order for the configuration  
step of HP to succeed.


Thanks for your help.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Daniel Fischer
On Monday 23 May 2011 14:16:43, Jacek Generowicz wrote:
 
  From this, you should be able to build 7.0.3 yourself.
 
 That's interesting. I won't try that *right* now.
 

It's easy, assuming you have installed alex and happy (and preferably 
hscolour), just download and unpack the source bundle,

$ ./configure --prefix=wherever

If it says it's going to build pdf and ps docs, that may fail if you have 
the wrong version of dblatex.

$ make  make install

Go play a football match or something, that takes a while.

  As for the platform, if it is giving you trouble, don't shy away from
  just using GHC and cabal as normal! After you've cabal installed a few
  big packages, you will find that you've acquired many of the most
  popular packages.
 
 If by cabal install you mean use the command cabal ... yeah, that
 would be great, if only I could install cabal-install, which fails.

With what error?
Downloading and unpacking the .tar.gz bundle and then running

$ ./bootstrap.sh

in that directory should work.

 Or do you mean manual install of Cabal packages?

That's not very comfortable, since you have to chase dependencies manually.
Spending some effort to get cabal-install installed is definitely worth it.


 
 Yup,  ~/.ghc and ~/.cabal didn't escape my attention.
 
 Except that it doesn't seem to have worked (yet - hope springs eternal).
 
 When I ghc-pkg check, I get lots of complaints about ~/.cabal/lib/
 somelibrary/ghc-7.0.3 not being found. Erm, I nuked it all and then
 installed ghc-7.0.3 from scratch (generic Linux binary package), so
 I've no idea *why* my system thinks that these should exist unless
 *it* put them there after the purge during the installation of ghc.
 
 Any ideas how to solve this?
 

Probably some package.conf.d survived the purge and was picked up by the 
fresh ghc. If you've deleted ~/.ghc, that would be in /usr/xxx. If you dare 
not messing around there, you could install ghc under $HOME, that shouldn't 
pick it up then.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Brandon Moore
 From: Jacek Generowicz jacek.generow...@cern.ch

 Sent: Monday, May 23, 2011 4:17 AM

 [TL;DR: there's a concrete question at the bottom.]
 
 Once again I find myself in the pleasant situation where the slings and 
 arrows 
 of life in general are slightly less intense, and I manage to find a few 
 spare 
 minutes and some free brain cycles to dedicate to Haskell.
 
 Why not try GHC 7.0.3? (after all, GHC 7 has been out for a good few months, 
 so 
 the teething troubles should have passed by now), and there's a lovely new 
 Haskell Platform 2011.2.0.1 to go with it, so, maybe this time, I'll 
 actually be able to use some of the libraries that I tried and failed to 
 install 
 during my last period of Haskell study.
 
 The two computers I have available for playing with Haskell run OS X Leopard 
 (10.5), and Ubuntu Natty (11.04).

I can't say anything about OS X, but I've been using ghc 7.0.3 under Ubuntu.
I just cabal-install what I want - and use apt-get for any required C libraries.

To set up cabal-install, the bootstrap.sh script which should come in
the package is helpful - it automatically downloads the required dependencies.
http://hackage.haskell.org/trac/hackage/wiki/CabalInstall

 Next up: Ubuntu. There's a Linux Link on the Haskell Platform Page. Ooooh, 
 there's an Ubuntu link. Ooooh! there's even a package for Natty, great! 
 Version 2010.1.0.0.1 WTF? Where's the 2011.2 package? There isn't one.

I see there is a 2011.2 package for the next version, but it's probably too much
trouble to fix up the other dependencies.
 
 b) On Ubuntu Natty I installed the generic linux GHC 7.0.3 binary. Downloaded 
 Haskell Platform 2011.2.0.1 source distribution. ./configure worked happily. 
 make fails as follows.
 
 Building transformers-0.2.2.0
 /usr/local/haskell-platform-2011.2.0.1/bin/ghc --make 
 Setup -o Setup -package 
 Cabal-1.10.1.0
 command line: cannot satisfy -package Cabal-1.10.1.0:
     Cabal-1.10.1.0-1fb2094e19492373b1a39284193e7984 is unusable due to 
 missing 
 or recursive dependencies:
       process-1.0.1.5-55dfaccf3a91c4cb8f6284a0bafef198

That's odd. I think 7.0.3 comes with Cabal-1.10.1.0.
Here's my global package database:

/usr/local/lib/ghc-7.0.3/package.conf.d
   Cabal-1.10.1.0   
   array-0.3.0.2
   base-4.3.1.0
   bin-package-db-0.0.0.0
   bytestring-0.9.1.10
   containers-0.4.0.0
   directory-1.1.0.0
   extensible-exceptions-0.1.1.2
   ffi-1.0
   filepath-1.2.0.0
   ghc-7.0.3
   ghc-binary-0.5.0.2
   ghc-prim-0.2.0.0
   haskell2010-1.0.0.0
   haskell98-1.1.0.1
   hpc-0.5.0.6
   integer-gmp-0.2.0.3
   old-locale-1.0.0.2
   old-time-1.0.0.6
   pretty-1.0.1.2
   process-1.0.1.5
   random-1.0.0.3
   rts-1.0
   template-haskell-2.5.0.0
   time-1.2.0.3
   unix-2.4.2.0

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Jacek Generowicz


On 2011 May 23, at 14:42, Daniel Fischer wrote:


On Monday 23 May 2011 14:16:43, Jacek Generowicz wrote:



If by cabal install you mean use the command cabal ... yeah, that
would be great, if only I could install cabal-install, which fails.


With what error?
Downloading and unpacking the .tar.gz bundle and then running

$ ./bootstrap.sh

in that directory should work.


Below is what I get *now* having just successfully installed a fresh  
GHC 7.0.3 and HP 2011.2.0.1. By successfully installed I mean that  
configure, make and make install didn't throw up any errors. I haven't  
tested that anything works yet.


$ ./bootstrap.sh
Checking installed packages for ghc-7.0.3...
parsec-2.1.0.1 will be downloaded and installed.
network is already installed and the version is ok.
Cabal-1.8.0.2 will be downloaded and installed.
mtl-1.1.0.2 will be downloaded and installed.
HTTP-4000.0.8 will be downloaded and installed.
zlib is already installed and the version is ok.

Downloading parsec-2.1.0.1...

...

Downloading Cabal-1.8.0.2...

...

[56 of 58] Compiling Distribution.Simple.UserHooks ( Distribution/ 
Simple/UserHooks.hs, Distribution/Simple/UserHooks.o )
[57 of 58] Compiling Distribution.Simple ( Distribution/Simple.hs,  
Distribution/Simple.o )

[58 of 58] Compiling Main ( Setup.hs, Setup.o )
Linking Setup ...
Configuring Cabal-1.8.0.2...
Setup: At least the following dependencies are missing:
base =4  3  =1  5, filepath =1  1.2

Error during cabal-install bootstrap:
Configuring the Cabal package failed





Or do you mean manual install of Cabal packages?


That's not very comfortable, since you have to chase dependencies  
manually.
Spending some effort to get cabal-install installed is definitely  
worth it.


My thoughts exactly.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Daniel Fischer
On Monday 23 May 2011 15:08:41, Jacek Generowicz wrote:
 On 2011 May 23, at 14:42, Daniel Fischer wrote:
  On Monday 23 May 2011 14:16:43, Jacek Generowicz wrote:
  If by cabal install you mean use the command cabal ... yeah, that
  would be great, if only I could install cabal-install, which fails.
  
  With what error?
  Downloading and unpacking the .tar.gz bundle and then running
  
  $ ./bootstrap.sh
  
  in that directory should work.
 
 Below is what I get *now* having just successfully installed a fresh
 GHC 7.0.3 and HP 2011.2.0.1. By successfully installed I mean that
 configure, make and make install didn't throw up any errors. I haven't
 tested that anything works yet.
 
 $ ./bootstrap.sh
 Checking installed packages for ghc-7.0.3...
 parsec-2.1.0.1 will be downloaded and installed.

Hmmm?

 network is already installed and the version is ok.
 Cabal-1.8.0.2 will be downloaded and installed.

That's a bad sign.
Have you downoaded the bundle from the cabal-install page?
That's not the right thing to do (yeah, somebody should tell unsuspecting 
travellers).

With ghc-7, you should use cabal-install-0.10.*, download cabal-
install-0.10.2 from hackage
http://hackage.haskell.org/package/cabal-install

 mtl-1.1.0.2 will be downloaded and installed.
 HTTP-4000.0.8 will be downloaded and installed.
 zlib is already installed and the version is ok.
 
 Downloading parsec-2.1.0.1...
 
 ...
 
 Downloading Cabal-1.8.0.2...
 
 ...
 
 [56 of 58] Compiling Distribution.Simple.UserHooks ( Distribution/
 Simple/UserHooks.hs, Distribution/Simple/UserHooks.o )
 [57 of 58] Compiling Distribution.Simple ( Distribution/Simple.hs,
 Distribution/Simple.o )
 [58 of 58] Compiling Main ( Setup.hs, Setup.o )
 Linking Setup ...
 Configuring Cabal-1.8.0.2...
 Setup: At least the following dependencies are missing:
 base =4  3  =1  5, filepath =1  1.2

You see that that constraint is impossible, don't you?

 
 Error during cabal-install bootstrap:
 Configuring the Cabal package failed


Okay,

$ghc-pkg unregister parsec-2.1.0.1 (unless you want to keep it)

Try it with cabal-install-0.10.2, sorry for the inconvenience.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Jacek Generowicz


On 2011 May 23, at 15:08, Jacek Generowicz wrote:



On 2011 May 23, at 14:42, Daniel Fischer wrote:



$ ./bootstrap.sh

in that directory should work.



Configuring Cabal-1.8.0.2...
Setup: At least the following dependencies are missing:
base =4  3  =1  5, filepath =1  1.2



How am I supposed to interpret the constraint on base?

I read that as it has to be not less than 4 but less than 3  In  
other words, it requires an *impossible* version of base !


'ghc-pkg list' claims that I have

  base 4.3.1.0
  filepath 1.2.0.0



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Jacek Generowicz


On 2011 May 23, at 15:22, Daniel Fischer wrote:


On Monday 23 May 2011 15:08:41, Jacek Generowicz wrote:



Cabal-1.8.0.2 will be downloaded and installed.


That's a bad sign.
Have you downoaded the bundle from the cabal-install page?


Ermmm, ys [sudden pangs of guilt] was that not the right thing to  
do?



That's not the right thing to do


Darn!


(yeah, somebody should tell unsuspecting travellers).


We would kinda appreciate it :-)


With ghc-7, you should use cabal-install-0.10.*, download cabal-
install-0.10.2 from hackage
http://hackage.haskell.org/package/cabal-install





Done ...


base =4  3  =1  5, filepath =1  1.2


You see that that constraint is impossible, don't you?


Yes, but I suspected my inability to read the constraint properly.



Okay,

$ghc-pkg unregister parsec-2.1.0.1 (unless you want to keep it)

Try it with cabal-install-0.10.2,


Bingo!


sorry for the inconvenience.


Marvin I think ... I feel good about it. /Marvin

Many, many thanks for your help.

(GHC 7.03 is compiling away on OS X, BTW, no glitches so far).


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Johannes Waldmann

 b) On Ubuntu Natty I installed the generic linux GHC 7.0.3 binary.  
 Downloaded Haskell Platform 2011.2.0.1 source distribution. ./ 

I just did this (in a pristine virtual machine):

* install ubuntu-11.04-desktop-amd64.iso
* sudo apt-get install libgmp3-dev zlib1g-dev libglut3-dev
* install from binary ghc-7.0.3-x86_64-unknown-linux.tar.bz2
* install from source haskell-platform-2011.2.0.1.tar.gz

and this definitely works, i.e. 'ghc-pkg list'
shows the platform modules, and no errors.

J.W.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Johannes Waldmann
The thing that's usually failing is cabal install unix-compat,
which requires sudo apt-get install libbsd-dev. - J.W.






___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Jacek Generowicz
Summarizing, by answering my own question on the basis of the help I  
have received elsewhere in the thread.


On 2011 May 23, at 11:17, Jacek Generowicz wrote:

a) Am I right in concluding that GHC 7.0.3 will not run on OS X 10.5  
(without unreasonable effort)?


It takes little effort on the part of the human, though the CPU will  
have to work hard.


- Make sure you have XCode 3.1 (or better, I guess)

- Download and install GHC-7.0.1

http://www.haskell.org/ghc/download_ghc_7_0_1#macosxintel

- Use the above to compile GHC-7.0.3 from source.


b) On Ubuntu Natty I installed the generic linux GHC 7.0.3 binary.  
Downloaded Haskell Platform 2011.2.0.1 source distribution. ./ 
configure worked happily. make fails as follows.


Building transformers-0.2.2.0
/usr/local/haskell-platform-2011.2.0.1/bin/ghc --make Setup - 
o Setup -package Cabal-1.10.1.0

command line: cannot satisfy -package Cabal-1.10.1.0:
   Cabal-1.10.1.0-1fb2094e19492373b1a39284193e7984 is unusable due  
to missing or recursive dependencies:

 process-1.0.1.5-55dfaccf3a91c4cb8f6284a0bafef198

Could anybody help me get past this problem?


This problem was probably caused by having an old ~/.ghc lying around.

On a *clean* Natty system, this procedure works like a charm, though  
you may have to apt-get install some required C libraries.


If you then proceed to install cabal-install, make sure *not* to use  
the version which is available for download (today) on the cabal- 
install page: for GHC 7 you need to use cabal-install version 0.10.*,  
which you can get from


   http://hackage.haskell.org/package/cabal-install

Use the booststrap.sh script which comes in the bundle (chmod u+x  
bootstrap.sh; ./bootstrap.sh).


Thanks to all those who helped. Hopefully this summary will be of some  
use to someone in the future.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

2011-05-23 Thread Evan Laforge
 Cabal-1.8.0.2 will be downloaded and installed.

 That's a bad sign.
 Have you downoaded the bundle from the cabal-install page?

 Ermmm, ys [sudden pangs of guilt] was that not the right thing to do?

 That's not the right thing to do

 Darn!

 (yeah, somebody should tell unsuspecting travellers).

 We would kinda appreciate it :-)

This gave me some deja vu so I checked my sent mail, turns out on May
19 I wrote about the same thing.  I updated one wiki page to not point
to that cabal page, but I don't have permissions to take down the page
itself.  No one responded to my email so I forgot I had sent it and
never been answered.  So I repeat:

If you search for cabal install, the first link is
http://hackage.haskell.org/trac/hackage/wiki/CabalInstall, which in
turn leads to http://haskell.org/cabal/download.html.

It looks very official and canonical and all that, but that page has
an old version of cabal install that will no longer compile with ghc7
because it requires old libraries.  Of course it won't tell you that
right off, first it will install a whole bunch of old stuff, charge
you a fiver, and then emit some constraint can't be satisfied msgs
which if you have some experience with haskell and cabal already
should eventually tip you off that something's wrong.

Is there someone out there who has permissions to either take that
page down, or replace it with a link to the new version at
http://hackage.haskell.org/package/cabal-install?

I updated http://hackage.haskell.org/trac/hackage/wiki/CabalInstall to
point to the platform and to the hackage page, but the cabal page at
http://haskell.org/haskellwiki/Cabal-Install still links to
http://haskell.org/cabal/download.html.  Should I just replace the
haskellwiki page with a link to the hackagewiki one?  I would try to
port over any up to date info of course.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe