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
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 offromMaybe', namely
(newURIrelativeTo
u)' In the expression: fromMaybe newURI (newURIrelativeTo
u) In an equation fornewURI_abs': newURI_abs = fromMaybe newURI (newURI
relativeTo` u)Any help?
Mebus
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.