Bundler could not find compatible versions for jquery-ui-rails - ruby-on-rails-4

I've created a new gemset, then, when I try to bundle install, I get this error:
Bundler could not find compatible versions for gem "jquery-ui-rails":
In Gemfile:
activeadmin (>= 0) ruby depends on
jquery-ui-rails (~> 5.0) ruby
alchemy_cms (~> 3.0.0.rc5) ruby depends on
jquery-ui-rails (4.1.1)
Although, I've apt-get update, any help?

remove the version constrain from alchemy_cms in Gemfile and run:
bundle update

Related

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

im a noob. i need help.
im trying to install Redmine CRM plugin however im getting an error when i run this:
bundle install --without development test
it says:
Bundler could not find compatible versions for gem "i18n":
In Gemfile:
rails (= 4.2.0) ruby depends on
railties (= 4.2.0) ruby depends on
activesupport (= 4.2.0) ruby depends on
i18n (~> 0.7) ruby
money (~> 5.1.0) ruby depends on
i18n (~> 0.6.0) ruby
Redmine CRM plugin has to be upgraded to newer versions of redmine in parallel. I recommend to upgrade redmine first (with an empty plugins directory) and then add the redminecrm plugins and upgrade them too.
Redmine CRM Plugin 4.0.3 is compatible with Redmine 2.6-3.1
Older versions of the Redmine CRM Plugin installed on Redmine 3.1 result in the error you posted.
In your Gemfile, manually specify I18n gem like
gem 'I18n', '~0.6.0'

Activeadmin bundle error

I am having this error when trying to bundle install. From what I understand it says activeadmin gem depends on metasearch 0.9.2 and metasearch gem depends on activerecord 3.1.0 but rails 4.1.0 depends on activercod 4.1.0. so what is my course of action for this?
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
activeadmin (>= 0) ruby depends on
meta_search (>= 0.9.2) ruby depends on
activerecord (~> 3.0.0.rc2) ruby
rails (= 4.1.0) ruby depends on
activerecord (4.1.0)
We're currently working on 1.0.0, which as far as dependencies, moves
us from meta_search to Ransack and adds Rails 4 support. You can get
Rails 4 and 4.1 support by tracking master:
gem 'activeadmin', github: 'activeadmin'
https://github.com/activeadmin/activeadmin

Error in activeadmin gem

hello I am here again with an error in my project.
I want to install activeadmin gem but it is showing me error as below.my rails version is 4.0.0
I looked to the solution provided but then also it shows me error.
Updating git://github.com/gregbell/active_admin.git
fatal: ambiguous argument 'rails4': unknown revision or path not in the working
tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Git error: command `git rev-parse rails4` in directory
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-d
67faab65e9b74efbc8efb4a777a851e9f78b2ca has failed.
If this error persists you could try removing the cache directory
'C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-
d67faab65e9b74efbc8efb4a777a851e9f78b2ca'
If I remove the branch name it shows me error
Updating git://github.com/gregbell/active_admin.git
Resolving dependencies...
Bundler could not find compatible versions for gem "devise":
In Gemfile:
activeadmin (>= 0) x86-mingw32 depends on
devise (~> 3.2) x86-mingw32
devise (3.1.1)
Just you need to bundle first in starting of app.
No need to enter other gem files.
gem 'activeadmin', github: 'gregbell/active_admin'
in the Gemfile and bundle .It will automatically download all necessary gem in your application.
C:\Sites\try>bundle
Updating git://github.com/gregbell/active_admin.git
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.1)
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.4)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Installing arbre (1.0.1)
Using sass (3.2.14)
Using thor (0.18.1)
Installing bourbon (3.1.8)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using railties (4.0.0)
Using coffee-rails (4.0.1)
Using bcrypt-ruby (3.1.2)
Installing orm_adapter (0.5.0)
Using warden (1.2.3)
Installing devise (3.2.2)
Installing formtastic (2.3.0.rc2)
Installing has_scope (0.6.0.rc)
Installing responders (1.0.0)
Installing inherited_resources (1.4.1)
Using jquery-rails (3.0.4)
Using jquery-ui-rails (4.1.1)
Installing kaminari (0.15.1)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.0)
Using bundler (1.3.5)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.0)
Installing polyamorous (0.6.4)
Installing ransack (1.1.0)
Using sass-rails (4.0.1)
Using activeadmin (1.0.0.pre) from git://github.com/gregbell/active_admin.git (at master)
Using jbuilder (1.5.3)
Using json (1.8.1)
Using pg (0.17.0)
Using rdoc (4.1.1)
Using sdoc (0.4.0)
Using turbolinks (2.2.0)
Using uglifier (2.4.0)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
I suspect that your Gemfile restricts your devise version to something like ~> 3.1.0, which means it won't let you upgrade to 3.2. You are correct in removing the rails4 branch, as master is now the official Rails4-compatible branch. If you remove your devise version restriction, you should probably be able to get it working.
Just for information:
If someone faces similar issue, and already have gem 'devise', without version in the Gemfile, then first do a bundle install and then try to update Gemfile with active_admin

