m1安装svn

news2024/9/28 23:33:48

背景:电脑是mac m2,好多软件都不太兼容,安装软件成了一个问题,想着装一个SVN,跟大家一起协同开发,这下可麻烦死了,😄,终于弄明白用brew命令了,然后就用brew命令来安装,结果报错如下;

安装命令:

brew install subversion

执行完报错如下;

Error: Failed to download https://formulae.brew.sh/api/formula.jws.json!
Failed to download https://formulae.brew.sh/api/cask.jws.json!
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/formula.jws.json
curl: (28) Failed to connect to mirrors.ustc.edu.cn port 443 after 75015 ms: Operation timed out

==> Downloading https://formulae.brew.sh/api/formula.jws.json
curl: (28) Failed to connect to formulae.brew.sh port 443 after 262509 ms: Operation timed out

Warning: formula.jws.json: update failed, falling back to cached version.
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/cask.jws.json
curl: (28) Failed to connect to mirrors.ustc.edu.cn port 443 after 75013 ms: Operation timed out

==> Downloading https://formulae.brew.sh/api/cask.jws.json
curl: (28) Failed to connect to formulae.brew.sh port 443 after 262507 ms: Operation timed out

Warning: cask.jws.json: update failed, falling back to cached version.
Warning: No available formula with the name "sbversion". Did you mean subversion?
==> Searching for similarly named formulae and casks...
Warning: Error searching on GitHub: GitHub API Error: Requires authentication
The GitHub credentials in the macOS keychain may be invalid.
Clear them with:
  printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase
Create a GitHub personal access token:
https://github.com/settings/tokens/new?scopes=gist,repo,workflow&description=Homebrew
echo 'export HOMEBREW_GITHUB_API_TOKEN=your_token_here' >> ~/.zshrc


==> Formulae
subversion

To install subversion, run:
  brew install subversion

==> Casks
session

To install session, run:
  brew install --cask session

看上面的提示信息,发现,原来是token信息过期,然后它也告诉你怎么解决去了,😄

解决方法:第一步:登录你的github,在github中申请一个token信息

生成token的路径

https://github.com/settings/tokens

在这里插入图片描述

第二步:将你生成的token信息写到Mac的环境变量中去,仔细看报错信息,其实人家已经告诉你要把token信息写到配置文件中来了

echo 'export HOMEBREW_GITHUB_API_TOKEN=你生成的token信息放在这里' >> ~/.zshrc

然后cat一下这个文件,看看配置是否写进去了

在这里插入图片描述

第三步:让新配置的立即生效,刷新配置文件

source ~/.zshrc

第四步:重新执行安装命令

brew install subversion

显示如下信息

==> Fetching dependencies for subversion: apr, apr-util, gettext, lz4, and utf8proc
==> Fetching apr
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/apr-1.7.4.arm64_ventura.bottle.tar.gz
######################################################################## 100.0%
==> Fetching apr-util
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/apr-util-1.6.3.arm64_ventura.bottle.tar.gz
######################################################################## 100.0%
==> Fetching gettext
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/gettext-0.21.1.arm64_ventura.bottle.tar.gz
######################################################################## 100.0%
==> Fetching lz4
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/lz4-1.9.4.arm64_ventura.bottle.tar.gz
######################################################################## 100.0%
==> Fetching utf8proc
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/utf8proc-2.8.0.arm64_ventura.bottle.tar.gz
######################################################################## 100.0%
==> Fetching subversion
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/subversion-1.14.2_2.arm64_ventura.bottle.tar.gz
######################################################################## 100.0%
==> Installing dependencies for subversion: apr, apr-util, gettext, lz4, and utf8proc
==> Installing subversion dependency: apr
==> Pouring apr-1.7.4.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/apr/1.7.4: 59 files, 1.4MB
==> Installing subversion dependency: apr-util
==> Pouring apr-util-1.6.3.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/apr-util/1.6.3: 54 files, 891.5KB
==> Installing subversion dependency: gettext
==> Pouring gettext-0.21.1.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/gettext/0.21.1: 1,983 files, 20.9MB
==> Installing subversion dependency: lz4
==> Pouring lz4-1.9.4.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/lz4/1.9.4: 22 files, 680.0KB
==> Installing subversion dependency: utf8proc
==> Pouring utf8proc-2.8.0.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/utf8proc/2.8.0: 10 files, 768.9KB
==> Installing subversion
==> Pouring subversion-1.14.2_2.arm64_ventura.bottle.tar.gz
==> Caveats
svntools have been installed to:
  /opt/homebrew/opt/subversion/libexec

