开发者

What are the files from the 'make' of git that I actually need to run git?

开发者 https://www.devze.com 2023-01-06 20:08 出处:网络
I\'m trying to \"portablize\" git, so I want to send the required executables from the make process of git to my hosted web server. Can I do that? Do 开发者_JS百科you think the executables will work?T

I'm trying to "portablize" git, so I want to send the required executables from the make process of git to my hosted web server. Can I do that? Do 开发者_JS百科you think the executables will work?


The way I do it is to:

  • get all Git dependencies (as listed in this Solaris package site, but this works for any Unix platform)
  • compile those dependencies with --prefix=/home/myuser and install them in the usr/local/lib of my home directory
  • then compile Git (still avoiding any reference to a system path like /usr/local/lib, but only using the lib and include within my homedir)
  • and install Git in the /home/myuser/git directory

I can then copy only /home/myuser/git and /home/myuser/usr/local (and $prefix/libexec/git-core as Jakub mentions in the comments) to any other similar server, knowing it will work in isolation from any existing system libraries.

0

精彩评论

暂无评论...
验证码 换一张
取 消