Re: How to compile git-annex?

2015-04-25 Thread Brandon Allbery
On Sat, Apr 25, 2015 at 6:26 PM, Peng Yu pengyu...@gmail.com wrote: hs-language-c @0.4.7_0 (active) hs-mtl @2.1.3.1_1 (active) hs-quickcheck @2.6_3 (active) hs-random @1.0.1.1_5 (active) hs-syb @0.4.1_1 (active) Remove these ports and let cabal install the versions it wants. --

Re: How to compile git-annex?

2015-04-25 Thread Brandon Allbery
parsec-3.1.9 (reinstall) changes: mtl-2.1.3.1 - 2.2.1 mtl is almost certainly installed globally, and installing a private copy is likely to cause all sorts of problems (as indeed cabal told you). Since I see a bunch of yesod dependencies, I suspect you need to throw out your global Platform

Re: How to compile git-annex?

2015-04-25 Thread Brandon Allbery
On Sat, Apr 25, 2015 at 3:45 PM, Peng Yu pengyu...@gmail.com wrote: Why cabal install print so many irrelevant messages? Is it better to follow Unix Rule of Silence to only print usage error messages? This is not an irrelevant message: asn1-parse-0.9.0 (reinstall) changes: text-1.2.0.4 added

Re: How to compile git-annex?

2015-04-25 Thread Peng Yu
I clean up all Haskell related things in my home directory. rm -rf ~/.cabal rm -rf ~/Library/Haskell rm -rf ~.ghc/ cabal update cabal install cabal-install Then I try to install git-annex again, which shows me the following. What I should do next? ~$ cabal install git-annex Resolving

Re: How to compile git-annex?

2015-04-25 Thread Peng Yu
I don't have cabal. How to install cabal? Do I also install with MacPorts? On Sat, Apr 25, 2015 at 5:31 PM, Brandon Allbery allber...@gmail.com wrote: On Sat, Apr 25, 2015 at 6:26 PM, Peng Yu pengyu...@gmail.com wrote: hs-language-c @0.4.7_0 (active) hs-mtl @2.1.3.1_1 (active)

Re: How to compile git-annex?

2015-04-25 Thread Peng Yu
ghc is installed through macports (http://blog.omega-prime.co.uk/?p=96 says but if the version of GHC you need is in MacPorts I imagine that you can just do port install ghc.) I have the following MacPorts ports installed. How to make this work with macports? autoconf @2.69_3 (active) bash

Re: How to compile git-annex?

2015-04-25 Thread Brandon Allbery
On Sat, Apr 25, 2015 at 7:46 PM, Peng Yu pengyu...@gmail.com wrote: I don't have cabal. How to install cabal? Do I also install with MacPorts? Um? How were you doing ~$ cabal install git-annex if you don't have cabal? -- brandon s allbery kf8nh sine nomine

Re: How to compile git-annex?

2015-04-25 Thread Brandon Allbery
On Sat, Apr 25, 2015 at 7:46 PM, Peng Yu pengyu...@gmail.com wrote: I don't have cabal. How to install cabal? Do I also install with MacPorts? Turns out if you do that you end up with hs-mtl and friends which will conflict with yesod's dependencies. You'll probably have to do an install from

How to compile git-annex?

2015-04-25 Thread Peng Yu
Hi, I got too many error messages when I try to install git-annex. Is there a good way to fix them? Why cabal install print so many irrelevant messages? Is it better to follow Unix Rule of Silence to only print usage error messages? http://en.wikipedia.org/wiki/Unix_philosophy ~$ cabal install

Re: How to compile git-annex?

2015-04-25 Thread Peng Yu
On Sat, Apr 25, 2015 at 7:02 PM, Brandon Allbery allber...@gmail.com wrote: On Sat, Apr 25, 2015 at 7:46 PM, Peng Yu pengyu...@gmail.com wrote: I don't have cabal. How to install cabal? Do I also install with MacPorts? Turns out if you do that you end up with hs-mtl and friends which will

Re: How to compile git-annex?

2015-04-25 Thread Peng Yu
I installed ghc and cabal from source. But I still see the following error. Could anyone let me know what is wrong? And how to fix it? $ cabal install git-annex Resolving dependencies... Downloading HUnit-1.2.5.2... Downloading IfElse-0.85... Downloading SHA-1.6.4.2... Configuring

How to install cabal after building ghc from source

2015-04-25 Thread Peng Yu
Hi, I following the following instructions to install ghc from source. Could anybody let me know what is the appropriate step to install cabal? Thanks. https://mail.haskell.org/pipermail/haskell-cafe/2010-June/079204.html -- Regards, Peng ___

Re: How to install cabal after building ghc from source

2015-04-25 Thread Mikhail Glushenkov
Hi, On 26 April 2015 at 04:12, Peng Yu pengyu...@gmail.com wrote: Hi, I following the following instructions to install ghc from source. Could anybody let me know what is the appropriate step to install cabal? Thanks. Try the bootstrap.sh script [1]. [1]

Re: How to compile git-annex?

2015-04-25 Thread Brandon Allbery
On Sat, Apr 25, 2015 at 10:54 PM, Peng Yu pengyu...@gmail.com wrote: I installed ghc and cabal from source. But I still see the following error. Could anyone let me know what is wrong? And how to fix it? Looks like you have cabal configured to build profiling versions of things, but you built

Re: How to compile git-annex?

2015-04-25 Thread Brandon Allbery
On Sun, Apr 26, 2015 at 12:34 AM, Peng Yu pengyu...@gmail.com wrote: I have the following disabled. ~/.cabal$ grep prof config -- line to your ~/.bash_profile: -- library-profiling: True -- executable-profiling: False That's showing the defaults, commented out because that's what they do

Re: How to install cabal after building ghc from source

2015-04-25 Thread Mikhail Glushenkov
Hi, On 26 April 2015 at 04:26, Peng Yu pengyu...@gmail.com wrote: I get the following error. How to fix it? Try 'EXTRA_CONFIGURE_OPTS= ./bootstrap.sh' . ___ cabal-devel mailing list cabal-devel@haskell.org

Re: How to install cabal after building ghc from source

2015-04-25 Thread Peng Yu
I get the following error. How to fix it? ~/dvcs_src/cabal/cabal-install$ ./bootstrap.sh Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Using gcc for C compiler. If this is not what you want, set CC. Using

Re: Installation error of asn1-types

2015-04-25 Thread Adam Bergmark
HI Peng, Something might have messed up the hourglass-0.2.9 installation. I would try `ghc-pkg unregister hourglass` (`cabal sandbox hc-pkg unregister hourglass` if in a sandbox) and then trying again. HTH, Adam On Sat, Apr 25, 2015 at 2:12 AM, Peng Yu pengyu...@gmail.com wrote: I got the

Re: Installation error of asn1-types

2015-04-25 Thread Peng Yu
I got this. What shall I do next? ~$ ghc-pkg unregister hourglass ghc-pkg: unregistering hourglass would break the following packages: crypto-pubkey-types-0.4.3 asn1-encoding-0.9.0 asn1-types-0.3.0 (use --force to override) On Sat, Apr 25, 2015 at 2:09 AM, Adam Bergmark a...@bergmark.nl wrote: