Harald Bögeholz | 6 Nov 18:27 2012
Picon

Problems updating cabal-install on Mac OS

Hi Cafe,

I just installed the brand new Haskell Platform 2012.4.0.0 for Mac OS X,
32 bit, after removing everything left over from the old one (I hope).

Next I started cabal which said to me:

> Downloading the latest package list from hackage.haskell.org
> Note: there is a new version of cabal-install available.
> To upgrade, run: cabal install cabal-install

So next I did

cabal install cabal-install

which started working

> Resolving dependencies...
> Downloading Cabal-1.16.0.2...

and finished with

> Installing executable(s) in
> /Users/bo/Library/Haskell/ghc-7.4.2/lib/cabal-install-1.16.0.1/bin
> Updating documentation index /Users/bo/Library/Haskell/doc/index.html

When I then tried

cabal update

(Continue reading)

Brandon Allbery | 6 Nov 18:46 2012
Picon

Re: Problems updating cabal-install on Mac OS

On Tue, Nov 6, 2012 at 12:27 PM, Harald Bögeholz <bo <at> ct.de> wrote:
> Installing executable(s) in
> /Users/bo/Library/Haskell/ghc-7.4.2/lib/cabal-install-1.16.0.1/bin
> Updating documentation index /Users/bo/Library/Haskell/doc/index.html

When I then tried

cabal update

it still said

> Downloading the latest package list from hackage.haskell.org

Did you do "hash -r" so your shell will forget that it had already found cabal in /usr/bin?
(This is not a Mac OS X thing, it's a bash and zsh thing.  csh/tcsh does it too but you clear its path hash table with "rehash".)

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b <at> gmail.com                                  ballbery <at> sinenomine.net
unix/linux, openafs, kerberos, infrastructure          http://sinenomine.net

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Harald Bögeholz | 6 Nov 20:22 2012
Picon

Re: Problems updating cabal-install on Mac OS

Am 06.11.12 18:46, schrieb Brandon Allbery:
> On Tue, Nov 6, 2012 at 12:27 PM, Harald Bögeholz <bo <at> ct.de> wrote:
>> When I then tried
>>
>> cabal update
>>
>> it still said
>>
>>> Downloading the latest package list from hackage.haskell.org
>>
> 
> Did you do "hash -r" so your shell will forget that it had already found
> cabal in /usr/bin?
> (This is not a Mac OS X thing, it's a bash and zsh thing.  csh/tcsh does it
> too but you clear its path hash table with "rehash".)

Oops, you are right! Now it seems to work, stupid me!

I thought that by issuing these two commands

Haralds-iMac:~ bo$ which cabal
/Users/bo/Library/Haskell/bin/cabal
Haralds-iMac:~ bo$ ls -l `which cabal`
lrwxr-xr-x  1 bo  staff  49  6 Nov 18:15
/Users/bo/Library/Haskell/bin/cabal ->
../ghc-7.4.2/lib/cabal-install-1.16.0.1/bin/cabal

I had made sure I was using the new version. But apparently not!

Thanks a lot!

(I still find it mildly confusing that there are two different version
numbers involved:

Haralds-iMac:~ bo$ cabal --version
cabal-install version 1.16.0.1
using version 1.16.0.2 of the Cabal library

but that seems to be ok?)

Harald

-- 
Harald Bögeholz    <bo <at> ct.de> (PGP key available from servers)
Redaktion c't      Tel.: +49 511 5352-300  Fax: +49 511 5352-417
                   http://www.ct.de/

                   int f[9814],b,c=9814,g,i;long a=1e4,d,e,h;
                   main(){for(;b=c,c-=14;i=printf("%04d",e+d/a),e=d%a)
                   while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;}
                                                          (Arndt/Haenel)

                   Affe Apfel Vergaser

/* Heise Zeitschriften Verlag GmbH & Co. KG * Karl-Wiechert-Allee 10 *
   30625 Hannover * Registergericht: Amtsgericht Hannover HRA 26709 *
   Persönlich haftende Gesellschafterin: Heise Zeitschriften Verlag *
   Geschäftsführung GmbH * Registergericht: Amtsgericht Hannover, HRB
   60405 * Geschäftsführer: Ansgar Heise, Dr. Alfons Schräder */

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Brandon Allbery | 6 Nov 21:48 2012
Picon

Re: Problems updating cabal-install on Mac OS

On Tue, Nov 6, 2012 at 2:22 PM, Harald Bögeholz <bo <at> ct.de> wrote:
I thought that by issuing these two commands

Haralds-iMac:~ bo$ which cabal
/Users/bo/Library/Haskell/bin/cabal

    3 <at> haral:117 B$ type which
    which is /usr/bin/which

It's not a bash builtin, so it doesn't show the current shell's idea of the world.  "type" will show you that.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b <at> gmail.com                                  ballbery <at> sinenomine.net
unix/linux, openafs, kerberos, infrastructure          http://sinenomine.net

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Gmane