@@ -236,25 +236,26 @@ fix_directory_permissions() {
236236
237237require_gcc () {
238238 local gcc=" $( locate_gcc || true) "
239+
239240 if [ -z " $gcc " ]; then
241+ local esc=$' \033 '
240242 { echo
241- echo " ERROR : This package must be compiled with GCC, but ruby-build couldn't"
243+ echo " ${esc} [1mERROR ${esc} [0m : This package must be compiled with GCC, but ruby-build couldn't"
242244 echo " find a suitable \` gcc\` executable on your system. Please install GCC"
243245 echo " and try again."
244246 echo
245247
246248 if [ " $( uname -s) " = " Darwin" ]; then
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."
249+ echo " ${esc} [1mDETAILS${esc} [0m: Apple no longer includes the official GCC compiler with Xcode"
250+ echo " as of version 4.2. Instead, the \` gcc\` executable is a symlink to"
251+ echo " \` llvm-gcc\` , a modified version of GCC which outputs LLVM bytecode."
251252 echo
252253 echo " For most programs the \` llvm-gcc\` compiler works fine. However,"
253254 echo " versions of Ruby older than 1.9.3-p125 are incompatible with"
254255 echo " \` llvm-gcc\` . To build older versions of Ruby you must have the official"
255256 echo " GCC compiler installed on your system."
256257 echo
257- echo " You can install the official GCC compiler on OS X using these binary "
258+ echo " ${esc} [1mTO FIX THE PROBLEM ${esc} [0m: Install the official GCC compiler using these"
258259 echo " packages: ${esc} [4mhttps://github.com/kennethreitz/osx-gcc-installer/downloads${esc} [0m"
259260 echo
260261 echo " You will need to install the official GCC compiler to build older"
0 commit comments