How to compile git-annex?

Peng Yu pengyu.ut at gmail.com
Sat Apr 25 22:26:31 UTC 2015


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 @4.3.33_0 (active)
  bzip2 @1.0.6_0 (active)
  coreutils @8.23_1 (active)
  curl @7.42.0_0+ssl (active)
  curl-ca-bundle @7.42.0_0 (active)
  db48 @4.8.30_4 (active)
  db_select @0.1_2 (active)
  desktop-file-utils @0.22_0 (active)
  ed @1.2_0 (active)
  expat @2.1.0_0 (active)
  findutils @4.4.2_1 (active)
  gawk @4.1.1_2 (active)
  gdbm @1.11_1 (active)
  getopt @1.1.6_0 (active)
  gettext @0.19.4_0 (active)
  ghc @7.8.3_2 (active)
  git @2.3.5_0+credential_osxkeychain+doc+pcre+perl5_16+python27 (active)
  glib2 @2.44.0_0 (active)
  gmp @6.0.0_1 (active)
  gnutls @3.3.14_0 (active)
  grep @2.21_0 (active)
  gsed @4.2.2_0 (active)
  gzip @1.6_0 (active)
  hs-alex @3.1.3_1 (active)
  hs-c2hs @0.16.5_3 (active)
  hs-happy @1.19.4_1 (active)
  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)
  htop @0.8.2.2_0 (active)
  libcxx @3.6.0_0 (active)
  libedit @20140620-3.1_0 (active)
  libffi @3.2.1_0 (active)
  libiconv @1.14_0 (active)
  libidn @1.29_0 (active)
  libtasn1 @4.4_0 (active)
  libxml2 @2.9.2_2 (active)
  libxslt @1.1.28_0 (active)
  llvm-3.5 @3.5.2_3 (active)
  llvm_select @1.0_0 (active)
  m4 @1.4.17_0 (active)
  ncurses @5.9_2 (active)
  nettle @2.7.1_0 (active)
  openssl @1.0.2a_0 (active)
  p5.16-authen-sasl @2.160.0_0 (active)
  p5.16-cpan-meta @2.150.1_0 (active)
  p5.16-cpan-meta-requirements @2.133.0_0 (active)
  p5.16-cpan-meta-yaml @0.14.0_0 (active)
  p5.16-digest-hmac @1.30.0_0 (active)
  p5.16-digest-sha1 @2.130.0_4 (active)
  p5.16-error @0.170.230_0 (active)
  p5.16-file-slurp-tiny @0.3.0_0 (active)
  p5.16-gssapi @0.280.0_2 (active)
  p5.16-inc-latest @0.500.0_0 (active)
  p5.16-io-socket-ssl @2.12.0_0 (active)
  p5.16-module-build @0.421.100_0 (active)
  p5.16-module-metadata @1.0.27_0 (active)
  p5.16-net-libidn @0.120.0_4 (active)
  p5.16-net-smtp-ssl @1.20.0_0 (active)
  p5.16-net-ssleay @1.680.0_0 (active)
  p5.16-parse-cpan-meta @1.441.400_0 (active)
  p5.16-pathtools @3.470.0_1 (active)
  p5.16-perl-ostype @1.8.0_0 (active)
  p5.16-pod-escapes @1.70.0_0 (active)
  p5.16-pod-simple @3.300.0_0 (active)
  p5.16-podlators @2.5.3_1 (active)
  p5.16-scalar-list-utils @1.410.0_0 (active)
  p5.16-sub-uplevel @0.250.0_0 (active)
  p5.16-term-readkey @2.320.0_1 (active)
  p5.16-test-exception @0.380.0_0 (active)
  p5.16-test-nowarnings @1.40.0_1 (active)
  p5.16-test-simple @1.1.14_0 (active)
  p5.16-test-warn @0.300.0_0 (active)
  p5.16-tree-dag_node @1.260.0_0 (active)
  p5.16-version @0.991.200_0 (active)
  p11-kit @0.22.1_0 (active)
  pcre @8.36_0 (active)
  perl5 @5.16.3_0+perl5_16 (active)
  perl5.16 @5.16.3_1 (active)
  pkgconfig @0.28_0 (active)
  popt @1.16_0 (active)
  python27 @2.7.9_0 (active)
  python_select @0.3_4 (active)
  readline @6.3.003_0 (active)
  rsync @3.1.1_0 (active)
  sqlite3 @3.8.8.3_0 (active)
  xz @5.2.1_0 (active)
  zlib @1.2.8_0 (active)


