Si ho Windows 7 Ultimate, da MS DOS, adesso ti elenco gli errori:
- hpricot non mi si installa ecco l’errore:
Faccio da prompt senza scrivere prima irb, ma da semplice prompt, scrivo
‘gem install hpricot’ e mi da questo messaggio di errore:
C:\Users\seven>gem install hpricot
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.
"C:/Program Files/Ruby192/bin/ruby.exe" extconf.rb
checking for stdio.h… *** 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:/Program Files/Ruby192/bin/ruby
C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in try_do': The complier fa iled to generate an executable file. (RuntimeError) You have to install development tools first. from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:452:in
try_cpp’
from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:834:in
block in ha ve_header' from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in
block in ch
ecking_for’
from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in
block (2 le vels) in postpone' from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in
open’
from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in
block in po stpone' from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in
open’
from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in
postpone' from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in
checking_fo
r’
from C:/Program Files/Ruby192/lib/ruby/1.9.1/mkmf.rb:833:in
have_header ' from extconf.rb:2:in
’
Gem files will remain installed in C:/Program
Files/Ruby192/lib/ruby/gems/1.9.1/
gems/hpricot-0.8.4 for inspection.
Results logged to C:/Program
Files/Ruby192/lib/ruby/gems/1.9.1/gems/hpricot-0.8.
4/ext/fast_xs/gem_make.out
come si può vedere è molto lunga hihi:
2)La active non mi funziona nonostante l’installazione con gem install
active support sia andata a buon fine (so’ che c’è la gem anche perchè
facendo gem list mi esce activesupport), ecco l’errore:
irb(main):001:0> require ‘RubyGems’
=> true
irb(main):002:0> gem ‘activesupport’
=> true
irb(main):003:0> require ‘activesupport’
LoadError: no such file to load – activesupport
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:in
require’
from (irb):3
from C:/Program Files/Ruby192/bin/irb:12:in `’
- Ora invece riguardo la sdl, faccio cd e vado nella cartella Lib dove
si trova il file sdl.rb, poi scrivo ‘ruby sdl.rb init’ e poi ‘ruby
sdl.rb install’ mi da errore (questo con altri file di ruby, non posso
nemmeno visualizzare gli esempi delle librerie che mi da errore).
C:\Users\seven>cd C:\Users\seven\Desktop\Programmazione\Linguaggi di
Programmazione\Ruby\rubysdl-1.3.0\lib
C:\Users\seven\Desktop\Programmazione\Linguaggi di
Programmazione\Ruby\rubysdl-1.3.0\lib>ruby sdl.rb init
internal:lib/rubygems/custom_require:29:in require': no such file to load -- sdl.so (LoadError) from <internal:lib/rubygems/custom_require>:29:in
require’
from sdl.rb:17:in `’
C:\Users\seven\Desktop\Programmazione\Linguaggi di
Programmazione\Ruby\rubysdl-1.3.0\lib>ruby sdl.rb install
internal:lib/rubygems/custom_require:29:in require': no such file to load -- sdl.so (LoadError) from <internal:lib/rubygems/custom_require>:29:in
require’
from sdl.rb:17:in `’
Bhe questo è tutto, se può far comodo la versione di ruby è questa
precisamente:
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]