Compile git for 32-bit linux on shared hosting

前端 未结 3 439
梦谈多话
梦谈多话 2021-01-18 03:25

I need to set up the Git client on a cheap shared hosting, with a no-name 32-bit Linux distribution. GCC isn\'t available so I can\'t compile it on the server. I do have at

3条回答
  •  悲&欢浪女
    2021-01-18 03:43

    Your best bet is trying to compile git as a static binary. Your binary probably have different shared libraries versions (or even, not all dependencies installed).

    This link:

    How to build git for a host with no compiler

    Provides information on how to build git as a static binary.

    This stackoverflow answer provides information on how to cross compile it from a 64 bit host.

    Hope this helps.

提交回复
热议问题