麒麟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}'

posted on   Gao科技  阅读(97)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理

统计

点击右上角即可分享
微信分享提示