Vagrant plugin can't find vagrant-berkshelf - ruby

I'm having a great deal of difficulty with vagrant-berkshelf. Currently I get an error stating it's not found, so I installed the chef-dk as a system package as instructed.
vagrant still can't find the vagrant-berkshelf plugin. I then tried:
vagrant plugin install vagrant-berkshelf --plugin-version 2.0.1
from which I got a failure as many dependcies weren't installed:
/usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:153:in `gather_dependencies': Unable to resolve dependencies: vagrant-berkshelf requires c
elluloid (~> 0.16.0.pre), celluloid-io (~> 0.16.0.pre); berkshelf requires addressable (~> 2.3.4),...
I installed these and gem list confirms it.
I still get the error. Can somebody explain how paths work in vagrant and where it's looking for what, and why it didn't find the plugin after I installed chef-dk. This isn't multiple questions; the path question should solve the others, unless I'm very much mistaken.
And also:
$ vagrant plugin list
vagrant-berkshelf (4.0.1)
vagrant-cachier (1.1.0)
vagrant-omnibus (1.4.1)

The current version of vagrant-berkshelf is 4.0.1. Trying to install the very old 2.0.1 version is probably just broken due to shifting dependency versions. I would recommend installing the current version instead.

The error message states:
Unable to resolve dependencies: vagrant-berkshelf requires celluloid (~> 0.16.0.pre), celluloid-io (~> 0.16.0.pre);
vagrant-berkshelf is installed but you're missing some of it's dependencies.
These gems can be installed with:
gem install celluloid celluloid-io

Related

vagrant-share plugin installation error -- fog-core gem mismatch

I'm learning Vagrant's vagrant-share plugin and ran into a Bundler error:
"conflicting dependencies fog-core (~> 1.43.0) and fog-core (= 1.45.0). activated fog-core-1.45.0 which does not match conflicting dependency (~> 1.43.0)."
I've uninstalled fog-core and all dependent gems, then reinstalled fog-core 1.43.0, yet the error msg persists.
Suggestions?
I ran into this same error on Ubuntu after I had installed vagrant by doing sudo apt install vagrant. Turns out that installs a version of vagrant that is too old, so I had to uninstall it, download vagrant_2.2.10_linux_amd64.zip, unzip it, and do a sudo mv vagrant /usr/bin. That got rid of the fog-core errors.

Logstash-output-mongodb depends on older version

everytime i try to install the mongo output plugin, it always show this error: Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "mongo":
In Gemfile:
logstash-output-mongodb (= 3.1.3) java depends on
mongo (~> 2.0.6) java
Could not find gem 'mongo (~> 2.0.6) java', which is required by gem 'logstash-output-mongodb (= 3.1.3) java', in any of the sources.
i tried to update the bundle but it keeps using the mongo 2.0.6.... what can i do please
actually the problem solved just by uninstall the logstash and install it again

Trouble installing jekyll-import - Conflicting jekyll and safe_yaml versions

Despite having installed safe_yaml, installing jekyll-import fails saying that it can't be found.
$ gem list --local | grep safe
safe_yaml (0.9.7)
$ gem install jekyll-import --pre
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: jekyll-import requires safe_yaml (~> 0.7.0)
$
Any advice? Thanks.
Giacecco
its a version issue you will have to upgrade or downgrade safe_yaml version, As mentioned in the error it will install only on safe_yaml 0.7.0
Here is the (partial) solution I have found.
Following zapbuild's advice in this thread I also installed safe_yaml 0.7.0, but then I crashed vs a circular reference conflict between the three gems: jekyll, jekyll-import and safe_yaml. I won't give you the detail of that.
After several attempts, the solution was to uninstall all previous jekyll and safe_yaml versions and temporarily install 1.2.1 that is the most recent to be compatible with jekyll-import's requirements while also using safe_yaml 0.7.* still.
After completing the import, I had to downgrade to jekyll 0.12.0 that is the latest Octopress' strict requirement (not even 0.12.1!).
The import was not completely successful anyway (the articles are there in the file structure but are not linked from the website structure, and the images were not fetched, despite me specifying the contrary), but the installation problem is solved.
Giacecco
Could be a permissions issue. Try sudo gem install jekyll-import --pre

Unable to resolve dependencies: geo-distance

When install this gem:
https://rubygems.org/gems/geo-distance
via ruby gems, I get:
Unable to resolve dependencies: geo-distance requires geo_units (~> 0.2.4.1); geo_calc requires sugar-high (>= 0.6.0), geo_units (>= 0.3.1.1)
I've tried installing that specific version but still geting the same issue. Can someone recomment an alternative and/or how to fix this problem?
Thanks
Maybe you should consider using Bundler.
Installation
gem install bundler
Gemfile (file)
source 'https://rubygems.org'
gem "geo-distance", "~> 0.2.0"
Command
bundle install
EDIT
I tried to install without Bundler and it works.
gem install sugar-high geo_units geo-distance

Veewee Install Error

I'm trying to install veewee for vagrant, so that I may take advantage of the automation it employs to create base boxes. I could be doing something wrong, but I don't think so...
Here's what I'm running:
gem install veewee
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: vagrant requires json (~> 1.5.1)
I also tried the following:
sudo gem install veewee
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: cucumber requires json (>= 1.4.6); gherkin requires json (>= 1.7.6); vagrant requires json (~> 1.5.1)
This is due to vagrant requiring an old version of json (for compatibility with windows, say the developers) while gherkin recently started requiring some newer one. To solve it, you should:
Make sure you remove any previously installed json gem:
gem uninstall json
Install vagrant first, so that it downloads the old json:
gem install vagrant
Install an old gherkin gem:
gem install gherkin --version '2.11.5'
Now you can install veewee:
gem install veewee
I went through this issue today and this is the sequence that worked for me. Reference:
https://github.com/jedi4ever/veewee/issues/518
I hope it helps you.
Best regards,
Ricardo.

Resources