git-annex/ install/ Fedora

git-annex is available in recent versions of Fedora. status

Should be as simple as: `yum install git-annex`

Note: Fedora's build does not currently include the git-annex webapp.

To install the latest version of git-annex on Fedora 18 and later, you can use `cabal`:

    # Install dependencies
    sudo yum install libxml2-devel gnutls-devel libgsasl-devel ghc cabal-install happy alex libidn-devel
    # Update the cabal list
    cabal update
    # Install c2hs, required by dependencies of git-annex, but not automatically installed
    cabal install --bindir=$HOME/bin c2hs
    # Install git-annex
    cabal install --bindir=$HOME/bin git-annex

Older version? Here's an installation recipe for Fedora 14 through 15.

    sudo yum install ghc cabal-install
    git clone git://git-annex.branchable.com/ git-annex
    cd git-annex
    git checkout ghc7.0
    cabal update
    cabal install --only-dependencies
    cabal configure
    cabal build
    cabal install --bindir=$HOME/bin

Note: You can't just use `cabal install git-annex`, because Fedora does not yet ship ghc 7.4.

comment 8

@Michele, you seem to have an old version of the haskell DAV library installed. The simple solutions is probably `cabal install DAV` to upgrade to the new one.

(The complex solution is to edit the file and copy the line 2 lines above the error, or fix the ifdefs somehow to work with whatever combination of versions of DAV and http-client or http-conduit you have installed.)

Comment by http://joeyh.name/ — Tue Jul 22 18:11:47 2025
building fails on fedora 19

latest version (git-annex-5.20140517) during cabal install git-annex I encounter this:

[[!format sh """ [266 of 457] Compiling Remote.WebDAV ( Remote/WebDAV.hs, dist/build/git-annex/git-annex-tmp/Remote/WebDAV.o )

Remote/WebDAV.hs:380:32: Constructor `StatusCodeException' should have 3 arguments, but has been given 2 In the pattern: StatusCodeException s _ In an equation for`matchStatusCodeException': matchStatusCodeException want (StatusCodeException s _) | s == want = Just () | otherwise = Nothing Failed to install git-annex-5.20140517 cabal: Error: some packages failed to install: git-annex-5.20140517 failed during the building phase. The exception was: ExitFailure 1 """]]

Comment by https://www.google.com/accounts/o8/id?id=AItOawkJafmCf-sg9_OM0pynFYM3AO4WCgJiaMI — Tue Jul 22 18:11:47 2025
comment 6

Worked! I forgot to install c2hs.

Mebus

Comment by http://mebus.myopenid.com/ — Tue Jul 22 18:11:47 2025
Error on Fedora 19

On Fedora 19, I am getting this error:

http://pastebin.com/raw.php?i=c9SNjbXV

Mebus

Comment by http://mebus.myopenid.com/ — Tue Jul 22 18:11:47 2025
installing on fc19

i share my experience in installing from source on fc19, I must admit these are useful only for haskell novices: should cabal complain about missing libffi.so.5 (as it happened to me), do

     yum install compat-libffi

and you'll get the missing library (the shipping version with fc19 is libffi.so.6) also: in order for the git annex to be picked up globally or better to end up in the default path i had to:

     cabal install --global

Comment by https://www.google.com/accounts/o8/id?id=AItOawkJafmCf-sg9_OM0pynFYM3AO4WCgJiaMI — Tue Jul 22 18:11:47 2025
comment 3
Edit Utility/Url.hs and play around with the version in the `MIN_VERSION_network` define. It seems to me that your system needs to build with the #else branch of the #ifdef, despite having a version of the haskell network package older than 2.4.0. It's possible that the haskell network package has been modified by Fedora.
Comment by http://joeyh.name/ — Tue Jul 22 18:11:47 2025
comment 2

When I try to build in from source on Fedora 17, I get this error:

[ 77 of 163] Compiling Utility.DiskFree ( Utility/DiskFree.hs, dist/build/git-annex/git-annex-tmp/Utility/DiskFree.o ) [ 78 of 163] Compiling Utility.Url ( Utility/Url.hs, dist/build/git-annex/git-annex-tmp/Utility/Url.o )

Utility/Url.hs:111:88: Couldn't match expected type `Maybe URI' with actual type`URI' In the second argument of `fromMaybe', namely` (newURI `relativeTo` u)' In the expression: fromMaybe newURI (newURI `relativeTo` u) In an equation for `newURI_abs': newURI_abs = fromMaybe newURI (newURI`relativeTo` u)

Any help?

Mebus

Comment by http://mebus.pip.verisignlabs.com/ — Tue Jul 22 18:11:47 2025
RPM of version 4.2

Hi!

Isn't there an rpm package of version 4.2 available for Fedora 17 or 18?

Thanks!

Mebus

Comment by http://mebus.myopenid.com/ — Tue Jul 22 18:11:47 2025
Comments on this page are closed.