Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I just figured this out, and I am so glad I did because I am using Devise for a production application that is being deployed to Tomcat, and bcrypt was causing me grief. ANYWAY, here's what you do:</p> <ol> <li>Make sure you are using a version of Ruby from <a href="http://rubyinstaller.org/downloads/" rel="nofollow">RubyInstaller</a> <ul> <li>Download and install which ever version of Ruby you want</li> <li>I should mention that I am using Ruby 1.8.7 and have not tested this for Ruby 1.9+</li> </ul></li> <li>Download the latest DevKit as well from <a href="http://rubyinstaller.org/downloads/" rel="nofollow">RubyInstaller</a>. <ul> <li>Extract DevKit, but do not set it up at this point</li> </ul></li> <li>Download and install JRuby</li> <li>At this point, both RubyInstaller Ruby and JRuby should be available on your path <ul> <li>A simple check would be is to open a command prompt window and type <ul> <li><code>jruby -v</code> outputs <code>jruby 1.5.5 (ruby 1.8.7 patchlevel 249) (2010-11-10 4bd4200) (Java HotSpot(TM) Client VM 1.6.0_21) [x86-java]</code></li> <li><code>ruby -v</code> outputs <code>ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]</code></li> </ul></li> </ul></li> <li><code>cd</code> to the directory where you extracted DevKit</li> <li>Type <code>ruby dk.rb init</code></li> <li><strong>IMPORTANT:</strong> Open <code>config.yml</code> and make sure that both your jruby and ruby installations are listed. If not, <strong>ADD</strong> them. Save and close <code>config.yml</code> after you're done.</li> <li>Back in your command prompt window, type <code>ruby dk.rb install</code>. This will install DevKit to all the ruby installations listed in your <code>config.yml</code>. Most important of all, <strong>IT WILL ALSO INSTALL IT INTO YOUR JRUBY INSTALLATION!</strong></li> <li><p>Once installation is done, give it a whirl by typing <code>jruby -S gem install bcrypt-jruby</code></p> <pre><code>C:\&gt;jruby -S gem install bcrypt-ruby --no-ri --no-rdoc JRuby limited openssl loaded. http://jruby.org/openssl gem install jruby-openssl for full support. Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed bcrypt-ruby-2.1.2 1 gem installed </code></pre></li> </ol> <p>BINGO! BANGO!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload