Bundle install doesn't work - ruby-on-rails

I'm trying to install all gems in a gemFile of a project, but when i typed:
sudo bundle install
but i got this error:
Could not find gem 'llrp_connector (>= 0)' ruby in any of the gem sources listed in your Gemfile.
Anyone have an idea ?

Have you added this line on the top of your Gemfile?
source 'http://rubygems.org'
EDIT
As Dylan said, this gem doesn't exist on RubyGems.org. If it is a gem hosted on a (private) repository, add it this way :
gem "nokogiri", :git => "git://github.com/tenderlove/nokogiri.git", :branch => "1.4"

Related

Cannot install gem march_hare

I tried adding this to my Gemfile:
gem 'march_hare', '~> 2.22'
Using bundle install I got this message:
Could not find gem 'march_hare (~> 2.22)' in any of the gem sources listed in
your Gemfile or available on this machine.
On the topmost line in my Gemfile, I have this :
source 'https://rubygems.org'
When I manually visit the rubygems and I m able to find this gem here :
https://rubygems.org/gems/march_hare
How do I install this gem? I don't understand what is happening.
It doesn't work with any jRuby older than 9.0, this was a miss on my part

Could not find gem 'aws-3' in any of the gem sources listed in your Gemfile or available on this machine

I'm new to RoR and I keep getting this error when trying to install Amazon gem aws-3:
Could not find gem 'aws-3' in any of the gem sources listed in your Gemfile or available on this machine.
I'm using Rails 5.
The gem per se appears to successfully be installed:
$ gem install aws-s3
Successfully installed aws-s3-0.6.3
Parsing documentation for aws-s3-0.6.3
Done installing documentation for aws-s3 after 1 seconds
1 gem installed
Added it to my Gemfile:
gem 'aws-3', :require => 'aws/s3'
On the top of the Gemfile I have listed:
source 'https://rubygems.org'
You misspelled aws-s3 as aws-3in the Gemfile. It should be
gem 'aws-s3', :require => 'aws/s3'
Note: There's no gem which goes by the name aws-3. That is why you were getting the error.
As told by #Arun Kumar,
you need to add aws-s3 gem in your gemfile.Here is the github

LoadError: cannot load such file — bcrypt_ext

I have tried to deploy devise authentication on my rails app.
I am getting this issue
"cannot load such file -- bcrypt_ext"
I see it is a common issue amongst windows based computers but the answers to other questions have not helped me yet.
I am running Windows 8 x64 with x86 ruby and devkit
try
C:\> gem install --no-ri --no-rdoc bcrypt
C:\> cd (path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri
C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> ruby extconf.rb
C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> make
C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> make install
reference: https://www.alib.jp/entries/bcrypt_ext_load_error_on_ruby21x
bcrypt_ext.so file is missing -if you manually copy it to proper folder - in my case \Ruby23\lib\ruby\gems\2.3.0\gems\bcrypt-3.1.11-x86-mingw32\lib - it helps. :)
This worked for me:
https://github.com/codahale/bcrypt-ruby/issues/142
-Uninstall all bcrypt versions: gem uninstall bcrypt
select option 3 (uninstall all)
-Uninstall all bcrypt-ruby versions: gem uninstall bcrypt-ruby
select option 3 (uninstall all)
replace the line in your gemfile by:
to add this line to the gemfile:
gem 'bcrypt', platforms: :ruby
did not work for me though but to point the gemfile to the git repository did:
gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt'
bundle install
and you should be good to go
At this link https://github.com/codahale/bcrypt-ruby/issues/142
Somebody mentioned this solution
gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt'
And it worked for me

Mongoid error/conflict with Bundle Install (RoR) using the gem from Github

I'm using Ruby 2.0.0 + RoR4.0.2 + Mongoid 4 gem from Github:
Gemfile:
gem "moped", github: "mongoid/moped"
gem "mongoid", github: "mongoid/mongoid"
The error:
Git error: command git clone --no-checkout
"/Users/skozz/wwwssd/railsapps/research/vendor/bundle/cache/bundler/git/moped-9b1aedab11453ea81518d1ac845eab1f786d7c14"
"/Users/skozz/wwwssd/railsapps/research/vendor/bundle/bundler/gems/moped-a8f96c57042a"
in directory /Users/skozz/wwwssd/railsapps/research has failed. If
this error persists you could try removing the cache directory
'/Users/skozz/wwwssd/railsapps/research/vendor/bundle/cache/bundler/git/moped-9b1aedab11453ea81518d1ac845eab1f786d7c14'
I can solve the problem removing the cache directory but this problem happens every day and it's bothering me when it happens in production's environment at Heroku.
How I can avoid this conflict automatically?
Thx.
If that does not work, you can try this in your Gemfile
gem 'mongoid', :git => 'https://github.com/mongoid/mongoid.git'
That worked for me.
I solved it specifying the full Github's path
From:
gem "moped", github: "mongoid/moped"
gem "mongoid", github: "mongoid/mongoid"
To:
gem "mongoid", :git => 'git://github.com/mongoid/mongoid.git'
gem "moped", :git => 'git://github.com/mongoid/moped.git'

Can't install the "refinerycms-memberships" gem

What can i do if i know there is a github repository for the gem but in the terminal i couldn't install the gem via 'gem install' or 'bundle install' because it fails with the following error:
Could not find gem 'refinerycms-memberships (= 1.0)' in any of the gem sources listed in your Gemfile.
I couldn't find it on rubygems.org either, so is there any other way of getting it installed :(
If you're using bundle install then I assume you're installing using a Gemfile. In this case, you can specify a git repo:
gem refinerycms-memberships, :git => "git://path.to/git/repo"
Specifically for this gem, I found this line in my Gemfile to work for me:
gem 'refinerycms-memberships', '~> 2.0.0', :git => 'https://github.com/rbriank/refinerycms_membership.git'
Depending when you see this post, you might need to modify the version or possible add the
:branch => .... option.

Resources