首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Pydroid 3终端中安装Git

在Pydroid 3终端中安装Git
EN

Stack Overflow用户
提问于 2019-11-02 22:47:51
回答 1查看 2.6K关注 0票数 3

我正在使用Pydroid3,并且想在Pydroid Terminal中使用Git。

在我的Termux终端中,我能够安装Git,如下所述:Python and Git on Android

git命令现在只能在Termux终端中识别,而不能在Pydroid中识别:(.无法在Pydroid终端中使用apt-get安装Git。

有没有人设法为Pydroid安装了Git?

EN

回答 1

Stack Overflow用户

发布于 2021-06-21 17:50:23

这对我很有效;如果失败,您可能需要调整curl或configure命令。我现在还没有研究过ssh,只研究了https。

代码语言:javascript
复制
# enter dev folder
cd $HOME

# set a prefix variable for convenience
export PREFIX="$(readlink -f "$PKG_CONFIG_PATH"/../..)"

# if you want git-remote-https, first build and install curl
curl -LO https://curl.se/download/curl-7.77.0.tar.bz2
tar -jxvf curl-7.77.0.tar.bz2
cd curl-7.77.0
./configure --prefix="$PREFIX" --disable-static --with-openssl --with-ca-path=/system/etc/security/cacerts --with-ca-bundle="$SSL_CERT_FILE"
make -j8 install
cd ..

# download and enter git sources
curl -LO https://www.kernel.org/pub/software/scm/git/git-2.32.0.tar.gz
tar -zxvf git-2.32.0.tar.gz
cd git-2.32.0

# reconfigure git for platform
./configure --prefix="$PREFIX" --without-tcltk --disable-pthreads LDFLAGS="-lssl -lcrypto -lz"

# if you didn't install curl, download autoconf's install script since there is no coreutils on android
# curl "http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob_plain;f=build-aux/install-sh;hb=HEAD" -o install
# otherwise copy curl's install script in
cp ../curl-*/install-sh install

# build and install git
make -j8 install INSTALL="sh $(pwd)/install"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58672168

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档