linux - Standalone git binary on server with repository viewer -


i have server company. on server git not installed (and not in near future). (on many free server hosting sites, git not installed)

is there way use git binary without having git installed (therefore without needed dependencies in folder, standalone)?

another server no option me.

i want git web git repository viewer, of course need git binary working in folder, maybe there web git repository viewer integrated git binary.


i tried:

the server os linux 64 bit. have copied git binary local linux executable path on server. did not work. dependencies. these libraries needed:

  • libz.so.1
  • libresolv.so.2
  • libpthread.so.0
  • libpcre.so.3
  • libc.so.6

they links libraries named:

  • libz.so.1.2.7
  • libresolv-2.17.so
  • libpthread-2.17.so
  • libpcre.so.3.13.1
  • libc-2.17.so

so renamed libraries , copied them server git binary lies. unfortunately git binary looks in /lib/linux-64-gnu... os folder libraries, not in same folder. have no idea try next.

here solution:

  1. i downloaded , installed ubuntu 13 on windows pc same architecture server want copy standalone git binary. architecture x86_64 stands 64 bit. download link http://www.ubuntu.com/download/desktop
  2. i burned disk, booted cd. username 'ubuntu', needed one, installed ubuntu on usb-stick 32gb.
  3. i downloaded git tarball file: 'git-1.7.3.tar.bz2' , extracted command 'tar -jxvf git-1.7.3.tar.bz2' in terminal after used command 'cd ~/downloads' directory, downloaded tarball git file is. download link code.google.com/p/kakola/downloads/detail?name=git-1.7.3.5.tar.bz2&can=2&q= (found googling 'git .tar.bz2')
  4. now there directory beside .tar.bz2 file, go 'cd git-1.7.3.5'
  5. just make sure installed every command mentioned other websites useful 'sudo apt-get install libexpat1-dev asciidoc libz-dev gettext curl'
  6. i created directory @ path, bin should on server, because have home access must in home folder, 'mkdir /home/git'
  7. then used command './configure --prefix=/home/git/bin cflags="${cflags} -static" no_openssl=1 no_curl=1' fill extracted folder config file: 'config.mak.autogen'
  8. after made 'make' , 'make doc' create files , 'install' , 'make install-doc' , directory wanted git binary filled these files (pretty big 364mb on stick)
  9. downloaded gitlist , uploaded server , uploaded whole created folder binaries gitlist folder.
  10. changed config.ini gitlist use standalone binary of git, instead of path (also changed projects path)

gitlist finds repository , shows in list view

(with gitweb got error, gitlist seems ok)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -