作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Pydroid3 并想在 Pydroid 终端中使用 Git。
在我的 Termux 终端中,我能够安装 Git,如下所述:Python and Git on Android
git 命令现在只能在 Termux 终端中识别,但不能在 Pydroid 中识别 :(。无法在 Pydroid 终端中使用 apt-get 安装 Git。
有人设法为 Pydroid 安装 Git 吗?
最佳答案
这对我有用;如果失败,您可能需要调整 curl 或配置命令。我暂时没有研究 ssh,只有 https。
# 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"
关于android - 在 Pydroid 3 终端中安装 Git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58672168/
我正在使用 Pydroid3 并想在 Pydroid 终端中使用 Git。 在我的 Termux 终端中,我能够安装 Git,如下所述:Python and Git on Android git 命令
我目前正在使用(三星的)Android 设备 Pydroid 3。 我试图查看任何图表,但它不起作用。 当我运行代码时,它只是暂时显示黑屏,然后返回到源代码编辑窗口。 (这意味着我什至看不到终端屏幕,
我正在使用 PyGame 在 Python 中开发适用于 Android 的手机游戏。因此出于调试目的,我经常使用 PyDroid,它基本上是一个用于在 Android 移动设备上编辑 Python
我是一名优秀的程序员,十分优秀!