Pablo
Pablo

Reputation: 2154

RVM installation complaining of 'bison' not available in OSX

On the installation notes of RVM, it is mentioned explicitly to have Xcode installed on OSX before installing RVM.

I had already downloaded it and installed it ages a go, so I did not have to do the installation again.

However when following the RVM installation, when I try to install a ruby version, e.g. $ rvm install 1.9.2-head, I get the following message:

"Please ensure bison is installed before compiling from 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

Which is very strange for me, since I do have Xcode on my OSX box. Has anyone seem such a problem yet?

Upvotes: 3

Views: 3991

Answers (2)

mrchestnut
mrchestnut

Reputation: 462

Command Line tools are not installed by default with Xcode 4.3.2. You need to start Xcode, go to Preferences, then click Downloads and install the command line tools. You should have bison after that. You can verify by running the command "which bison" in the terminal app.

Apple Developer Site

Upvotes: 5

Tilo
Tilo

Reputation: 33742

re-install Xcode from your installation DVD and then do a Software Update afterwards - it should upgrade Xcode to the latest version.

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

Upvotes: 0

Related Questions