简体   繁体   English

如何在Linux中安装特定版本的git commit库?

[英]How do I install a specific version of a git commit library in Linux?

How to install a specific version of git commit in Linux? 如何在Linux中安装特定版本的git commit? When any program requests for the library it should take from the installation. 当任何程序请求该库时,应从安装中获取。

Eg: The following version of wiringPi is required by one of my c++ program. 例如:我的c ++程序之一需要以下版本的connectioningPi。

git://git.drogon.net/wiringPi
Version: 5edd177112c99416f68ba3e8c6c4db6ed942e796

Add a checkout statement after you clone? 克隆后添加结帐单吗?

Eg: 例如:

git clone git://git.drogon.net/wiringPi
git checkout 5edd177112c99416f68ba3e8c6c4db6ed942e796

Then you type the build and installation commands - if you want everything to use it, it probably needs to go in the default location. 然后,您输入构建和安装命令-如果您希望所有内容都使用它,则可能需要将其放置在默认位置。 For the package you're looking at the documentation says it's: 对于该软件包,您正在查看的文档说:

./build

If you already have a version from a package manager (like apt you should remove that first - the README.md from the package you linked explains how to do this) 如果您已经从软件包管理器获得了一个版本(如apt ,则应先删除该版本-您链接的软件包中的README.md解释了如何执行此操作)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM