git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* self contained executable
@ 2009-09-16  7:45 Joel Saltzman
  2009-09-16  8:13 ` Alex Riesen
  2009-09-16 16:51 ` Matthieu Moy
  0 siblings, 2 replies; 4+ messages in thread
From: Joel Saltzman @ 2009-09-16  7:45 UTC (permalink / raw)
  To: git

is it possible to compile git with all its dependencies so I can run  
it on a server that does not have root access?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: self contained executable
  2009-09-16  7:45 self contained executable Joel Saltzman
@ 2009-09-16  8:13 ` Alex Riesen
       [not found]   ` <C3C630B6-7B54-42BE-9312-20BC20B7F051@gmail.com>
  2009-09-16 16:51 ` Matthieu Moy
  1 sibling, 1 reply; 4+ messages in thread
From: Alex Riesen @ 2009-09-16  8:13 UTC (permalink / raw)
  To: Joel Saltzman; +Cc: git

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).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: self contained executable
       [not found]   ` <C3C630B6-7B54-42BE-9312-20BC20B7F051@gmail.com>
@ 2009-09-16 16:44     ` Alex Riesen
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Riesen @ 2009-09-16 16:44 UTC (permalink / raw)
  To: Joel Saltzman; +Cc: Git Mailing List

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).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: self contained executable
  2009-09-16  7:45 self contained executable Joel Saltzman
  2009-09-16  8:13 ` Alex Riesen
@ 2009-09-16 16:51 ` Matthieu Moy
  1 sibling, 0 replies; 4+ messages in thread
From: Matthieu Moy @ 2009-09-16 16:51 UTC (permalink / raw)
  To: Joel Saltzman; +Cc: git

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-16 16:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16  7:45 self contained executable Joel Saltzman
2009-09-16  8:13 ` Alex Riesen
     [not found]   ` <C3C630B6-7B54-42BE-9312-20BC20B7F051@gmail.com>
2009-09-16 16:44     ` Alex Riesen
2009-09-16 16:51 ` Matthieu Moy

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).