How to fix sqlite3 error using rails and ruby - ruby-on-rails

worked properly) here it is:
Bundler could not find compatible versions for gem "ruby ":
In Gemfile:
ruby (~> 2.6.1.0) x64-mingw32
sass-rails (~> 5.0) x64-mingw32 was resolved to 5.0.6, which depends on
sass (~> 3.1) x64-mingw32 was resolved to 3.5.1, which depends on
sass-listen (~> 4.0.0) x64-mingw32 was resolved to 4.0.0, which depends on
rb-inotify (~> 0.9, >= 0.9.7) x64-mingw32 was resolved to 0.9.10, which depends on
ffi (>= 0.5.0, < 2) x64-mingw32 was resolved to 1.9.18, which depends on
ruby (< 2.5) x64-mingw32
Could not find gem 'ruby (< 2.5)', which is required by gem 'sqlite3', in any
of the relevant sources: the local ruby installation

I figured it out by adding
gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec"

Related

Problem with install bundles ruby on rails

Bundler could not find compatible versions for gem "pg":
In Gemfile:
pg (= 0.18.4)
multilang-hstore (= 1.0.0) was resolved to 1.0.0, which depends on
pg (>= 0.0.1)
Bundler could not find compatible versions for gem "responders":
In Gemfile:
responders (= 1.1.2)
devise (= 3.4.1) was resolved to 3.4.1, which depends on
responders
Bundler could not find compatible versions for gem "rubyzip":
In Gemfile:
axlsx (= 2.0) was resolved to 2.0.0, which depends on
rubyzip (= 0.9.9)
zip-zip was resolved to 0.3, which depends on
rubyzip (>= 1.0.0)

Sass gem conflict

When I desire to start the server in my GitBash, I get the next message in red letters:
Bundler could not find compatible versions for gem "sass":
In snapshot (Gemfile.lock):
sass (= 3.5)
In Gemfile:
sass (= 3.5) x86-mingw32
compass (>= 1.0.3, ~> 1.0) x86-mingw32 was resolved to 1.0.3, which depends on
sass (< 3.5, >= 3.3.13) x86-mingw32
sass-rails (>= 5.0.7, ~> 5.0) x86-mingw32 was resolved to 5.0.7, which depends on
sass (~> 3.1) x86-mingw32
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
I really have been breaking my head on this for the past few hours. Could somebody help?
Replacing sass-rails with gem 'sass-rails', '~> 6.0.0.beta1' will resolve your issue. and use sass version 3.4
if you don't want to go for a beta version of sass rails then you have to downgrade compass to gem 'compass', '~> 0.12.1'.

Bundler could not find compatible versions for gem "activemodel"

In Gemfile:
protected_attributes x86-mingw32 was resolved to 1.0.0, which depends on
activemodel (< 5.0, >= 4.0.0.beta) x86-mingw32
rails (~> 5.0.4) x86-mingw32 was resolved to 5.0.4, which depends on
activemodel (= 5.0.4) x86-mingw32
rails (~> 5.0.4) x86-mingw32 was resolved to 5.0.4, which depends on
activemodel (= 5.0.4) x86-mingw32
web-console (>= 3.3.0) x86-mingw32 was resolved to 3.5.1, which depends on
activemodel (>= 5.0) x86-mingw32
I already tried to do bundle, bundle install and bundle update but it doesnt work.
I made some research and turns out that the gem protected_attributes does not work with Rails 5, but the community made another that does work, this gem is protected_attributes_continued, so i just changed the gem in the Gemfile

rails bundler error : Shopify_app

I listed the below
gem in my gemfile and after running "bundle install" i get the below
error.
Can someone tell me what to do, where to list or edit the correct
gems/dependencies
gem file :
gem 'rails', '~> 5.0.2'
gem 'shopify_app'
===========================
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
shopify_app x64-mingw32 was resolved to 7.0.10, which depends on
shopify_api (~> 4.2) x64-mingw32 was resolved to 4.2.0, which
depends on
activeresource x64-mingw32 was resolved to 2.0.1, which depends
on
activesupport (= 2.0.1) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activejob (= 5.0.2) x64-mingw32 was resolved to 5.0.2, which
depends on
globalid (>= 0.3.6) x64-mingw32 was resolved to 0.4.0, which
depends on
activesupport (>= 4.2.0) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
actionpack (= 5.0.2) x64-mingw32 was resolved to 5.0.2, which
depends on
rails-dom-testing (~> 2.0) x64-mingw32 was resolved to 2.0.2, which
depends on
activesupport (< 6.0, >= 4.2.0) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
sprockets-rails (>= 2.0.0) x64-mingw32 was resolved to 3.2.0, which
depends on
activesupport (>= 4.0) x64-mingw32
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.0.2) x64-mingw32
shopify_app x64-mingw32 was resolved to 0.1.0, which depends on
rails (~> 3) x64-mingw32
D:\Ruby On Rails\firstRailsProject>rails s
Could not find gem 'shopify_app x64-mingw32' in any of the gem sources
listed in
your Gemfile.
Run bundle install to install missing gems.
if you read carefuly the github readme for shopify_app, you'll find that there are some issues between ruby R versions:
so, you must do:
gem 'shopify_app'
gem 'activeresource', github: 'rails/activeresource'
for more info -> github shoopy

Twitter Bootstrap Rails - Gem Issue

When trying to install a rails gem that ships the twitter-bootstrap-rails into my application, I got the following issue:
C:\workinrails\mytrelloapp>bundle install
Bundler could not find compatible versions for gem "railties":
In snapshot (Gemfile.lock):
railties (= 4.2.5.1)
In Gemfile:
coffee-rails (~> 4.1.0) x86-mingw32 was resolved to 4.1.1, which depends on
railties (< 5.1.x, >= 4.0.0) x86-mingw32
jquery-rails x86-mingw32 was resolved to 4.2.2, which depends on
railties (>= 4.2.0) x86-mingw32
rails (= 4.2.5.1) x86-mingw32 was resolved to 4.2.5.1, which depends on
railties (= 4.2.5.1) x86-mingw32
sass-rails (~> 5.0) x86-mingw32 was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0) x86-mingw32
twitter-bootstrap-rails x86-mingw32 was resolved to 4.0.0, which depends on
railties (>= 5.0.1, ~> 5.0) x86-mingw32
web-console (~> 2.0) x86-mingw32 was resolved to 2.3.0, which depends on
railties (>= 4.0) x86-mingw32
After getting this "Running bundle update will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict." message, I got a new issue telling me that Bundler could not find compatible versions for gem "actionpack"
To summarize, I just did these steps:
Step 1 - Pasted gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git' to my gemfile.
Step 2 - Bundle install
And I was hoping to arrive to Step 3 - rails generate bootstrap:install static
What's the issue?

Resources