[Haskell-beginners] cabal install local troubles (osx)

Miro Karpis miroslav.karpis at gmail.com
Wed Mar 27 10:57:16 CET 2013


so, after
1) removing ~/.cabal,
2) fresh haskell package install (most probably this was not necessary)
3) cabal install cabal-install

I got finally:
mac-2:~ miro$ cabal -V
*cabal-install version 1.16.0.2*
*
*
/bin is still not in ~/.cabal directory, but most probably that does not
need to be there..or?


cheers,
m.


On Wed, Mar 27, 2013 at 10:39 AM, Miro Karpis <miroslav.karpis at gmail.com>wrote:

> I did a bit more checking and I can see in  ~/.cabal only config.platform
> and config files. No bin folder.
>
> I just did a fresh haskell package install. After that I run:
>
> mac-2:.cabal miro$ cabal -V
> *cabal-install version 0.14.0*
> using version 1.14.0 of the Cabal library
> mac-2:.cabal miro$ cabal update
> 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
> mac-2:.cabal miro$ cabal install cabal-install
> Resolving dependencies...
> ...
> ...
> ...
> Installing executable(s) in
> */Users/miro/Library/Haskell/ghc-7.4.2/lib/cabal-install-1.16.0.2/bin*
> Updating documentation index /Users/miro/Library/Haskell/doc/index.html
> mac-2:.cabal miro$ cabal -V
> *cabal-install version 0.14.0*
> *
> *
> *
> *
> mac-2:.cabal miro$ ls ~/.cabal
> config config.platform
>
>
> mac-2:bin miro$ cd /Library/Haskell/bin
> mac-2:bin miro$ ls -l
> total 5712
> lrwxr-xr-x  1 miro  wheel       26 Mar 27 10:17 alex ->
> ../lib/alex-3.0.2/bin/alex
> lrwxr-xr-x  1 miro  wheel       10 Mar 27 10:17 cabal -> cabal.wrap
> lrwxr-xr-x  1 miro  wheel       37 Mar 27 10:17 *cabal.real ->
> ../lib/cabal-install-0.14.0/bin/cabal*
> -rwxr-xr-x  1 root  admin     4328 Nov  5 03:44 cabal.wrap
> lrwxr-xr-x  1 miro  wheel       30 Mar 27 10:17 happy ->
> ../lib/happy-1.18.10/bin/happy
> -rwxr-xr-x  1 root  admin  1295976 Nov  5 03:44 patch-ghc-settings
> -rwxr-xr-x  1 root  admin  1598500 Nov  5 03:44 uninstall-hs
>
> so it seems that the cabal update  does not update the link in bin,...this
> should be working, or? Do I need to always update the link after each new
> version of cabal?
>
>
> m.
>
>
> On Wed, Mar 27, 2013 at 7:49 AM, Miro Karpis <miroslav.karpis at gmail.com>wrote:
>
>> many thanks, but this is my output:
>>
>> mac-2:~ miro$ cd $HOME/.cabal/bin
>> -bash: cd: /Users/miro/.cabal/bin: No such file or directory
>> mac-2:~ miro$
>>
>> cheers,
>> m.
>>
>> On Wed, Mar 27, 2013 at 7:44 AM, Emmanuel Touzery <etouzery at gmail.com>wrote:
>>
>>> Hello,
>>>
>>>  On linux and windows I add this folder to the path and then it works:
>>> $HOME/.cabal/bin
>>>
>>> emmanuel
>>>
>>>
>>> On Wed, Mar 27, 2013 at 7:16 AM, Miro Karpis <miroslav.karpis at gmail.com>wrote:
>>>
>>>> please, can you help me with following. I have installed haskell on mac
>>>> from the package. When I check cabal -V I can see 1.14.0
>>>> That is because the cabal is loading from /Library/Haskell/bin.
>>>>
>>>> After that I run 'cabal install cabal-install', I get following output:
>>>>
>>>> Installing executable(s) in
>>>> /Users/miro/Library/Haskell/ghc-7.4.2/lib/cabal-install-1.16.0.2/bin
>>>> Updating documentation index /Users/miro/Library/Haskell/doc/index.html
>>>>
>>>> So the new version of cabal is installed in another place. When I
>>>> install new package via cabal, it uses the 1.14.0 version. I have tried to
>>>> copy the new 1.16.0.2 version to bin, but that just didn't help because the
>>>> new packages have been installed somewhere else.
>>>>
>>>> Please what is the proper way to fix this?
>>>>
>>>> many thanks,
>>>> miro
>>>>
>>>> _______________________________________________
>>>> Beginners mailing list
>>>> Beginners at haskell.org
>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at haskell.org
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130327/2702b09f/attachment.htm>


More information about the Beginners mailing list