The perl bindings are located in various subdirectories of:
  /opt/homebrew/opt/subversion/lib/perl5
==> Summary
🍺  /opt/homebrew/Cellar/subversion/1.14.2_2: 229 files, 31MB
==> Running `brew cleanup subversion`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> subversion
svntools have been installed to:
  /opt/homebrew/opt/subversion/libexec

The perl bindings are located in various subdirectories of:
  /opt/homebrew/opt/subversion/lib/perl5

第五步:验证SVN是否安装成功

svn --version

提示如下信息,则表示安装成功了

svn, version 1.14.2 (r1899510)
   compiled May  8 2023, 06:14:58 on arm-apple-darwin22.4.0

Copyright (C) 2022 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.9 (compiled with 1.3.9)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Mac OS X Keychain

在这里插入图片描述

下面是操作的基本命令,后面在研究研究有没有可视化的界面,😄,有问题可以下方留言

1、下载SVN项目

命令行输入:svn checkout SVN的http地址

2、提交更新过的内容到SVN项目

命令行输入:svn commit -m ‘提交内容’

3、更新SVN项目内容到本地

命令行输入:svn update

4、删除在SVN项目的文件

命令行输入:svn delete SVN的http地址 -m ‘内容’

5、查看SVN信息

命令行输入:svn info

6、版本回退

命令行输入:svn checkout -r [version] SVN的http地址 你本地的文件路径

7、版本回退,只回退一个文件

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/546102.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Metasploitable2靶机渗透学习

目录 一、介绍 二、环境 三、渗透攻击 1.前期渗透 1.1主机发现 1.2.端口扫描 1.3.测试漏洞 2.弱密码漏洞 2.1系统弱密码登录(telnet :23端口) 2.2 MySQL弱密码登录(端口:3306) 2.3 PostgreSQL弱…

K8s全套快速入门

K8s快速入门 1 介绍 google开源的容器化管理工具机器数量十几台、上百台时,就可以考虑使用k8s高可用、自动容灾恢复、灰度更新、一键回滚历史版本、方便伸缩扩展等 k8s集群架构: 通常:一主多从 master:主节点,控制平台…

LeetCode 栈和队列OJ题目分享

目录 有效的括号(括号匹配)用栈实现队列用队列实现栈设计循环队列 有效的括号(括号匹配) 链接: link 题目描述: 题目思路: 1、如果是左括号“( { [ ”就入栈 2、如果是右括号“) }…

Redis--弱口令未授权访问漏洞

Redis--弱口令未授权访问漏洞 一、漏洞简介二、危险等级三、漏洞影响四、入侵事件五、漏洞复现--Redis CrackIT入侵事件5.1、以root启动的redis,可以远程登入到redis console--------A主机5.2、生成公钥5.3、执行: redis-cli flushall 清空redis(非常暴力&#xff0…

2023年春秋杯网络安全联赛 春季赛 wp

文章目录 Cryptocheckinbackdoor WebPhpstudyEasypyezrustqqcms MISCSudohappy2forensic盲人会藏在哪里piphackwordle PWNp2048easy_LzhiFTP_CHELL Crypto checkin 第一部分求解一下pell函数得到x,y def solve_pell(N, numTry 100):a[]b[]cf continued_fraction(sqrt(N))f…

C++的priority_queue

priority_queue 1.priority_queue的介绍2.priority_queue的使用3.priority的模拟实现 1.priority_queue的介绍 优先队列是一种堆,默认是大根堆,可以通过greater的仿函数可以建立小根堆empty():检测容器是否为空 size():返回容器中…

【密码学复习】第七章 公钥加密体制(二)

RSA单向陷门函数及其应用 ElGamal单向陷门函数 1)密钥生成 ① 选择一大素数p,选取Zp * 的生成元g ; ② 任选小于p的随机数x,计算y≡g x mod p; ③(y, g, p)为公开密钥, (x, g, p)为秘密密钥. 2)加密:设待加密…

asp.net就业满意度问调查系统

本系统主要有会员(调查者)和管理员,他们具体的功能如下: 会员功能:注册,登录,修改个人信息,调查,查看调查结果及影响,留言,首先是会员注册,注册后…

