Assign dependencies python version while brew installing - macos

New for homebrew
Now want to install autojump via brew install autojump, which need to install python#3.9 as denpendency. I already have python#3.8 installed via brew and don't want an another version.
python#3.8 also satisfy autojump from it's homgpage

Impossible, that's not how Homebrew works.
Installing autojump with homebrew is basically
Creating a virtual environment with Python#3.9 (Homebrew always chooses the latest Python)
Install autojump package in that environment.
Unless you modify the autojump homebrew formula, You can't reuse python#3.8.

You can try the following
brew install autojump --ignore-dependencies

Related

Homebrew: Install through a config file similar to pip's requirements.txt?

As title, with Python's pip, you could do:
pip install -r requirements.txt
to batch install packages with specified versions.
Does Homebrew have the same system?
I quickly browsed brew's man page and couldn't find obvious switches.
Homebrew Bundle is the preferred way.
brew bundle dump
brew bundle
Yes, there is.
For example you can update brew.txt whatever you want.
brew list > brew.txt
<brew.txt xargs brew install
For specific versions
node 5.5.0
node4-lts 4.3.1

How do I install Ruby without using RVM on OS X?

I have some issues with upgrading my Ruby version with RVM on OS X.
RMV uses MacPorts, causing me to run sudo port selfupdate, which gets a bunch of compiling errors, despite correct Xcode command line tools installed.
I found some installation instructions using Linux apt-get but unfortunately I don't have in it on my Mac.
I want to install Ruby without RVM. How can I do that?
In case Macports does not work for you, try Homebrew:
rvm autolibs homebrew
Please note: Although it is not required, you might want to install Homebrew before using it with autolibs. It keeps Homebrew out of RVM directories.
Using Homebrew, you can either install and manage a single version of Ruby:
brew update
brew install ruby
Or, even better, use rbenv as a flexible alternative to RVM:
brew update
brew install rbenv
brew install ruby-build
rbenv install 2.0.0-p247
rbenv rehash
rbenv then makes it easy to use a specific version of Ruby either globally or per project (which can then be added to source control).
Note that you may want to follow the advice from rbenv's "caveats" (brew info rbenv), particularly the part about adding eval "$(rbenv init -)" to your profile.

ruby rvm requirements

Running rvm requirements says I need to brew install all these
# For ruby:
brew install autoconf automake apple-gcc42 libtool
pkg-config openssl readline libyaml sqlite libxml2 libxslt libksba
how do I know if I already have these on my computer and I won't be wasting space downloading them again? For instance I know mountain lion comes with sqlite if I brew install sqlite will that overwrite the sqlite already on the computer or install another copy? I'm running Mac 10.8.2, Thanks
It will not uninstall anything. Brew keeps it's packages separate and creates symlinks to /usr/local. you could run whereis autoconf, whereis sqlite, etc. to make sure that the required packages are installed and properly loaded in the environment then use homebrew to install the rest. Although your older packages should suffice, if the ruby installation fails you should use homebrew to install everything as it will ensure that all packages are compatible.

homebrew uninstall ruby

I just installed ruby via
brew install ruby
I have been advised to install it via RVM, even if I use Homebrew, but first I want to uninstall the ruby that homebrew just installed.
Can I simply do
brew uninstall ruby
Or do I need to do something else?
Yes, brew uninstall ruby should do the trick.
For more info, you can type man brew in your terminal.
Doing brew uninstall ruby will work. If you really want to be sure, you can run brew cleanup after running the first command. Homebrew just removes unnecessary packages with the brew cleanup command. In some cases, the last command is necessary for the formula to be completely gone. (An example is with the tree formula, I had to use brew cleanup for it to be entirely uninstalled.)
(I know this is late but this can apply to anyone who is viewing this)
This might help other people who used rbenv to manage their ruby versions & have installed rbenv using the command below
brew install rbenv ruby-build
You can uninstall ruby by
brew uninstall rbenv && brew uninstall ruby-build
You can refer to the Installing Ruby section of this guide.

CMake GUI on Mac

I can't find where I can get the GUI tool for CMake on MacOSX. I see references to it online but nothing else. I got CMake using MacPorts but on Windows I am used to using the GUI.
Does it exist on Mac and where/how do I get it?
you need to install the gui variant:
sudo port install cmake +gui
you may need to run sudo port uninstall cmake first.
Cask is outdated now. You can install cmake using:
brew install --cask cmake
Try installing the cmake GUI using brew cask
brew cask install cmake
how to install brew cask
Install Homebrew first How to install homebrew
Add the brew cask to using the command brew tap caskroom/cask
here it is:
http://www.cmake.org/cmake/resources/software.html
extra plugins will imported by their own extensions so no OS compatibility is needed ;)

Resources