Could not find method_source-1.0.0.gem for installation - redmine

I want to install redmine as a source by referring to the URL below.
https://www.redmine.org/projects/redmine/wiki/RedmineInstall
When I run the below in "Step 4 - Dependencies installation", I get an error.
/opt/redmine/redmine-5.0.0$ sudo bundler install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
:
Installing method_source 1.0.0
Bundler::GemNotFound: Could not find method_source-1.0.0.gem for installation
:
/usr/local/bin/bundler:25:in `load'
/usr/local/bin/bundler:25:in `'
:
An error occurred while installing method_source (1.0.0), and Bundler cannot continue.
In Gemfile:
actionpack-xml_parser was resolved to 2.0.1, which depends on
railties was resolved to 6.1.4.7, which depends on
method_source

Im fixed this error by install gem manually:
gem install method_source

Related

Why doesn't "gem install bundler" upgrade my bundler?

I’m trying to upgrade from Rails 4.2 to Rails 6. I have this in my Gemfile
fail "run 'gem install bundler' to update your bundler version" unless Bundler::VERSION >= '2.0.0'
source 'https://rubygems.org'
ruby '~> 2.6.7'
gem 'rails', '~> 6.0.0'
And when I install, I get the failure
$ bundle install
[!] There was an error parsing `Gemfile`: run 'gem install bundler' to update your bundler version. Bundler cannot continue.
# from /Users/davea/workspace/my-app/Gemfile:1
# -------------------------------------------
> fail "run 'gem install bundler' to update your bundler version" unless Bundler::VERSION >= '2.0.0'
# source 'https://rubygems.org'
# -------------------------------------------
So I wanted to upgrade bundler, and ran
$ gem install bundler
Successfully installed bundler-2.2.31
Parsing documentation for bundler-2.2.31
Done installing documentation for bundler after 2 seconds
1 gem installed
But this doesn’t seem to upgrade anything. I still get the same error
$ bundle install
[!] There was an error parsing `Gemfile`: run 'gem install bundler' to update your bundler version. Bundler cannot continue.
# from /Users/davea/workspace/my-app/Gemfile:1
# -------------------------------------------
> fail "run 'gem install bundler' to update your bundler version" unless Bundler::VERSION >= '2.0.0'
# source 'https://rubygems.org'
# -------------------------------------------
The version still seems stuck on the old version
$ bundle -v
Bundler version 1.17.3
$ bin/bundle -v
Bundler version 1.17.3
Even running
$ gem update bundler
Updating installed gems
Nothing to update
Doesn’t help. How do I upgrade my bundler?
Check your Gemfile entry versions and make sure Gemfile.lock is in your version control and then:
bundle update --bundler

Error installing rhc: net-scp requires net-ssh (>= 2.6.5, runtime)

I'm trying to install Open shift's client tool to access apps on OpenShift. But I get the following error when I try to install rhc:
Error installing rhc: net-scp requires net-ssh (>= 2.6.5, runtime)
Couldn't find much help online to resolve this error.
[I'm using an old MacBook running SnowLeopard.]
Thanks.
Snow Leopard comes with net-ssh 2.0.4 installed. Try running sudo gem update net-ssh in terminal to update net-ssh, then try installing rhc again.
You may want to just run sudo gem update to get all of your RubyGems up to date.

ActiveAdmin: gem not checkout, run bundle install first

In a Rails 4 app, I am trying to use ActiveAdmin 1.0.pre2. bundle install doesn't complain and seems to have included the gem and it works properly.
I am having this in my gem file:
gem 'activeadmin', github: 'gregbell/active_admin'
$> bundle show activeadmin
/home/aslam/.rvm/gems/ruby-2.1.0#monaeo/bundler/gems/active_admin-3fb7f03335b1
Even after running bundle install several times, I keep getting the following error:
git://github.com/gregbell/active_admin.git (at master) is not yet checked out.
Run `bundle install` first.
I am using
Bundler version 1.6.0.rc2 (upgraded from 1.5.3)
Ruby: ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux]
Rails: 4.0.4
I am not sure what is going wrong here?
Try to install a prerelease version of Bundler:
gem install bundler --pre
It should solve the problem.
Use following in the Gemfile
gem 'activeadmin', :git => "git://github.com/gregbell/active_admin.git"
This way when you run bundle install, activeadmin would be sourced from its github repository.
Two things
A. You need to include like this in the gem file since 0.6.x is stable and maintained.
gem 'activeadmin', github: 'gregbell/active_admin', branch: '0-6-stable'
B. You can give a try by forking from the stable version of activeadmin
My solution:
rake rails:update:bin
bundle install

Compiling ember-data

In the Read-Me for ember-data I found the following lines:
Getting ember-data:
Currently you must build ember-data.js yourself.
Clone the repository, run bundle then rake dist. You'll find
ember-data.js in the dist directory."
I'm a little confused though... what does "run bundle" mean?
It's a ruby thing. Bundler is a rubygem for managing application dependencies. The bundle command is used to install all of the rubygems that are required by the ember-data project. Try this:
git clone git://github.com/emberjs/data.git
cd data
bundle install
rake
If bundle command is missing, you'll need to install the bundler gem:
gem install bundler
Of course you also need to have a modern version of ruby and rubygems ;-)
See http://gembundler.com/ for more info on bundler
run bundle means install the package dependencies via Bundler which will read the Gemfile and install the dependencies defined in it.
To install the dependencies run the command bundle install

I can't execute command: vmc info

Here is the error info
D:/software/Ruby187/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1637:in ra
ise_if_conflicts': Unable to activate cfoundry-0.4.8, because multi_json-1.3.6 c
onflicts with multi_json (~> 1.4.0) (Gem::LoadError)
from D:/software/Ruby187/lib/ruby/site_ruby/1.8/rubygems/specification.rb:746:in activate'
Uninstall multi_json by using the following command, when asked which version select "all versions"
gem uninstall multi_json
then, re-install vmc
gem install vmc