Bison RVM installation not available on OSX

The notes for installing RVM indicate that Xcode is installed on OSX before installing RVM.

I already downloaded it and installed that it is out of date, so I did not have to complete the installation again.

However, when I perform the RVM installation, when I try to install the ruby ​​version, for example $ rvm install 1.9.2-head, I get the following message:

"Please make sure the bison is installed before compilation from the head."

And if I use homebrew to install it, I get the following:

$ brew install bison
/usr/local/Library/Homebrew/brew.h.rb:441: command not found: / usr / bin / xcode-select -print-path
Warning: Xcode is not installed! Builds may fail!
Error: No available formula for bison

This is very strange for me, since I have Xcode in my OSX window. Does anyone else seem to have such a problem?

+3
source share
2 answers

Command line tools are not installed by default with Xcode 4.3.2. You need to start Xcode, go to “Settings”, then “Downloads” and install the command line tools. After that you should have a bison. You can check by executing the command "what bison" in the terminal application.

Apple Developer Site

+5
source

reinstall Xcode from the installation DVD, and then perform a software update - it should update Xcode to the latest version.

then try "what bison" .. it should be under / usr / bin as part of the Xcode installation

0
source

Source: https://habr.com/ru/post/1782554/


All Articles