Error in celluloid gem installation - ruby

Recently I have update my rails version to 4.2.3 and ruby version to ruby-2.2.3. After that when I do bundle it gives following error:
$ bundle
Fetching gem metadata from http://rubygems.org/..........
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Could not find celluloid-0.16.1 in any of the sources
Could you help me?

Version 0.16.1 of the celluloid gem was yanked and is not available anymore. You will need to downgrade to 0.16.0 or upgrade to 0.17.x. Run:
bundle update celluloid

Related

Bundler could not find compatible versions for gem "globalize":

Hi everyone I have recently started developing with this framework, I am having difficulties in starting a project locally.
When I go to run a
bundle install
I get this error message:
Bundler could not find compatible versions for gem "globalize": In Gemfile:
globalize java
globalize-accessors java was resolved to 0.2.1, which depends on
globalize (>= 5.0.0, ~> 5.0)
Could not find gem 'globalize (>= 5.0.0, ~> 5.0)', which is required by gem 'globalize-accessors', in any of the relevant sources: https://github.com/globalize/globalize.git (at master#bcfa30f)
Bundler could not find compatible versions for gem "globalize-accessors": In snapshot (Gemfile.lock):
globalize-accessors (= 0.2.1)
In Gemfile:
globalize-accessors java
Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.
this is the part of the gemfile concerned:
########## Globalization
gem "route_translator", git: "https://github.com/enriclluelles/route_translator.git"
gem 'activemodel-serializers-xml'
gem 'globalize-accessors'
gem 'globalize', github: 'globalize/globalize'
gem 'kaminari', github: "amatsuda/kaminari", branch: '0-17-stable'
gem "kaminari-i18n"
i also tried to run bundle update but it didn't fix the problem
Ruby version:2.3.3
gem -v:2.5.2
The version of globalize in your gemfile seems not to correspond to the version required for globalize-accessors.
Try installing globalize like so :
gem 'globalize', "~> 5.0"

Bundler could not find compatible versions for gem "bundler": In Gemfile:

I'm making GitHub blog page with Jekyll. I've failed like numerous times and just forked new one and followed README on the repository.
It's https://github.com/janczizikow/sleek/blob/master/README.md
and I tried to run inside the directory(master) but this msg keeps coming out.
I tried 'gem install bundler' 'gem cleanup' and similar solutions on the internet but still can't fix it. I get that I need another version which is lower one, then how can I remove the current one and install the version I need?
I've never used Ruby so I'm SO lost. A little advice will mean a lot.
bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (~> 1.12) x64-mingw32
Current Bundler version:
bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (~> 1.12)' in any of the relevant sources:
the local ruby installation
Version 2.0.2 comes from gem install bundler, but the project uses bundler version 1.12.
To fix your issue run
gem install bundler -v 1.12
bundle _1.12_ install
To start Jekyll run jekyll serve or bundle exec jekyll serve.

after bundler installed with specific version why version of bundler did not change?

I got following error for bundle
Bundler could not find compatible versions for gem "bundler": In
Gemfile:
bundler (~> 1.15)
Current Bundler version:
bundler (2.0.1) This Gemfile requires a different version of Bundler. Perhaps you need to update Bundler by running gem install
bundler?
Could not find gem 'bundler (~> 1.15)' in any of the relevant sources:
the local ruby installation
then I tried to downgrade the bundler version with
$ gem install bundler -v '~> 1.7.0' Fetching: bundler-1.7.15.gem
(100%) Successfully installed bundler-1.7.15 Parsing documentation for
bundler-1.7.15 Installing ri documentation for bundler-1.7.15 Done
installing documentation for bundler after 1 seconds 1 gem installed
but when I recheck the bundler version with
bundler --version
it still said Bundler version 2.0.1
The default bundler version on your system is still 2.0.1. If you need to use the downloaded version 1.7.15, you would have to run bundle _1.7.15_ install. You could also check if that version was successfully installed on your system using bundle _1.7.15_ -v
In either case, if you get the error Could not find command "_1.7.15_", then that means that the bundler version _1.7.15_ has not been installed on your system.
Additionally, these links may help you:
Run specific version of bundler
Downgrade Bundler in RVM
Try updating bundle with bundler update bundler and run the bundle update again. It solved my problem the last time.

How to solve "Dependency Error: Yikes! It looks like you don't have bunto-sitemap installed." on Windows?

I'm trying to use Bunto on my Windows 10 computer but I get a Dependency Error!
Error
Here the output (error):
> bundle exec bunto serve
Configuration file: C:/Users/Aahash/Downloads/aahash.tk/_config.yml
Dependency Error: Yikes! It looks like you don't have bunto-sitemap or one of its dependencies installed. In order to use Bunto as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- bunto-sitemap' If you run into trouble, you can find helpful resources at https://buntowaf.tk/help/!
bunto 3.2.1 | Error: bunto-sitemap
My environment
This is my Ruby and Gems versions:
> ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x64-mingw32]
> gem -v
2.6.8
Code
My Gemfile:
source "https://rubygems.org"
ruby RUBY_VERSION
gem 'bunto'
Output
This is my output of bundle install:
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using sass 3.4.23
Using rb-fsevent 0.9.8
Using ffi 1.9.18
Using ruby_dep 1.5.0
Using wdm 0.1.1
Using colorator 1.1.0
Using kramdown 1.13.2
Using liquid 3.0.6
Using mercenary 0.3.6
Using forwardable-extended 2.6.0
Using rouge 1.11.1
Using safe_yaml 1.0.4
Using bundler 1.13.6
Using bunto-sass-converter 2.0.0
Using rb-inotify 0.9.8
Using pathutil 0.14.0
Using listen 3.1.5
Using bunto-watch 1.0.0
Using bunto 3.2.1
Bundle complete! 2 Gemfile dependencies, 19 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
How can I fix this error? Thanks in advance!
You forgot to add gem 'bunto-sitemap' in your Gemfile!
You should also use the Windows Directory Monitor (WDM) gem!
Info: Windows Directory Monitor (WDM) is a thread-safe ruby library which can be used to monitor directories for changes on Windows. It's mostly implemented in C and uses the Win32 API for a better performance!
Change the content in your Gemfile from this:
source "https://rubygems.org"
ruby RUBY_VERSION
gem 'bunto'
to this:
source "https://rubygems.org"
ruby RUBY_VERSION
gem 'bunto'
gem 'bunto-sitemap'
## Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
I had the same issue with a different gem, if the gem is installed it could be possible that for whatever the reason the bundle is not picking it up.
To make sure that the bundle recognizes it try using the following command:
sudo bundle add bunto-sitemap
After that check the bundle and if it is showing there as of now try the operation you were trying to run again. It should wor

Can not find jsonapi parser 0.1.1

When I run rails server, 'Could not find jsonapi-parser-0.1.1.beta2' error shows up.
~/ruby_on_rails/test/sampleapp$ rails s
Could not find jsonapi-parser-0.1.1.beta2 in any of the sources
Run `bundle install` to install missing gems.
~/ruby_on_rails/test/sampleapp$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Could not find jsonapi-0.1.1.beta4 in any of the sources
bundle update jsonapi
should fix it
jsonapi beta4 is not available. only beta5, beta 1,beta2 are available. you could find this here
Add this line in your gemfile if not and then run bundle install.
gem 'jsonapi-parser', '~> 0.1.1.beta2'
gem 'jsonapi', '~> 0.1.1.beta5'
This might be due to the method which requires jsonparser which is not included in your rails app.

Resources