2 different compilation issues with 2.1.5
gisborne opened this issue · 1 comments
Just trying to install (MRI 2.1.5 on Yosemite) gives me this:
/Users/gisborne/.rvm/gems/ruby-2.1.5/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:268:in `block (2 levels) in read': Looking for http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-2.1.5-p273.tar.gz and all I got was a 404! (URI::NotFoundError)
Note the "1.9". If I use local source for ruby, I get this:
$ gem install ruby-debug19 -- --with-ruby-include=/Users/gisborne/.rvm/src/ruby-2.1.5/
…
compiling ruby_debug.c
ruby_debug.c:27:19: error: conflicting types for 'rb_iseq_compile_with_option'
RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
^
/Users/gisborne/.rvm/src/ruby-2.1.5/vm_core.h:685:7: note: previous declaration is here
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE absolute_path, VALUE line, rb_block_t *base_block, VALUE opt);
…
Same two problems occur with ruby-2.0.0-p598
This gem is supposed to be used with 1.9 only and as a backend to ruby-debug-ide. If you're debugging from IDE it should use ruby-debug-ide which will use correct backend gem, if you are debugging from command line I'd suggest using pry-debugger instead.