cvs for Mac OSX
Asked Answered
R

6

5

is there a place I can get just the cvs executable for OSX as a standalone binary?

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.

Radioluminescence answered 9/8, 2009 at 21:39 Comment(2)
As of 2013-11-04, Xcode 5 no longer includes cvs. The easier option is using one of the package/port managers available to OSX. I'll add an answer about how to install CVS using Homebrew below.Colbycolbye
See also: CVS on OS X Mavericks on Ask DifferentCappuccino
O
4

[Edit]

All links below dead, and the below instructions only appear to work pre OS X Mavericks.

This answer on apple.stackexchange.com appears to solve the issue using 3rd party package managers.

[/Edit]

Not sure what happened to the other posts:

  1. Boot into a partition with Mac OS X v10.5 (Leopard) installed.
  2. Insert the Mac OS X v10.5 (Leopard) Install DVD.
  3. Double-click the file XcodeTools.mpkg, located inside the directory Optional Installs/Xcode Tools.
    ...

ref Apple Xcode Installation Guide

Orthodontia answered 9/8, 2009 at 21:50 Comment(5)
They must have restored a backup or something. It had two very different answers when I last checked. However +1 for an answer better than the ones I read in the last revision :-)Forsook
Sadly, as of Feb 2014, those are both dead links. According to developer.apple.com/library/ios/releasenotes/DeveloperTools/… CVS and RCS have been removed as of Xcode 5. The new official CVS web page seems to be savannah.nongnu.org/projects/cvsCarolecarolee
Annnnd, it turns out that it doesn't build cleanly. CVS has its own implementation of getline() which clashes with the one in libc. After you unpack the source code, find every reference to getline() and rename it to something that doesn't clash, e.g. getlineNG(). Then you can build it.Carolecarolee
cvs was removed from xcode 5 on OSX 10.9 Mavericks.Peoples
This appears to be the correct answer for OS X Mavericks+ apple.stackexchange.com/questions/108240/cvs-on-os-x-mavericksOrthodontia
C
8

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

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.

Reference:

https://github.com/Homebrew/homebrew-core/blob/master/Formula/cvs.rb https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/cvs.rb

Colbycolbye answered 4/11, 2013 at 20:53 Comment(1)
No need to tap into the dupes repo anymore, the CVS formula has moved from homebrew-dupes to Homebrew core in November 2013.Marlite
O
4

[Edit]

All links below dead, and the below instructions only appear to work pre OS X Mavericks.

This answer on apple.stackexchange.com appears to solve the issue using 3rd party package managers.

[/Edit]

Not sure what happened to the other posts:

  1. Boot into a partition with Mac OS X v10.5 (Leopard) installed.
  2. Insert the Mac OS X v10.5 (Leopard) Install DVD.
  3. Double-click the file XcodeTools.mpkg, located inside the directory Optional Installs/Xcode Tools.
    ...

ref Apple Xcode Installation Guide

Orthodontia answered 9/8, 2009 at 21:50 Comment(5)
They must have restored a backup or something. It had two very different answers when I last checked. However +1 for an answer better than the ones I read in the last revision :-)Forsook
Sadly, as of Feb 2014, those are both dead links. According to developer.apple.com/library/ios/releasenotes/DeveloperTools/… CVS and RCS have been removed as of Xcode 5. The new official CVS web page seems to be savannah.nongnu.org/projects/cvsCarolecarolee
Annnnd, it turns out that it doesn't build cleanly. CVS has its own implementation of getline() which clashes with the one in libc. After you unpack the source code, find every reference to getline() and rename it to something that doesn't clash, e.g. getlineNG(). Then you can build it.Carolecarolee
cvs was removed from xcode 5 on OSX 10.9 Mavericks.Peoples
This appears to be the correct answer for OS X Mavericks+ apple.stackexchange.com/questions/108240/cvs-on-os-x-mavericksOrthodontia
B
2

You could install Fink http://www.finkproject.org/download/index.php?phpLang=en then use Fink to install CVS for you, this would be the easiest way.

Alternatively, you could try a BSD binary from from the CVS project website, that might work. The CVS project is now at nongnu.org/cvs/

Borderland answered 9/8, 2009 at 22:15 Comment(0)
V
1

I just learned nowadays installing xcode is a breeze.

  1. Start installation of xcode from App Store
  2. Have lunch
  3. Type xcrun cvs at the command prompt and - well - enjoy cvs...
Vasta answered 29/1, 2013 at 18:50 Comment(1)
This did not work for me. "xcrun: error: unable to find utility "cvs", not a developer tool or in PATH"Duron
C
0

If you have xcode installed, the cvs command-line binary is in /Developer/usr/bin, so putting it your path is:

export PATH=/Developer/usr/bin:$PATH
Cloutier answered 30/12, 2012 at 5:41 Comment(0)
L
-1

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! =)

Latimer answered 1/4, 2013 at 19:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.