I am very new to this, How can I resolve this issue?
$ rake
Could not find RedCloth-4.2.9 in any of the sources
Run `bundle install` to install missing gems.
you don't have the RedCloth gem installed that's it.
If you are using Bundler gem, which I suppose, you can type bundle install to install it, otherwise you can manually install it via gem install RedCloth.
I was having similar issues and the main thing that helped was running bundle update.
Related
When trying to bundle install on a Gemfile that contained only the GitHub Pages gem and nothing else, on Ubuntu 18.04, I got error messages telling me to try installing eventmachine using gem install. That always succeeds, but bundle install still fails. How can I get bundler to see that the gem is installed?
I fixed this after many hours of struggle, by noticing that on the GitHub Pages repo there's a note that says
Important: Make sure you have Bundler > v1.14 by running gem update bundler in your terminal before following the next steps.
I have no idea why this mattered but I removed my ruby packages from Ubuntu and reinstalled them, then installed bundler with rubygems, which gave me a newer version:
sudo apt-get remove ruby
sudo apt-get install ruby ruby-dev
sudo gem install bundler
bundler --version
If anyone knows why I needed that version of bundler, or how I should have diagnosed this faster, I'd be interested to hear it. I'm not new to programming but I'm new to Ruby.
From my understanding it might be the gem you are trying to install requires a specific feature provided by bundler. If you check the change log of bundler there is some changes related to install github based gems on how to correctly read the user git settings. So I think that might be where the problem is from.
gem env shows
GEM PATHS:
/usr/local/share/gems
I would like to use bundle install --deployment --path=/usr/local/share/gems to install my bundled gems.
The problem is that the bundle install creates a folder ruby and puts the gems folder inside the ruby folder.
When this happens my ruby code is unable to find the gems in its default path.
Looks like I am missing some configuration parameter. Help please.
MaurĂcio Linhares comments in the question has resolved the issue.
When using bundler to install gems use bundle exec ruby. When the bundle install --deployment happens the path information goes into .bundle/config
bundle exec ruby path-to-ruby-script.rb
The above execution Will find the gems installed by the bundle command.
Alternatively, if you want to force installation to the system gem location, I believe bundle install --deployment --system will do what you want.
Here's what I tried:
gem install testgen
success
gem install bundlesuccess
go to project root created using testgen
bundle install this failed and asked to install gem install i18n -v '0.6.11' So I added it in gemfile this way gem 'i18n', '>=0.6.11' and tried bundle install again but it gave same error again. So I had to install it manually without using bundle install
Once this is completed it asked for many other files.
Question is: If I had to install gems manually one by one what's the use of bundle install then?
and
Why it was not installing the required gem when it is specified in Gemfile?
The command bundle install goes through every gem in the Gemfile and installs it, along with all dependencies.
An error like yours means that one of the gems, or one of its dependencies, failed to install. The Gemfile is already referencing the failing gem; you don't need to reference it again. Instead, try it from the command line:
gem install i18n -v '0.6.11'
This might fail, but the error will be more useful. This process isn't 'installing gems manually', it is solving problems your computer is raising with certain pieces of software. Bundler can't work through every problem on every kind of machine on its own.
Check out http://bundler.io/, it has some great docs that should help clarify.
I'm trying to install Redmine 2.3 from SVN (http://redmine.rubyforge.org/svn/branches/2.3-stable/)
I am using this tutorial (http://www.redmine.org/projects/redmine/wiki/HowToInstallRedmineOnUbuntuServer) as Ruby is not really my piece of cake....
I'm getting an error when running a command: rake generate_session_store
Could not find gem 'rails (= 2.3.14)' in any of the gem sources listed in your Gemfile.
Run bundle install to install missing gems.
I installed rails, but I still get the same error... searched for answers but this is really driving me crazy now.
:/usr/share/redmine# rails -v
Rails 2.3.14
Could anyone with more experience shed some light on it?
Run to install all dependent gems bundle install
run
bundle exec rake generate_session_store
this will call rake in scope of current installed gems.
In Redmine 2.x you have to use
rake generate_secret_token
Instead of the old (which is for Redmine 1.4.x)
rake generate_session_store
Source: http://www.redmine.org/projects/redmine/wiki/RedmineInstall
I'm trying to install Redmine, but I'm in trouble on the final steps.
I never used a Ruby environment before, I'm a complete beginner.
$ RAILS_ENV=production rake db:migrate
Could not find i18n-0.6.1 in any of the sources
Run `bundle install` to install missing gems.
(bundle install in not helping.)
So I tried to 'gem install i18n -v 0.6.1', telling me '1 gem installed' and everything ok.
And it still doesn't work, and still don't get i18n (in any version) when I 'gem list'
The previous answer doesn't fix anything for me, I'm not using passenger.
Thanks.
EDIT : I found the dir where my gems are, /var/lib/gems/1.8/gems
in18-0.6.1 and other gems are here, but not listed in 'gem list'
EDIT 2 : Ok, my problem is more precise now. I'm actually trying to write a puppet script to install Redmine, and the 'bundle install' is actually working on a command line, but not in an exec puppet resource.
If you have problem with installing gems on remote and have not frequently updated project, you can cache gems and add them to git by bundle package and installing them after by
bundle install --local