cabal install local troubles (osx)

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

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
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@haskell.org http://www.haskell.org/mailman/listinfo/beginners

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
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
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@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

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
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
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
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@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

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
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
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
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
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@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

On Wed, Mar 27, 2013 at 2:16 AM, Miro Karpis
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.
cabal-install installs to your user package database; you want this, it means you don't have to wipe out the entire installation if you get conflicting libraries installed. If you are not finding libraries because you're installing stuff the old "runhaskell Setup.hs configure" etc. way, just run "cabal install" (with no package name) instead of the Setup.hs stuff. Also note that, while ~/.cabal/bin is used on linux, it's ~/Library/Haskell/bin on OS X. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Osx 10.8, I recently run into 32/64 issues. so I was advised to reinstall HP 2012.4 64, which I did. to be sure, I wiped ( moved) my ./~cabal after resintallation I was suprised to find it nearly empty, and all files are now into ~/Library/Haskell ( and the Path is to be updated accrodingly,as mentionned in the install) note this only occur when your ~/.cabal is non existing at installation time as documented below http://www.haskell.org/haskellwiki/Mac_OS_X_Common_Installation_Paths Haskell Platform 2011.2.0.0 (March 2011) and later uses this layout and sets up cabal to use it for built packages. On new installs, if you didn't already have a ~/.cabal/config file, then it is set up by default. Otherwise, the config file for this layout is placed in ~/.cabal/config.platform and you can manually move it over, or incorporate it into your existing config file. On 2013-03-27 06:16:53 +0000, Miro Karpis said:
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
participants (4)
-
Brandon Allbery
-
Emmanuel Touzery
-
luc taesch
-
Miro Karpis