is it possible to compile git with all its dependencies so I can run it on a server that does not have root access?
Re: self contained executable
On Wed, Sep 16, 2009 at 09:45, Joel Saltzman <saltzmanjoelh@gmail.com> wrote:
> is it possible to compile git with all its dependencies so I can run it on a > server that does not have root access?
This is kind of default configuration (the install prefix is $HOME/, and everthing gets installed into ~/bin, ~/share, etc). But if you don't have some of the libraries (libcurl for http, eventually openssl and iconv) you can always provide them locally and set the appropriate compile and linking flags in config.mak (but see the Makefile for the variables to set).
Re: self contained executable
Joel Saltzman <saltzmanjoelh@gmail.com> writes:
> is it possible to compile git with all its dependencies so I can run > it on a server that does not have root access?
Compiling with LDFLAGS='-static' is a first step, I'm not sure it's sufficient.
But as Alex already pointed out, you don't have to be root to install Git anyway (I'm using a git that I compiled myself, without being root on my machine).
-- Matthieu Moy http://www-verimag.imag.fr/~moy/
Re: self contained executable
On Wed, Sep 16, 2009 at 18:36, Joel Saltzman <saltzmanjoelh@gmail.com> wrote:
> The last part is what I am trying to figure out. How do I set those linking > flags?
Below, I assume you're a familiar with compilation.
Open Makefile and find the line "Platform specific tweaks". That should be an example(s) for variables to set. Don't mind the ifeq's. Open config.mak and put there all the -I$$HOME/... and -L$$HOME/... you need to reach the missing headers and libraries. Your configuration will override the preset values.
That's almost it: you have to find out what exactly you're missing on your own (for example, you may actually have curl and openssl).