On Sat, Apr 25, 2015 at 5:14 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
>> 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 installation because yesod does not bother with
> Platform compatibility and in fact breaks it completely. Get a minimal ghc
> and install Stackage, because that is the only install that yesod will
> tolerate. (And get used to a world where your choices are either to let
> yesod determine what you're allowed to install, or use a supposed standard
> that certain parts of the Haskell world believe they have a mission to
> destroy.)
>
>
> On Sat, Apr 25, 2015 at 6:01 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>>
>> 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 dependencies...
>> In order, the following would be installed:
>> HUnit-1.2.5.2 (new package)
>> SafeSemaphore-0.10.1 (new package)
>> ansi-terminal-0.6.2.1 (new package)
>> ansi-wl-pprint-0.6.7.2 (new package)
>> appar-0.1.4 (new package)
>> async-2.0.2 (new package)
>> auto-update-0.1.2.1 (new package)
>> base16-bytestring-0.1.1.6 (new package)
>> base64-bytestring-1.0.0.1 (new package)
>> blaze-builder-0.4.0.1 (new package)
>> blaze-markup-0.7.0.2 (new package)
>> blaze-html-0.8.0.2 (new package)
>> bloomfilter-2.0.0.0 (new package)
>> byteable-0.1.1 (new package)
>> byteorder-1.0.4 (new package)
>> bytestring-builder-0.10.6.0.0 (new package)
>> cereal-0.4.1.1 (new package)
>> clock-0.4.5.0 (new package)
>> cryptohash-0.11.6 (new package)
>> data-default-class-0.0.1 (new package)
>> data-default-instances-base-0.0.1 (new package)
>> data-default-instances-containers-0.0.1 (new package)
>> data-default-instances-old-locale-0.0.1 (new package)
>> dataenc-0.14.0.7 (new package)
>> dlist-0.7.1.1 (new package)
>> data-default-instances-dlist-0.0.1 (new package)
>> data-default-0.5.3 (new package)
>> cookie-0.4.1.4 (new package)
>> easy-file-0.2.0 (new package)
>> edit-distance-0.2.1.2 (new package)
>> entropy-0.3.6 (new package)
>> fast-logger-2.3.1 (new package)
>> file-embed-0.0.8.2 (new package)
>> gnuidn-0.2.1 (new package)
>> hashable-1.2.3.2 (new package)
>> case-insensitive-1.2.0.4 (new package)
>> hourglass-0.2.9 (new package)
>> asn1-types-0.3.0 (new package)
>> http-types-0.8.6 (new package)
>> iproute-1.4.0 (new package)
>> mime-mail-0.4.8.2 (new package)
>> mime-types-0.1.0.6 (new package)
>> monad-loops-0.4.2.1 (new package)
>> nats-1 (new package)
>> network-info-0.2.0.5 (new package)
>> network-multicast-0.0.11 (new package)
>> parallel-3.2.0.6 (new package)
>> path-pieces-0.2.0 (new package)
>> prelude-extras-0.4 (new package)
>> reflection-1.5.1.2 (new package)
>> safe-0.3.8 (new package)
>> scientific-0.3.3.8 (new package)
>> attoparsec-0.12.1.6 (new package)
>> css-text-0.1.2.1 (new package)
>> email-validate-2.1.1 (new package)
>> http-date-0.0.6 (new package)
>> securemem-0.1.7 (new package)
>> crypto-cipher-types-0.0.9 (new package)
>> cipher-aes-0.2.10 (new package)
>> cipher-des-0.0.6 (new package)
>> cipher-rc4-0.1.4 (new package)
>> setenv-0.1.1.3 (new package)
>> silently-1.2.4.1 (new package)
>> simple-sendfile-0.2.18 (new package)
>> socks-0.5.4 (new package)
>> stm-chans-3.0.0.3 (new package)
>> stringsearch-0.3.6.6 (new package)
>> system-filepath-0.4.13.3 (new package)
>> system-fileio-0.3.16.2 (new package)
>> tagged-0.8.0.1 (new package)
>> tagsoup-0.13.3 (new package)
>> transformers-0.4.3.0 (new version)
>> StateVar-1.1.0.0 (new package)
>> crypto-api-0.13.2 (new package)
>> gsasl-0.3.5 (new package)
>> mmorph-1.0.4 (new package)
>> monads-tf-0.1.0.2 (new package)
>> gnutls-0.1.5 (new package)
>> mtl-2.2.1 (new version)
>> IfElse-0.85 (new package)
>> asn1-encoding-0.9.0 (new package)
>> asn1-parse-0.9.0 (new package)
>> crypto-pubkey-types-0.4.3 (new package)
>> hfsevents-0.1.5 (new package)
>> hslogger-1.2.8 (new package)
>> parsec-3.1.9 (reinstall) changes: mtl-2.1.3.1 -> 2.2.1
>> bencode-0.5.0.1 (new package)
>> json-0.9.1 (new package)
>> network-uri-2.6.0.1 (reinstall)
>> pem-0.2.2 (new package)
>> primitive-0.6 (new package)
>> regex-base-0.93.2 (new package)
>> regex-posix-0.95.2 (new package)
>> regex-compat-0.95.1 (new package)
>> MissingH-1.3.0.1 (new package)
>> regex-tdfa-1.2.0 (new package)
>> skein-1.0.9.3 (new package)
>> streaming-commons-0.1.12 (new package)
>> torrent-10000.0.0 (new package)
>> transformers-compat-0.4.0.4 (new package)
>> MonadRandom-0.3.0.2 (new package)
>> distributive-0.4.4 (new package)
>> exceptions-0.8.0.2 (new package)
>> optparse-applicative-0.11.0.2 (new package)
>> transformers-base-0.4.4 (new package)
>> monad-control-1.0.0.4 (new package)
>> lifted-base-0.2.3.6 (new package)
>> enclosed-exceptions-1.0.1.1 (new package)
>> resourcet-1.1.4.1 (new package)
>> unix-compat-0.4.1.4 (new package)
>> unix-time-0.3.5 (new package)
>> unordered-containers-0.2.5.1 (new package)
>> semigroups-0.16.2.2 (new package)
>> utf8-string-1 (new package)
>> language-javascript-0.5.13.3 (new package)
>> hjsmin-0.1.4.7 (new package)
>> publicsuffixlist-0.1 (new package)
>> http-client-0.4.11.1 (new package)
>> uuid-types-1.0.1 (new package)
>> uuid-1.3.10 (new package)
>> vault-0.3.0.4 (new package)
>> vector-0.10.12.3 (new package)
>> aeson-0.8.0.2 +old-locale (new package)
>> crypto-random-0.0.9 (new package)
>> cprng-aes-0.6.1 (new package)
>> clientsession-0.9.1.1 (new package)
>> crypto-numbers-0.2.7 (new package)
>> crypto-pubkey-0.2.8 (new package)
>> mwc-random-0.13.3.2 (new package)
>> resource-pool-0.2.3.2 (new package)
>> shakespeare-2.0.4.1 (new package)
>> hamlet-1.2.0 (new package)
>> void-0.7 (new package)
>> conduit-1.2.4 (new package)
>> conduit-extra-1.1.7.2 (new package)
>> contravariant-1.3.1 (new package)
>> comonad-4.2.5 (new package)
>> cryptohash-conduit-0.1.1 (new package)
>> dns-1.4.5 (new package)
>> monad-logger-0.3.13.1 (new package)
>> persistent-2.1.3 (new package)
>> esqueleto-2.1.3 (new package)
>> persistent-sqlite-2.1.4.1 (new package)
>> persistent-template-2.1.3 (new package)
>> semigroupoids-4.3 (new package)
>> bifunctors-4.2.1 (new package)
>> profunctors-4.4.1 (new package)
>> free-4.11 (new package)
>> adjunctions-4.2 (new package)
>> either-4.3.3.2 (new package)
>> errors-1.4.7 (new package)
>> kan-extensions-4.2.1 (new package)
>> lens-4.9.1 (new package)
>> wai-3.0.2.3 (new package)
>> wai-logger-2.2.4 (new package)
>> warp-3.0.12.1 (new package)
>> word8-0.1.2 (new package)
>> wai-extra-3.0.7.1 (new package)
>> wai-app-static-3.0.1 (new package)
>> x509-1.5.0.1 (new package)
>> x509-store-1.5.0 (new package)
>> x509-system-1.5.0 (new package)
>> x509-validation-1.5.1 (new package)
>> tls-1.2.17 (new package)
>> connection-0.2.4 (new package)
>> http-client-tls-0.2.2 (new package)
>> http-conduit-2.1.5 (new package)
>> warp-tls-3.0.3 (new package)
>> xml-types-0.3.4 (new package)
>> libxml-sax-0.7.5 (new package)
>> network-protocol-xmpp-0.4.6 (new package)
>> xml-conduit-1.2.4 (new package)
>> aws-0.11.4 (new package)
>> tagstream-conduit-0.5.5.3 (new package)
>> authenticate-1.3.2.11 (new package)
>> xml-hamlet-0.4.0.10 (new package)
>> DAV-1.0.4 (new package)
>> xss-sanitize-0.3.5.5 (new package)
>> yaml-0.8.11 (new package)
>> yesod-core-1.4.9.1 (new package)
>> yesod-default-1.2.0 (new package)
>> yesod-persistent-1.4.0.2 (new package)
>> yesod-form-1.4.4.1 (new package)
>> yesod-auth-1.4.4 (new package)
>> yesod-1.4.1.5 (new package)
>> yesod-static-1.4.0.4 (new package)
>> git-annex-5.20150420 -testsuite -feed (new package)
>> cabal: The following packages are likely to be broken by the reinstalls:
>> HTTP-4000.2.19
>> Use --force-reinstalls if you want to install anyway.
>>
>>
>> On Sat, Apr 25, 2015 at 4:18 PM, Brandon Allbery <allbery.b at gmail.com>
>> wrote:
>> >
>> > On Sat, Apr 25, 2015 at 3:45 PM, Peng Yu <pengyu.ut at 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
>> >
>> >
>> > It's an indication that things are about to go very wrong, as indeed
>> > they
>> > did. In fact, the errors you got indicate quite a lot of problems with
>> > your
>> > Haskell installation; you apparently have a bunch of broken packages.
>> >
>> > --
>> > brandon s allbery kf8nh                               sine nomine
>> > associates
>> > allbery.b at gmail.com
>> > ballbery at sinenomine.net
>> > unix, openafs, kerberos, infrastructure, xmonad
>> > http://sinenomine.net
>>
>>
>>
>> --
>> Regards,
>> Peng
>
>
>
>
> --
> brandon s allbery kf8nh                               sine nomine associates
> allbery.b at gmail.com                                  ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net



-- 
Regards,
Peng


More information about the cabal-devel mailing list