Standalone RedCloth on Windows

Context

I recently took part in a software development project for which I would like to write technical documents using text markup (suitable for tracking in the code repository along with the code). Since the project already uses Redmine , I would like to use Textile , thereby avoiding other developers to learn another markup language. I know that the implementation is changing a bit, so in the spirit of POLS , I would like to use RedCloth , which is used inside Redmine.

We develop and deploy several operating systems, including Windows. For great convenience, as well as for non-technical users who are not developers using only <, I would like to compile the indicated technical documents using a standalone tool, preferably deployed as a single installer .

I am 100% new to Ruby, so please be patient. I do not plan to develop Ruby for this project, I just need a working installation on Windows, I will take care of the rest from there.

Help Wanted

I am not developing a Rails application, and this is for installing on the desktop, so do not tell me "just use it on Linux." I installed DevKit, which installs make, g++etc. And accepted by the scripts ./configureas a "reasonable development environment."

I have a simple problem and am looking for a simple solution. Going to this problem showed that this problem was earlier , and I found recommendations for switching to Linux, and people who tell me that it "just works as advertised."

I need some real help, please, even if it is only in the form of a checklist of possible points of failure that I can check.

Environment

Windows 7, 64- Ruby. 32- .

Linux .

Ruby Installer Windows Ruby 1.9.2-p136, Ruby Development Kit DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe, RedCloth. Ruby Windows ( ).

, . Ruby DevKit ( ). config.yml . ruby dk.rb install . Ruby lib/ruby/site_ruby/devkit.rb, , , , DevKit Ruby. , .

gem install rdiscount --platform=ruby, :

C:\DevKit>gem install rdiscount --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing rdiscount:
        ERROR: Failed to build gem native extension.

"C:/Ruby192/bin/ruby.exe" extconf.rb

, , lib/ruby/gems/1.9.1/gems/rdiscount-1.6.5/ext/extconf.rb. ruby extconf.rb :

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:/Ruby192/bin/ruby
    --with-rdiscount-dir
    --without-rdiscount-dir
    --with-rdiscount-include
    --without-rdiscount-include=${rdiscount-dir}/include
    --with-rdiscount-lib
    --without-rdiscount-lib=${rdiscount-dir}/lib
c:/Ruby192/lib/ruby/1.9.1/mkmf.rb:678:in `flush': Broken pipe (Errno::EPIPE)
    from c:/Ruby192/lib/ruby/1.9.1/mkmf.rb:678:in `message'
    from c:/Ruby192/lib/ruby/1.9.1/mkmf.rb:690:in `checking_for'
    from c:/Ruby192/lib/ruby/1.9.1/mkmf.rb:796:in `have_func'
    from extconf.rb:5:in `<main>'

- ( ), rdiscount Windows, RedCloth (git clone git://github.com/jgarber/redcloth.git), .

rake install , (diff-lcs ), gem install diff-lcs --version '=...', .

, rake :

(in c:/Users/carona/Desktop/redcloth)
rake aborted!
No such file or directory - gem build c:/Users/carona/Desktop/redcloth/redcloth.gemspec 2>&1
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:138:in ``'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:138:in `block in sh_with_code'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:137:in `chdir'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:137:in `sh_with_code'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:129:in `sh'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:42:in `build_gem'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:53:in `install_gem'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.8/lib/bundler/gem_helper.rb:31:in `block in install'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `call'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `each'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `execute'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:581:in `invoke'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `each'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:1992:in `run'
c:/Ruby192/bin/rake:31:in `<main>'

c:/Users/carona/Desktop/redcloth/redcloth.gemspec , , .

+3
1

, - "".

  • MinGW, DevKit 4.5.1, 64- Windows 7. , , MinGW, . MinGW .
  • Git Bash gem install RedCloth, , /C/... C:/ Makefile. , g++ . ruby gem cmd.exe .

. RubyInstaller.

+1

Source: https://habr.com/ru/post/1786496/


All Articles