self contained executable

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

self contained executable

Joel Saltzman
is it possible to compile git with all its dependencies so I can run  
it on a server that does not have root access?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: self contained executable

Alex Riesen
On Wed, Sep 16, 2009 at 09:45, Joel Saltzman <[hidden email]> 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).
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: self contained executable

Alex Riesen
On Wed, Sep 16, 2009 at 18:36, Joel Saltzman <[hidden email]> 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).
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: self contained executable

Matthieu Moy-2
In reply to this post by Joel Saltzman
Joel Saltzman <[hidden email]> 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/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html