如何建立与静态链接混帐? [英] How to build git with static linking?

查看:154
本文介绍了如何建立与静态链接混帐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载的git源从 https://github.com/git/git 作为一个zip文件。

我是解压到的/ home /桌面/尼/ git的(使用Ubuntu)。

现在教程这里说我应该跑

  ./配置 -  preFIX = /家庭/尼/ git的静态CFLAGS =$ {CFLAGS} -static

从上述文件夹中建立的git的一步。

但Git的源不会出现有一个配置文件,在它的,我可以运行的根文件夹(只有configure.ac,我怀疑是不是我要找的)。

我缺少的是在这里吗?如何手动建立混帐?

我这样做是因为我试图让git的共享托管服务器的地方,我无法安装混帐上工作。


解决方案

阅读在解压文件的根文件夹的INSTALL文件,似乎还有它的一些有用的指令,我怀疑:


  

另外,您可以用autoconf生成的./configure脚本
  设置安装路径(通过config.mak.autogen),所以你可以代替写


  $使配置;#如己
    $的./configure - preFIX =的/ usr;#如己
    $使所有文档;#如己
    #make install的安装-doc的安装-HTML;#为根

或者只是:

  $使preFIX =的/ usr所有文档信息;#如己
    #使preFIX =的/ usr安装安装-doc的安装,安装HTML-INFO;#为根

I downloaded git source from https://github.com/git/git as a zip file.

I extracted it into /home/Desktop/denis/git (using Ubuntu).

Now the tutorial here says that I should run

./configure --prefix=/home/denis/git-static CFLAGS="${CFLAGS} -static"

from the above mentioned folder as a step for building git.

But the git source does not appear to have a configure file in it's root folder which I can run (only configure.ac, which I suspect is not what I'm looking for).

What am I missing here? How to build git manually?

I'm doing this because I'm trying to get git working on a shared hosting server where I'm not able to install git.

解决方案

Read the INSTALL file in the root folder of the unzipped file, it seems there is some useful instruction in it, what I suspect:

Alternatively you can use autoconf generated ./configure script to set up install paths (via config.mak.autogen), so you can write instead

    $ make configure ;# as yourself
    $ ./configure --prefix=/usr ;# as yourself
    $ make all doc ;# as yourself
    # make install install-doc install-html;# as root

or just simply:

    $ make prefix=/usr all doc info ;# as yourself
    # make prefix=/usr install install-doc install-html install-info ;# as root

这篇关于如何建立与静态链接混帐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