Studying the list of changes in the recently updated XCode, I noticed an interesting thing: “command-line tools” are no longer included in the kit and are installed separately in the settings. The TCP analyzer and googling showed that these same “command line tools” can now be installed not only
from XCode, but also separately from it. What does this mean for users? Now, in order to use macports or build the latest version of Ruby there is no need to download several gigabytes of XCode - just download about 160 megabytes of “command-line tools” and our services are fully gcc, make and other toolchain. Under the cut instruction where to click and build
example of the latest ruby 1.9.3-p125 with Tk support
The compiler is installed quite simply. Go to the site
developer.apple.com/downloads , log in with your Apple ID (if not, then you can register for free there), download the “command-line tools” and install:

')
Actually everything. You can use. For example, to replace the system Ruby with the last 1.9.3-p125, and with Tk support, you just need to install ActiveTcl, download the Ruby source from the official site, unpack them into a folder, run Terminal, and in the folder where you unpacked:
./configure --with-arch=x86_64,i386 --enable-pthread --enable-shared --with-gcc=clang --prefix=/usr make sudo make install
The result is not long in coming:
