新的电脑上手几天了,在带到公司用的时候,发现系统不再自带 svn.以下是我发现几个可以使用 svn 的方法.
在用 homebrew 编译安装 subversion 的时候,会碰到 machine arm64-apple not recognized
的提示. 这是因为 svn 的编译脚本不认识苹果新的 cpu. 这时候 svn 的相关依赖都是已经安装完成的, 只需要改一下编译脚本手动编译就行.
wget http://mirrors.ustc.edu.cn/gentoo/distfiles/subversion-1.14.0.tar.bz2 tar xf subversion-1.14.0.tar.bz2 cd subversion-1.14.0 vim build/config.sub # 进入 vim 修改 257 行附近, 在这个 case 语句内加上 arm64-apple, 然后保存退出 ./configure --prefix=/opt/homebrew/Cellar/subversion/1.14.0 --with-apr=/opt/homebrew/opt/apr --with-apr-util=/opt/homebrew/opt/apr-util --with-utf8proc=/opt/homebrew/opt/utf8proc make make install brew link subversion # 安装完成,看下能不能用,是不是 arm64 的二进制 svn --version file $(which svn)
1 maxmak 2020-11-27 11:50:26 +08:00 不是只有我用 ftp 吧,项目 1.0,项目 2.0,这样文件夹 |
![]() | 2 xuhaoyangx 2020-11-27 14:57:37 +08:00 用 git svn |
3 hahaFck 2020-11-27 15:22:41 +08:00 m1 还是太折腾了 |
4 PaulPan 2021-01-05 10:54:01 +08:00 老哥稳 |
![]() | 5 CatSayInk 2021-01-21 17:54:19 +08:00 我这边 svn 项目拉下来之后会疯狂报错 Some errors occurred while accessing svn working copy database.MacBook Air M1 svn 用 homebrew 装的 1.14 版本 直接就是 arm64 版本 好像不需要你上面说的那些步骤 你有遇到过这个报错吗 |
8 mz2300 2021-02-20 17:06:55 +08:00 |
![]() | 11 jaymia0 2022-08-29 15:42:26 +08:00 ![]() macOS 12.4 版本,使用 brew86 install [email protected] 可以直接安装(注意可能需要修改 PATH 环境变量) brew86 的命令可以参考: https://stackoverflow.com/questions/64963370/error-cannot-install-in-homebrew-on-arm-processor-in-intel-default-prefix-usr |