ruby on rails 2 - rbenv install is failing (telling me to install GCC, but it's already installed) -


so, client has me working on legacy app running rails 2.3.8 , ruby 1.8.7, i'm attempting install proper version of ruby using rbenv keeps giving me error:

→ rbenv install 1.8.7-p249  error: package must compiled gcc, ruby-build couldn't find suitable `gcc` executable on system. please install gcc , try again.  details: apple no longer includes official gcc compiler xcode of version 4.2. instead, `gcc` executable symlink `llvm-gcc`, modified version of gcc outputs llvm bytecode.  programs `llvm-gcc` compiler works fine. however, versions of ruby older 1.9.3-p125 incompatible `llvm-gcc`. build older versions of ruby must have official gcc compiler installed on system.   fix problem: install official gcc compiler using these packages: https://github.com/kennethreitz/osx-gcc-installer/downloads  need install official gcc compiler build older versions of ruby if have installed apple's command line tools xcode package. command line tools xcode package includes `llvm-gcc`.  build failed 

when checked see if had gcc, showed do:

→ gcc /usr/bin/gcc 

and

→ gcc -v  using built-in specs. target: i686-apple-darwin11 configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/src/configure --disable-   checking --enable-werror --prefix=/applications/xcode.app/contents/developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/dst-llvmcore/developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 thread model: posix gcc version 4.2.1 (based on apple inc. build 5658) (llvm build 2336.11.00) 

i've updated rbenv. not sure else do.

this not reading entire error, thoroughly. :)

i had llvmgcc42 installed not gcc. needed gcc older versions of ruby.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -