@@ -238,18 +238,29 @@ require_gcc() {
238238 local gcc=" $( locate_gcc || true) "
239239 if [ -z " $gcc " ]; then
240240 { echo
241- echo " ERROR: This package must be compiled with GCC, and we "
242- echo " couldn't find a suitable \` gcc' binary on your system."
243- echo " Please install GCC and try again."
241+ echo " ERROR: This package must be compiled with GCC, but ruby-build couldn't "
242+ echo " find a suitable \` gcc\` executable on your system. Please install GCC "
243+ echo " and try again."
244244 echo
245245
246246 if [ " $( uname -s) " = " Darwin" ]; then
247- echo " As of version 4.2, Xcode is LLVM-only and no longer"
248- echo " includes GCC. You can install GCC with these binary"
249- echo " packages on Mac OS X:"
247+ local esc=$' \033 '
248+ echo " Apple no longer includes the official GCC compiler with Xcode as of"
249+ echo " version 4.2. Instead, the \` gcc\` executable is a symlink to \` llvm-gcc\` ,"
250+ echo " a modified version of GCC which outputs LLVM bytecode."
250251 echo
251- echo " https://github.com/kennethreitz/osx-gcc-installer/downloads"
252+ echo " For most programs the \` llvm-gcc\` compiler works fine. However,"
253+ echo " versions of Ruby older than 1.9.3-p125 are incompatible with"
254+ echo " \` llvm-gcc\` . To build older versions of Ruby you must have the official"
255+ echo " GCC compiler installed on your system."
252256 echo
257+ echo " You can install the official GCC compiler on OS X using these binary"
258+ echo " packages: ${esc} [4mhttps://github.com/kennethreitz/osx-gcc-installer/downloads${esc} [0m"
259+ echo
260+ echo " You will need to install the official GCC compiler to build older"
261+ echo " versions of Ruby even if you have installed Apple's Command Line Tools"
262+ echo " for Xcode package. The Command Line Tools for Xcode package only"
263+ echo " includes \` llvm-gcc\` ."
253264 fi
254265 } >&3
255266 return 1
0 commit comments