Hi I have been tying to install the followings gems in order to add
code syntax highlighting to my application:
-Oniguruma
-Ultraviolet
-Harsh
Unfortunately I have been running into the the following errors when
running “gem install oniguruma ultraviolet”
Building native extensions. This could take a while…
ERROR: Error installing oniguruma:
ERROR: Failed to build gem native extension.
C:/Ruby19/bin/ruby.exe extconf.rb
checking for main() in -lonig… *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=C:/Ruby19/bin/ruby
–with-oniglib
–without-oniglib
C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in try_do': The complier failed to generat e an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:417:in
try_link0’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:421:in try_link' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:529:in
try_func’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:725:in block in have_library' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in
block in
checking_for’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in block (2 levels) in postpo ne' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in
open’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in block in postpone' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in
open’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in postpone' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in
checking_for’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:720:in have_library' from extconf.rb:2:in
’
Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/
oniguruma-
1.1.0 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/
ext/gem_mak
e.out
Building native extensions. This could take a while…
ERROR: Error installing ultraviolet:
ERROR: Failed to build gem native extension.
C:/Ruby19/bin/ruby.exe extconf.rb
checking for main() in -lonig… *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=C:/Ruby19/bin/ruby
–with-oniglib
–without-oniglib
C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in try_do': The complier failed to generat e an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:417:in
try_link0’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:421:in try_link' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:529:in
try_func’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:725:in block in have_library' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in
block in
checking_for’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in block (2 levels) in postpo ne' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in
open’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in block in postpone' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in
open’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in postpone' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in
checking_for’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:720:in have_library' from extconf.rb:2:in
’
Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/
oniguruma-
1.1.0 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/
ext/gem_mak
e.out
I’m using windows 7 with
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
Any help that anyone can give me to resolve this issue is highly
appreciated.
Cheers!