ruby on rails - Error installing gem -



ruby on rails - Error installing gem -

i typed 'gem install middleman' in terminal , got next error message:

building native extensions. take while... error: error installing middleman: error: failed build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/ruby extconf.rb creating makefile create compiling hitimes.c make: gcc-4.2: no such file or directory make: *** [hitimes.o] error 1 gem files remain installed in /usr/local/rvm/gems/ruby-1.9.3-p429/gems/hitimes-1.2.2 inspection. results logged /usr/local/rvm/gems/ruby-1.9.3-p429/gems/hitimes-1.2.2/ext/hitimes/c/gem_make.out

looks you're missing gcc-4.2

do have gcc installed (if you're on mac, need install xcode)?

which gcc

if have version of gcc, can symlink it

ln -s /usr/bin/gcc /usr/bin/gcc-4.2

ruby-on-rails ruby gem rubygems

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -