{"thread":{"id":"20963","subject":"self contained executable","startedAt":"2009-09-16T07:45:12Z","lastAt":"2009-09-16T16:51:01Z","messageCount":4,"participants":["Joel Saltzman","Alex Riesen","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"123306","messageId":"ED42F58A-A814-467B-A37D-B485B2E267ED@gmail.com","threadId":"20963","inReplyTo":null,"subject":"self contained executable","fromName":"Joel Saltzman","fromEmail":"saltzmanjoelh@gmail.com","sentAt":"2009-09-16T07:45:12Z","receivedAt":"2009-09-16T07:45:12Z","isPatch":false,"sender":{"key":"saltzmanjoelh@gmail.com","avatar":null},"body":"is it possible to compile git with all its dependencies so I can run  \nit on a server that does not have root access?\n"},{"id":"123310","messageId":"81b0412b0909160113t7edf9b4vdd7b79ca0dae762d@mail.gmail.com","threadId":"20963","inReplyTo":"ED42F58A-A814-467B-A37D-B485B2E267ED@gmail.com","subject":"Re: self contained executable","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2009-09-16T08:13:57Z","receivedAt":"2009-09-16T08:13:57Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"On Wed, Sep 16, 2009 at 09:45, Joel Saltzman <saltzmanjoelh@gmail.com> wrote:\n> is it possible to compile git with all its dependencies so I can run it on a\n> server that does not have root access?\n\nThis is kind of default configuration (the install prefix is $HOME/,\nand everthing gets\ninstalled into ~/bin, ~/share, etc). But if you don't have some of the\nlibraries (libcurl\nfor http, eventually openssl and iconv) you can always provide them locally and\nset the appropriate compile and linking flags in config.mak (but see\nthe Makefile\nfor the variables to set).\n"},{"id":"123358","messageId":"81b0412b0909160944xe2ae0b4u988e8ced7416e5f6@mail.gmail.com","threadId":"20963","inReplyTo":"C3C630B6-7B54-42BE-9312-20BC20B7F051@gmail.com","subject":"Re: self contained executable","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2009-09-16T16:44:17Z","receivedAt":"2009-09-16T16:44:17Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"On Wed, Sep 16, 2009 at 18:36, Joel Saltzman <saltzmanjoelh@gmail.com> wrote:\n> The last part is what I am trying to figure out. How do I set those linking\n> flags?\n\nBelow, I assume you're a familiar with compilation.\n\nOpen Makefile and find the line \"Platform specific tweaks\".\nThat should be an example(s) for variables to set. Don't\nmind the ifeq's.\nOpen config.mak and put there all the -I$$HOME/... and\n-L$$HOME/... you need to reach the missing headers and\nlibraries. Your configuration will override the preset values.\n\nThat's almost it: you have to find out what exactly you're\nmissing on your own (for example, you may actually have\ncurl and openssl).\n"},{"id":"123360","messageId":"vpqy6oedea2.fsf@bauges.imag.fr","threadId":"20963","inReplyTo":"ED42F58A-A814-467B-A37D-B485B2E267ED@gmail.com","subject":"Re: self contained executable","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2009-09-16T16:51:01Z","receivedAt":"2009-09-16T16:51:01Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Joel Saltzman <saltzmanjoelh@gmail.com> writes:\n\n> is it possible to compile git with all its dependencies so I can run\n> it on a server that does not have root access?\n\nCompiling with LDFLAGS='-static' is a first step, I'm not sure it's\nsufficient.\n\nBut as Alex already pointed out, you don't have to be root to install\nGit anyway (I'm using a git that I compiled myself, without being root\non my machine).\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"}]}