麒麟Linux上编译subversion
麒麟Linux上编译subversion
svn-1.7[1]不支持svn info --show-item=revision
获取revision.
svn-1.12开始不能保存密码stackoverflow.
源码编译svn-1.10: https://subversion.apache.org/download.cgi
yum install apr-devel apr-util-devel lz4-devel utf8proc-devel libserf-devel ./configure --prefix=/usr/local --with-serf
麒麟V10软件库中没有libserf-devel(麒麟V10sp1有), 可以配置对应版本的epel,比如V10使用CENTOS7的epel.
根据configure提示操作
get the sqlite 3.8.11.1 amalgamation from:
https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip
unpack the archive using unzip and rename the resulting
directory to:
/root/subversion-1.10.7/sqlite-amalgamation
./configure --prefix=/usr/local --with-serf make make install
如果svn co没有提示保存密码, 看看svn auth数据, 如果不是Password cache: simple
修改~/.subversion/config, password-stores = simple
修改~/.subversion/config, store-passwords = yes
[1] 可以通过svn info | grep Revision: | awk '{print $2}'
. 如果是中文, LANG=C svn info | grep Revision: | awk '{print $2}'
打印当前目录revision: svn info | grep "Last Changed Rev" | awk '{print $4}'
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理