How to get a developers' package for Ruby
Ryan Schmidt
ryandesign at macports.org
Sat Oct 2 08:33:54 UTC 2021
On Sep 21, 2021, at 23:49, Ian Wadham wrote:
> I wish to download from the Web a package called CocoaPods, however it needs a developers’ package of Ruby to build it.
>
> I am using MacOS Catalina 10.15.7. Apple provides Ruby in this MacOSversion, but will not allow it to be used for building non-Apple apps. They say they are phasing out the use of Ruby in MacOS and Apple Mac apps.
>
> Googling around about this problem, all the solutions I have found recommend getting a "ruby-dev" package from Homebrew, but MacPorts, which I use a lot, recommends against mixing MacPorts and Homebrew.
Some other package managers observe a distinction between "runtime" and "development" packages, with the latter having a "-dev" suffix. MacPorts does not observe such a distinction. All packages in MacPorts contain both the runtime and development parts, to the extent that each software package has those parts.
MacPorts does have port names with a "-devel" suffix, but they embody a completely unrelated concept. Ports with names not ending with "-devel" are typically for stable versions of software while ports with the "-devel" name suffix are for newer unstable versions.
> Failing that, would it be safe to install Homebrew and its ruby-dev, just for building CocoaPods?
Please choose one package manager and uninstall the other. We do not want to spend time diagnosing problems that were caused by installing software with multiple conflicting package managers.
More information about the macports-users
mailing list