Can"t install Ruby under Lion with RVM – GCC issues


🔥📝 Can't install Ruby under Lion with RVM – GCC issues 💻
Hey there! 👋 Are you trying to install Ruby under Lion with RVM but running into GCC issues? Don't worry, you're not alone. Many people face similar problems, but we're here to help you out! In this blog post, we'll address common issues surrounding this specific problem and provide you with easy solutions. So let's dive right in! 🚀
First things first, let's take a look at the context of the question. The user mentioned having Xcode 4.2 installed, which is generally required for installing Ruby. However, they encountered the following error while trying to install Ruby:
ERROR: There has been an error while running configure. Halting the installation.
Next, they shared the contents of the config.log
file to give us more information about the issue. Here's a snippet from the config.log
:
configure:3376: checking for C compiler version
configure:3385: gcc-4.2 --version >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3385: gcc-4.2 -v >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3385: gcc-4.2 -V >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3385: gcc-4.2 -qversion >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3416: checking whether the C compiler works
configure:3438: gcc-4.2 conftest.c >&5
./configure: line 3440: gcc-4.2: command not found
configure:3442: $? = 127
configure:3480: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define CANONICALIZATION_FOR_MATHN 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3485: error: in `/Users/jamie/.rvm/src/ruby-1.9.
Take Your Tech Career to the Next Level
Our application tracking tool helps you manage your job search effectively. Stay organized, track your progress, and land your dream tech job faster.