ERROR: Error installing jquery-rails: activesupport requires Ruby version >= 1.9.3. in Ubuntu 10.04

I'm trying to install the latest ruby and latest rails in latest gem version
I have rvm installed and created a new gemset named hotel
~$ rvm use ruby-2.0.0-p247#hotel
Using /home/circar/.rvm/gems/ruby-2.0.0-p247 with gemset hotel
~$ gem list
*** LOCAL GEMS ***
actionmailer (4.0.0)
actionpack (4.0.0)
activemodel (4.0.0)
activerecord (4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
arel (4.0.0)
atomic (1.1.14)
builder (3.1.4)
bundler (1.3.5)
coffee-rails (4.0.0)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
erubis (2.7.0)
execjs (2.0.1)
hike (1.2.3)
i18n (0.6.5)
jbuilder (1.5.1)
mail (2.5.4)
mime-types (1.25)
minitest (4.7.5)
multi_json (1.8.0)
polyglot (0.3.3)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.0)
railties (4.0.0)
rake (10.1.0)
rubygems-update (2.1.1)
rvm (1.11.3.8)
sprockets (2.10.0)
sprockets-rails (2.0.0)
thor (0.18.1)
thread_safe (0.1.3)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (0.3.37)
~$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
~$ rails -v
Rails 4.0.0
~$ gem -v
2.1.1
But when I'm trying to install
jquery-rails
as
~$ sudo gem install jquery-rails
It shows Error as
ERROR: Error installing jquery-rails:
activesupport requires Ruby version >= 1.9.3.
Anyone please help me to install the jquery-rails gem with the latest update environment.
The gem is also pointing the current rvm
$ which gem
/home/circar/.rvm/rubies/ruby-2.0.0-p247/bin/gem
I googled it, but i dont know why i stumble in this place? I am unable to find any problem in my process, as stated everywhere.
Any help highly appreciated.
Thanks in advance.
sudo gem install jquery-rails is probably using your system's built-in Ruby (which is likely 1.8, or 1.9.2). This is because you're using sudo.
With RVM, get rid of the sudo and it'll use RVM instead:
gem install jquery-rails

gem globalize3 on rails 4

Someon are using globalize3 with rails4.
How you configure it?
i tryed to install, on my Gemfile:
gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'
but i have these errors:
Bundler could not find compatible versions for gem "railties":
In Gemfile:
globalize3 (>= 0) ruby depends on
railties (~> 3.0) ruby
coffee-rails (~> 4.0.0) ruby depends on
railties (4.0.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
globalize3 (>= 0) ruby depends on
rails (~> 3) ruby
rails (4.0.0)
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (= 4.0.0) ruby depends on
actionpack (= 4.0.0) ruby
simple_form (~> 3.0.0.rc) ruby depends on
actionpack (4.0.0.rc1)
The globalize3 gem has been renamed globalize and major version numbers now correspond to the corresponding version of ActiveRecord (3.x for AR3 and 4.x for AR4).
So all you need to do is put this in your Gemfile, and you should not get any conflict:
gem 'globalize', '~> 4.0.0.alpha.2'
See also the github repository for more details.
Try this use these 2 lines at your Gemfile:
gem 'paper_trail', github: 'airblade/paper_trail', branch: 'rails4'
gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4', ref: 'ffb5c771b9'
Use this. Paper_trail merged rails4 into master branch.
gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'
gem 'paper_trail', github: 'airblade/paper_trail', branch: 'master'
This worked for me:
gem 'globalize', '~> 4.0.2'
Please check on the latest instructions here:
https://github.com/globalize/globalize#installation