Thursday, 15 May 2014

ruby on rails - JSON gem failing to compile on Mac OS X 10.8.2 -



ruby on rails - JSON gem failing to compile on Mac OS X 10.8.2 -

os: mac os x 10.8.2 xcode: latest command line tools installed (version 4.6) rails: version 3.2.3

i trying generate routes project working on (been doing on regular basis), when got error message, recommendation bundle install , bundle exec. did, , time around, process broke off while compiling json gem (version 1.7.7).

doing research on stackoverflow, recommendation update xcode's command line tools, , did, did not solve problem.

i tried installing json version 1.7.7 separately, , failed, telling me error log in:

~/.rvm/gems/ruby-1.9.3-p125/gems/json-1.7.7/ext/json/ext/generator/gem_make.out

which reads:

/users/mine/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb creating makefile create compiling generator.c make: /usr/bin/gcc-4.2: no such file or directory make: *** [generator.o] error 1

i looked /usr/bin/gcc-4.2, , indeed, it's not there. but, when do:

ls -l /usr/bin/gcc

here's get:

lrwxr-xr-x 1 root wheel 12 feb 14 15:49 /usr/bin/gcc -> llvm-gcc-4.2

how prepare problem?

i think problem when install xcode command line tools, gcc sym-linked llvm, , llvm can't compile ruby , gems correctly.

if install autoconf, automake, , gcc straight (or through homebrew), should able prepare compiler errors.

ruby-on-rails json osx

No comments:

Post a Comment