macos 用于 Mac OSX 的 cvs
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1252354/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
cvs for Mac OSX
提问by Jason S
is there a place I can get just the cvs executable for OSX as a standalone binary?
有没有地方可以将 OSX 的 cvs 可执行文件作为独立的二进制文件?
I don't want to go through the whole rigamarole of having to download XCode just to get cvs, which I don't use, except the source for flickrj is only published via a cvs repository.
我不想经历为了获得 cvs 而必须下载 XCode 的整个过程,我不使用它,除了 flickrj 的源代码仅通过 cvs 存储库发布。
采纳答案by Robert Paulson
[Edit]
[编辑]
All links below dead, and the below instructions only appear to work pre OS X Mavericks.
以下所有链接均已失效,以下说明似乎仅适用于 OS X Mavericks。
This answer on apple.stackexchange.comappears to solve the issue using 3rd party package managers.
apple.stackexchange.com 上的这个答案似乎使用 3rd 方包管理器解决了这个问题。
[/Edit]
[/编辑]
Not sure what happened to the other posts:
不知道其他帖子发生了什么:
- Version Control with CVS on Mac OSX
- Xcode is on the DVD that came with your mac.
- 在 Mac OSX 上使用 CVS 进行版本控制
- Xcode 位于 Mac 随附的 DVD 上。
- Boot into a partition with Mac OS X v10.5 (Leopard) installed.
- Insert the Mac OS X v10.5 (Leopard) Install DVD.
- Double-click the file XcodeTools.mpkg, located inside the directory Optional Installs/Xcode Tools.
...
- 启动到安装了 Mac OS X v10.5 (Leopard) 的分区。
- 插入 Mac OS X v10.5 (Leopard) 安装 DVD。
- 双击位于 Optional Installs/Xcode Tools 目录中的文件 XcodeTools.mpkg。
...
ref Apple Xcode Installation Guide
参考 Apple Xcode 安装指南
回答by rsenna
Using Homebrew:
使用自制软件:
brew tap homebrew/dupes # cvs is on the homebrew-dupes repository.
brew install cvs
See also:
https://github.com/Homebrew/homebrew-dupes
https://github.com/Homebrew/homebrew-dupes/pull/201
另见:
https: //github.com/Homebrew/homebrew-dupes
https://github.com/Homebrew/homebrew-dupes/pull/201
Edit: I don't have it installed here (unfortunately I'm in a Windows machine) but yes, CVS is actually part of Homebrew core, so no need for the dupes repo, for both macOS and Linux versions of Homebrew. brew install cvs
should be enough.
编辑:我没有在这里安装它(不幸的是我在 Windows 机器上)但是,CVS 实际上是 Homebrew 核心的一部分,所以不需要 dupes repo,对于 macOS 和 Linux 版本的 Homebrew。brew install cvs
应该够了。
Reference:
参考:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/cvs.rbhttps://github.com/Homebrew/linuxbrew-core/blob/master/Formula/cvs.rb
https://github.com/Homebrew/homebrew-core/blob/master/Formula/cvs.rb https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/cvs.rb
回答by Paul
You could install Fink http://www.finkproject.org/download/index.php?phpLang=enthen use Fink to install CVS for you, this would be the easiest way.
你可以安装 Fink http://www.finkproject.org/download/index.php?phpLang=en然后使用 Fink 为你安装 CVS,这是最简单的方法。
Alternatively, you could try a BSD binary from from the CVS project website, that mightwork. The CVS project is now at nongnu.org/cvs/
或者,您可以尝试来自 CVS 项目网站的 BSD 二进制文件,这可能会奏效。CVS 项目现在位于 nongnu.org/cvs/
回答by fredarin
I just learned nowadays installing xcode is a breeze.
我刚刚了解到现在安装 xcode 是轻而易举的。
- Start installation of xcode from App Store
- Have lunch
- Type
xcrun cvs
at the command prompt and - well - enjoy cvs...
- 从 App Store 开始安装 xcode
- 吃午饭
- 键入
xcrun cvs
在命令提示符-好-享受CVS ...
回答by larham1
If you have xcode installed, the cvs command-line binary is in /Developer/usr/bin, so putting it your path is:
如果你安装了 xcode,cvs 命令行二进制文件在 /Developer/usr/bin 中,所以把它放在你的路径是:
export PATH=/Developer/usr/bin:$PATH
回答by Autonomus
once Xcode is installed with commandline Utillities
export PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH
for newer versions of Xcode.
no moving xcode from place to place! =)
一旦 Xcode 安装了命令行实用程序
导出 PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH
对于较新版本的 Xcode。
没有从一个地方移动到另一个地方的 xcode!=)