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.
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.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
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:
On Fedora 19, I am getting this error:
http://pastebin.com/raw.php?i=c9SNjbXV
Mebus
Worked! I forgot to install c2hs.
Mebus
latest version (git-annex-5.20140517) during cabal install git-annex I encounter this:
@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.)