#259 new
DHB

RedCloth on ruby 2.0.0p0 (2013-02-24) [i386-mingw32] not working

Reported by DHB | March 16th, 2013 @ 09:03 AM

./lib/2.0 does not exist in gem (where the binary lives)

$ ruby --version && Rails --version && gem --version && bundle --version
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
Rails 4.0.0.beta1
2.0.3
Bundler version 1.3.4
$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.3
  - RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [i386-mingw32]
  - INSTALLATION DIRECTORY: h:/ruby200_p0/lib/ruby/gems/2.0.0
  - RUBY EXECUTABLE: h:/ruby200_p0/bin/ruby.exe
  - EXECUTABLE DIRECTORY: h:/ruby200_p0/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - h:/ruby200_p0/lib/ruby/gems/2.0.0
     - c:/Users/development/.gem/ruby/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
$ gem install RedCloth
Fetching: RedCloth-4.2.9-x86-mingw32.gem (100%)
Successfully installed RedCloth-4.2.9-x86-mingw32
Parsing documentation for RedCloth-4.2.9-x86-mingw32
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/1.8/redcloth_scan.so, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/1.9/redcloth_scan.so, skipping
Installing ri documentation for RedCloth-4.2.9-x86-mingw32
1 gem installed

Gemfile:

 gem 'RedCloth', '>=4.2.9', :group => [:development, :test]
$ gem list --local Re
*** LOCAL GEMS ***
RedCloth (4.2.9 x86-mingw32)
$ bundle install
[…]
[…]
$ bundle show RedCloth
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/RedCloth-4.2.9-x86-mingw32
development@DHB-PC /h/workspace3/ruby2_test3
$ rake doc:guides
rake aborted!
cannot load such file -- 2.0/redcloth_scan
Couldn't load 2.0/redcloth_scan
The $LOAD_PATH was:
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0.beta1/lib/action_view/vendor/html-scanner
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/uglifier-1.3.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/turbolinks-1.0.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/sass-rails-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/sass-3.2.7/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/rails-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/sprockets-rails-2.0.0.rc3/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/sprockets-2.9.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/tilt-1.3.5/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/jquery-rails-2.2.1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/jbuilder-1.0.2/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/hike-1.2.1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/coffee-rails-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/thor-0.17.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/rdoc-3.12.2/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/json-1.7.7/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/coffee-script-2.2.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/execjs-1.4.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/coffee-script-source-1.6.1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/arel-4.0.0.beta2/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/activerecord-deprecated_finders-0.0.3/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/activemodel-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/actionmailer-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/mail-2.5.3/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/treetop-1.4.12/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/polyglot-0.3.3/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/mime-types-1.21/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/rack-test-0.6.2/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/erubis-2.7.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/builder-3.1.4/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.beta1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/tzinfo-0.3.37/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/thread_safe-0.1.0/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/atomic-1.0.1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/multi_json-1.6.1/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/minitest-4.6.2/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/i18n-0.6.4/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/RedCloth-4.2.9-x86-mingw32/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/RedCloth-4.2.9-x86-mingw32/lib/case_sensitive_require
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/RedCloth-4.2.9-x86-mingw32/ext
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.3/lib
h:/ruby200_p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.4/lib
h:/ruby200_p0/lib/ruby/site_ruby/2.0.0
h:/ruby200_p0/lib/ruby/site_ruby/2.0.0/i386-msvcrt
h:/ruby200_p0/lib/ruby/site_ruby
h:/ruby200_p0/lib/ruby/vendor_ruby/2.0.0
h:/ruby200_p0/lib/ruby/vendor_ruby/2.0.0/i386-msvcrt
h:/ruby200_p0/lib/ruby/vendor_ruby
h:/ruby200_p0/lib/ruby/2.0.0
h:/ruby200_p0/lib/ruby/2.0.0/i386-mingw32
h:/workspace3/ruby2_test3/config/application.rb:6:in `<top (required)>'
h:/workspace3/ruby2_test3/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Addition:
Since Rails 4.0.0 favours Redcarpet over RedCloth to produce guides the above became needless.
Still would be nice to have Redcloth supporting Ruby2.0.0

Comments and changes to this ticket

  • Khalid Shaikh
  • prusswan

    prusswan January 4th, 2014 @ 03:39 AM

    Ran into this issue while trying to self-host TracksApp on Windows. It isn't too difficult to resolve as I was able to cross compile for Ruby 2.0 using the current mingw toolchain (4.6.3) on Ubuntu 12.04 x64. However, cross compiling for 1.8.6-p398 and 1.9.1-p243 has been pretty hairy as they don't play with the current toolchain and I had to backport several core fixes in later rubies into stock 1.9.1 for it to work, and I guess it would pretty much be the same if not worse for 1.8.6. Are there any plans to move support onto more current versions of 1.8 and 1.9? I'm trying to see if this can be turned into a pull request once I find a way to compile against 1.8.6, instead of having to vendor the mingw binary...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Pages