Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Fat-Binary Gem with support for 1.8 and 2.0 #77

Closed
tjschuck opened this issue Jul 30, 2013 · 12 comments · Fixed by #78
Closed

Windows Fat-Binary Gem with support for 1.8 and 2.0 #77

tjschuck opened this issue Jul 30, 2013 · 12 comments · Fixed by #78
Assignees

Comments

@tjschuck
Copy link
Collaborator

Version 3.1.1 removed support for Ruby 1.8 from the Windows binary version of the gem because of issues with rake-compiler.

Once tjschuck/rake-compiler-dev-box#2 lands, I will build a new version that supports 1.8, 1.9, and 2.0.

@ghost ghost assigned tjschuck Jul 30, 2013
@tjschuck tjschuck mentioned this issue Jul 30, 2013
@mulaiko
Copy link

mulaiko commented Aug 2, 2013

Hi there (i hope this is the correct place to post this),

I just ran a gem install and this is what i get:

gem install bcrypt-ruby Successfully installed bcrypt-ruby-3.1.1-x86-mingw32 Parsing documentation for bcrypt-ruby-3.1.1-x86-mingw32 unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/bcrypt_ext.so, skippin g 1 gem installed.

Can you advise as to steps that i can take to resolve this issue?
Im on windows 7, 32bit machine

@tjschuck
Copy link
Collaborator Author

tjschuck commented Aug 2, 2013

@mulaiko What version of Ruby? ruby -v

On Friday, August 2, 2013, mulaiko wrote:

Hi there (i hope this is the correct place to post this),

I just ran a gem install and this is what i get:

gem install bcrypt-ruby Successfully installed
bcrypt-ruby-3.1.1-x86-mingw32 Parsing documentation for
bcrypt-ruby-3.1.1-x86-mingw32 unable to convert "\x90" from ASCII-8BIT to
UTF-8 for lib/bcrypt_ext.so, skippin g 1 gem installed.

Can you advise as to steps that i can take to resolve this issue?
Im on windows 7, 32bit machine


Reply to this email directly or view it on GitHubhttps://github.com//issues/77#issuecomment-22000335
.

@mulaiko
Copy link

mulaiko commented Aug 3, 2013

@tjschuck ruby 2.0.0p247

@tjschuck
Copy link
Collaborator Author

@mulaiko I just pushed an RC version of the gem that should hopefully fix your issue. Can you please try to install version 3.1.2.rc1 and let me know if it succeeds or not? If it works, I will bump to 3.1.2 officially.

In your Gemfile, gem "bcrypt-ruby", "3.1.2.rc1", or standalone, just gem install bcrypt-ruby -v 3.1.2.rc1.

Thank you for your help!

@cipacda
Copy link

cipacda commented Aug 24, 2013

I had the same problem, and it worked once I manually installed the 3.1.2.rc1 version and then replaced bcrypt_ext.so in {RUBY_DIR}\lib\ruby\gems\2.0.0\gems\bcrypt-ruby-3.1.1-x86-mingw32\lib with the one in the 3.1.2.rc1 installation folder.

I thinks it is therefore safe to move to 3.1.2, @tjschuck

Thanks :)

@tjschuck
Copy link
Collaborator Author

@mulaiko @cipacda Thanks for your help -- version 3.1.2 final is now up on RubyGems.

@dreamerzfly
Copy link

@tjschuck: I added gem install bcrypt-ruby -v 3.1.2.rc1 to my gem file, then ran a bundle update and started rails server. however I'm still getting this error

can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.2.rc1-x86-mingw32. Make sure all dependencies are added to Gemfile

I'm on Windows 8, with Rails 4.0.0 Ruby 2.0.0.

Thanks!

@tjschuck
Copy link
Collaborator Author

tjschuck commented Sep 3, 2013

@dreamerzfly Try uninstalling the gem first (gem uninstall bcrypt-ruby, and uninstall all versions).

Then, in your Gemfile, add the line gem 'bcrypt-ruby', '~> 3.1.2', making sure you don't have any other line also loading bcrypt -- if you do, remove those lines. Then bundle install, and you should be good to go.

@ryannealmes
Copy link

I have the exact same setup as @dreamerzfly and I am getting the same error

 Gem::LoadError:
   can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.2-x86-mingw32. Make sure all dependencies are added to Gemfile.

The above fix does nothing to help :/

Please help ... I have tried everything :/

@ryannealmes
Copy link

Shot man. Seems to have sorted out my issue after testing :)

@piyush
Copy link

piyush commented Oct 25, 2013

I was trying to install "bcrypt-ruby" on Windows 8, 64 bit .

Tried a lot of configurations, ranging from different versions of the gem, direct from git, platform ruby etc.

But nothing worked

At the end installed DEVKIT compatible to my ruby version and thats it.

Steps

Install Devkit compatible to your ruby version

Link : http://rubyinstaller.org/downloads/

Download under

C:/Ruby Folder/devkit

Then on command line go to above path

C:/Ruby Folder/devkit

then say

gem install bcrypt-ruby

This should install it,

Post this, you need to add the gem to your Gemfile and say

bundle install
bundle update
bundle install

This should work fine. Also solves update issues related to active_record etc.


The same should work for WIN 64, WIN 32 also.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants