git-annex is available in recent versions of Fedora. Although it is not currently a very recent version, it should work ok. status

Should be as simple as: yum install git-annex


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.

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 30 01:09:54 2013

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 typeURI' 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 (newURIrelativeTo` u)

Any help?

Mebus

Comment by http://mebus.pip.verisignlabs.com/ Tue Jul 30 20:41:07 2013
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 30 21:25:32 2013

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 

On Fedora 19, I am getting this error:

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

Mebus

Comment by http://mebus.myopenid.com/ Sat Oct 19 14:57:12 2013

Worked! I forgot to install c2hs.

Mebus

Comment by http://mebus.myopenid.com/ Sat Oct 19 15:09:34 2013
Comments on this page are closed.