【Web开发】Node实现Web图表功能(ECharts.js,React)

🎈🎈🎈Python实现Web图表功能系列:🎈🎈🎈1🎈【Web开发】Python实现Web图表功能(D-Tale入门)🎈2🎈【Web开发】Python实现Web图表功能&a…

整理了一份github上比较热门的ChatGPT项目,值得收藏

ChatGPT已经火了一段时间了,但是,热度依旧是各大自媒体的热榜。由于,国内不能直接访问ChatGPT,国内的开发者依托OpenAI的接口,开发出一些ChatGPT的应用。今天就整理一下github上最热门的ChatGPT项目。 lencx/ChatGPT 该项目是Cha…

java线程的状态

文章目录 1. 线程的状态2. 验证NEW、RUNNALE和TERMINATED状态3. 验证TIMED_WAITING状态4. 验证BLOCKED状态5. 验证BLOCKED状态 1. 线程的状态 线程在不同的运行时期存在不同的状态,状态信息存在于State枚举类中,如下图: 调用线程有关的方法是…

文心一言 VS 讯飞星火 VS chatgpt (18)-- 算法导论4.1 5题

五、使用如下思想为最大子数组问题设计一个非递归的、线性时间的算法。从数组的左边界开始,由左至右处理,记录到目前为止已经处理过的最大子数组。若已知 A[1…j]门的最大子数组,基于如下性质将解扩展为 A[1…j1]的最大子数组:A[1…j1]的最大…

Squid 代理服务器

Squid概述 Squid 主要提供缓存加速、应用层过滤控制的功能。 代理的工作机制 1.代替客户机向网站请求数据,从而可以隐藏用户的真实IP地址。 2.将获得的网页数据(静态 Web 元素)保存到缓存中并发送给客户机&#xff0…

Windows安装Ubuntu双系统

Windows安装Ubuntu双系统 1.下载Ubuntu 16.04,地址https://releases.ubuntu.com/16.04/ 2.下载Rufus,地址https://rufus.ie/zh/ 3.准备U盘,烧录系统 4.磁盘分区 5.重启,按住shift键 本人电脑是联想小新 Windows11系统&#xff0…

QT上位机串口+STM32单片机项目

第一个自己的上位机小项目,嘿嘿,还是有些成绩感的。 目录 1.先看QT上位机部分 1.首先写一个页面 2.mainwindow.cpp主要函数。 2.form.cpp主要函数 3.STM32部分 1.main函数 3.QT完整代码 1.shangwei.pro 2.form.h 3.mainwindow.h 4.form.cpp …

从零入门激光SLAM(十一)——如何求解SLAM问题

大家好呀,我是一个SLAM方向的在读博士,深知SLAM学习过程一路走来的坎坷,也十分感谢各位大佬的优质文章和源码。随着知识的越来越多,越来越细,我准备整理一个自己的激光SLAM学习笔记专栏,从0带大家快速上手激…

(转载)从0开始学matlab(第9天)—第一阶段总结

1.编程实例 下面的例子将向大家介绍如何用 MATLAB 解决问题。 例1 温度转换程序 问题: 设计一个 MATLAB 程序,读取一个华氏温度的输入,输出开尔文温度。 答案: 华氏温度和开尔文温度的转换关系式可在物理学课本中找到。其关系式…

HCIP-RIP双向重发布综合实验

拓扑结构: 要求: 1、两个协议间进行多点双向重发布 2、R7的环回没有宣告在OSPF协议中,而是在后期重发布进入的 3、解决环路,所有路径选择最优,且存在备份 4、R2的环回要在RIP中宣告,R3的环回要在OSPF中宣…

如何优雅的写C#,使用Visual studio

免责声明 本人接触C#,.Net一年时间,本文内容基于我平时对于C#语法的积累,如有问题请多包涵。以下内容除了C#之外,还有Visual studio编译器相关的内容。 在使用C#的一年多里面,我发现C#的语法糖真的很不错,Visual Stu…

SaaS系统用户权限设计

SaaS系统用户权限设计 学习目标: 理解RBAC模型的基本概念及设计思路 了解SAAS-HRM中权限控制的需求及表结构分析完成组织机构的基本CRUD操作 完成用户管理的基本CRUD操作完成角色管理的基本CRUD操作 组织机构管理 需求分析 需求分析 实现企业组织结构管理&#xff0…