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

Could not find bcrypt-3.1.15 in any of the sources #7

Closed
unixneo opened this issue Aug 29, 2020 · 2 comments
Closed

Could not find bcrypt-3.1.15 in any of the sources #7

unixneo opened this issue Aug 29, 2020 · 2 comments

Comments

@unixneo
Copy link

unixneo commented Aug 29, 2020

Hey @zayneio

Thanks for this tutorial. I'm on macOS:

$ rails -v
Rails 6.0.3.2
$ ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]
$ bundle -v
Bundler version 2.1.4

Before building myself, step-by-step, I wanted to run it from your repo, so I cloned it and cannot fix this error:

$ bundle exec rails db:prepare
Could not find bcrypt-3.1.15 in any of the sources
Run `bundle install` to install missing gems.

Have manually installed bcrypt like this:

$ gem install bcrypt
Building native extensions. This could take a while...
Successfully installed bcrypt-3.1.15
1 gem installed

and then checked:

$ bundle update | grep bcrypt
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Using bcrypt 3.1.15

see also:

$ gem list | grep bcrypt
bcrypt (3.1.15, 3.1.13, 3.1.12)

but when I run:

$ bundle exec rails db:prepare
Could not find bcrypt-3.1.15 in any of the sources
Run `bundle install` to install missing gems.

Any clues you can provide to get past this error would be much appreciated.

Thanks.

@unixneo
Copy link
Author

unixneo commented Aug 29, 2020

See Also:

$ bundle update
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.....
Using rake 13.0.1
Using concurrent-ruby 1.1.7
Using method_source 1.0.0
Using connection_pool 2.2.3
Using diff-lcs 1.4.4
Using ffi 1.13.1
Using graphql 1.11.4
Using promise.rb 0.7.4
Using rb-fsevent 0.10.4
Using ruby_dep 1.5.0
Using pg 1.2.3
Using websocket-extensions 0.1.5
Using redis 4.2.1
Using rspec-support 3.9.3
Using bcrypt 3.1.15
Using tilt 2.0.10
Using semantic_range 2.3.0
Using spring 2.1.1
Using thor 1.0.1
Using i18n 1.8.5
Using rb-inotify 0.10.1
Using graphql-batch 0.4.3
Using websocket-driver 0.7.3
Using rspec-core 3.9.2
Using rspec-expectations 3.9.2
Using rspec-mocks 3.9.1
Using figaro 1.2.0
Using listen 3.1.5
Using sass-listen 4.0.0
Using rspec_junit_formatter 0.4.1
Using rack 2.2.3
Using sass 3.7.4
Using rack-test 1.1.0
Using sprockets 3.7.2
Using mimemagic 0.3.5
Using rack-proxy 0.6.5
Using marcel 0.3.3
Using brakeman 4.9.0
Using bundler 2.1.4
Using turbolinks-source 5.2.0
Using byebug 11.1.3
Using turbolinks 5.2.1
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using minitest 5.14.1
Using coffee-script 2.4.1
Using thread_safe 0.3.6
Using builder 3.2.4
Using erubi 1.9.0
Using tzinfo 1.2.7
Using crass 1.0.6
Using spring-watcher-listen 2.0.1
Using mini_portile2 2.4.0
Using puma 3.12.6
Using sidekiq 6.1.1
Using mini_mime 1.0.2
Using ruby_http_client 3.5.1
Using mail 2.7.1
Using sendgrid-ruby 6.3.4
Using coderay 1.1.3
Using uglifier 4.2.0
Using zeitwerk 2.4.0
Using nio4r 2.5.2
Using activesupport 6.0.3.2
Using bindex 0.8.1
Using globalid 0.4.2
Using bundler-audit 0.7.0.1
Using nokogiri 1.10.10
Using activemodel 6.0.3.2
Using rails-dom-testing 2.0.3
Using factory_bot 6.1.0
Using activerecord 6.0.3.2
Using activejob 6.0.3.2
Using loofah 2.7.0
Using fast_jsonapi 1.5
Using rails-html-sanitizer 1.3.0
Using pry 0.13.1
Using actionview 6.0.3.2
Using actionpack 6.0.3.2
Using actioncable 6.0.3.2
Using activestorage 6.0.3.2
Using actionmailer 6.0.3.2
Using actionmailbox 6.0.3.2
Using sprockets-rails 3.2.1
Using actiontext 6.0.3.2
Using railties 6.0.3.2
Using coffee-rails 4.2.2
Using factory_bot_rails 6.1.0
Using graphiql-rails 1.7.0
Using rails 6.0.3.2
Using rspec-rails 4.0.1
Using sass-rails 5.1.0
Using web-console 4.0.4
Using webpacker 5.2.1
Bundle updated!

$ bundle exec rails db:prepare
Could not find bcrypt-3.1.15 in any of the sources
Run `bundle install` to install missing gems.

@unixneo
Copy link
Author

unixneo commented Aug 29, 2020

Fixed it by switch users and changing GEM paths.

@unixneo unixneo closed this as completed Aug 29, 2020
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

No branches or pull requests

1 participant