forum/Using Linux static builds git-annex git-annex ikiwiki 2013-11-27T22:47:37Z comment 1 2013-11-27T22:47:37Z 2012-10-09T15:10:45Z <p>Yes, it seems glibc 2.11 is the oldest version you can get away with. At least until we get a build machine with some truely ancient libc, but modern versions of everything else. Statically linking libc, or including it in the tarball are unfortunatly not technically possible.</p> <p>You don't need to use runshell if you just want to use the assistant. Which is what this static build is really targeted for. If you want to use all of git-annex, you're probably better off installing it properly. It is possible to use "runshell git annex" to run a single command inside the shell. Or even make shell script wrappers that do that.. but it seems more difficult than installing git-annex normally.</p> <p>The static build can be used with ssh. The git-annex assistant should set things up properly. If you want to do it by hand, when it does is configure the ssh key to run ~/.ssh/git-annex-shell, and that file is then made a shell script that runs <code>runshell git-annex-shell -c "$SSH_ORIGINAL_COMMAND"</code></p> comment 2 Florian 2013-11-27T22:47:37Z 2012-10-10T10:48:04Z Installing it properly seems to be quite a bit of effort, given the long list of Haskell dependencies. Most of the machines I plan to use it on are not under my control and seem to be somewhat outdated. What way of installing it properly would you suggest? comment 3 2013-11-27T22:47:37Z 2012-11-12T05:05:39Z <p>Hi Florian,</p> <p>I maintain a makefile for GNU/Linux systems that builds git-annex from scratch using a single command.</p> <pre><code>git clone nice make -f CONCURRENCY_LEVEL=16 PREFIX=$HOME/usr/rhel6-x64_64 install-git-annex </code></pre> <p>The makefile fetches pre-compiled GHC 6.x (x86_64), which works on old systems (e.g. RHEL 5), builds a recent GHC 7.x from source, a minimal Haskell environment with cabal-install, and finally git-annex. I have succesfully compiled git-annex on RHEL 5.x and 6.x, and CentOS 6.x.</p> <p>If the build fails using the system's GCC, there is also a newer GCC in the same makefile:</p> <pre><code>nice make -f CONCURRENCY_LEVEL=16 PREFIX=$HOME/usr/rhel6-x64_64 install-gcc </code></pre> <p>Regards, Peter</p>