Skip to content

Instantly share code, notes, and snippets.

@jarmo
Created July 8, 2012 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarmo/3070387 to your computer and use it in GitHub Desktop.
Save jarmo/3070387 to your computer and use it in GitHub Desktop.
C:\>wget http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
--12:21:44-- http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
=> `linecache19-0.5.13.gem'
Resolving rubyforge.org... done.
Connecting to rubyforge.org[50.56.192.79]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://files.rubyforge.vm.bytemark.co.uk/ruby-debug19/linecache19-0.5.13.gem [following]
--12:21:44-- http://files.rubyforge.vm.bytemark.co.uk/ruby-debug19/linecache19-0.5.13.gem
=> `linecache19-0.5.13.gem'
Resolving files.rubyforge.vm.bytemark.co.uk... done.
Connecting to files.rubyforge.vm.bytemark.co.uk[80.68.94.54]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22,016 [text/plain]
100%[====================================>] 22,016 143.33K/s ETA 00:00
12:21:44 (143.33 KB/s) - `linecache19-0.5.13.gem' saved [22016/22016]
C:\>wget http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
--12:21:58-- http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
=> `ruby-debug-base19-0.11.26.gem'
Resolving rubyforge.org... done.
Connecting to rubyforge.org[50.56.192.79]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://files.rubyforge.vm.bytemark.co.uk/ruby-debug19/ruby-debug-base19-0.11.26.gem [following]
--12:21:58-- http://files.rubyforge.vm.bytemark.co.uk/ruby-debug19/ruby-debug-base19-0.11.26.gem
=> `ruby-debug-base19-0.11.26.gem'
Resolving files.rubyforge.vm.bytemark.co.uk... done.
Connecting to files.rubyforge.vm.bytemark.co.uk[80.68.94.54]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45,056 [text/plain]
100%[====================================>] 45,056 171.21K/s ETA 00:00
12:21:59 (171.21 KB/s) - `ruby-debug-base19-0.11.26.gem' saved [45056/45056]
C:\>wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.zip
--12:22:51-- http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.zip
=> `ruby-1.9.3-p194.zip'
Resolving ftp.ruby-lang.org... done.
Connecting to ftp.ruby-lang.org[221.186.184.68]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,898,712 [application/zip]
100%[====================================>] 13,898,712 261.65K/s ETA 00:00
12:23:43 (261.65 KB/s) - `ruby-1.9.3-p194.zip' saved [13898712/13898712]
C:\>unzip -q ruby-1.9.3-p194.zip
C:\>mv ruby-1.9.3-p194 ruby-1.9.3-p194-src
C:\>gem install ruby-debug19 -- --with-ruby-include=c:\ruby-1.9.3-p194-src
Building native extensions. This could take a while...
Fetching: ruby-debug19-0.11.6.gem (100%)
Successfully installed ruby-debug-base19-0.11.26
Successfully installed ruby-debug19-0.11.6
2 gems installed
C:\>ruby -v
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
C:\>gem install ruby-debug19
Building native extensions. This could take a while...
Fetching: ruby-debug-base19-0.11.25.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
c:/Ruby193/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
c:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
creating Makefile
make
generating ruby_debug-i386-mingw32.def
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:29:19: error: conflicting types for 'rb_iseq_compile_with_option'
c:/Ruby193/include/ruby-1.9.1/ruby-1.9.3-p194/vm_core.h:505:7: note: previous declaration of 'rb_iseq_compile_with_option' was here
ruby_debug.c: In function 'context_jump':
ruby_debug.c:2414:53: warning: comparison between signed and unsigned integer expressions
ruby_debug.c:2428:27: warning: comparison between signed and unsigned integer expressions
make: *** [ruby_debug.o] Error 1
Gem files will remain installed in c:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25 for inspection.
Results logged to c:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/ext/ruby_debug/gem_make.out
C:\>gem install ruby-debug19
Fetching: linecache19-0.5.12.gem (100%)
ERROR: Error installing ruby-debug19:
The 'linecache19' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
C:\>gem install ruby-debug19
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
c:/Ruby193/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
*** 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:/Ruby193/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
extconf.rb:16:in `block in <main>': break from proc-closure (LocalJumpError)
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `call'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `create_makefile_with_core'
from extconf.rb:32:in `<main>'
Gem files will remain installed in c:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.26 for inspection.
Results logged to c:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.26/ext/ruby_debug/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment