I am new to ruby on rails. I installed ruby and gems both on my ubuntu 10.10 system. My rails -v is 3.0.5 and gem -v is 1.3.7. As my requirement I installed bundler and after that when I installed spree by the command gem install spree I got the following error message:
ERROR: Error installing spree:
spree_core requires will_paginate (= 3.0.pre2, runtime)
I googled many hours but didn't find any good result. So please help me.I am really a newbie in Rails.
Have you tried the following?
gem update --system
gem install will_paginate -v=3.0.pre2 --pre
gem install spree
You tell it manually to install the correct required version of will_paginate. Maybe that helps. Good luck.
This should all work through bundler. Have you added the spree gem to your Gemfile and run bundle install? Are you using RVM? Post the results of bundle list and rvm info(if applicable) if you're still having problems
Related
I am trying to install ruby version 2.1.2 using rvm.
Below is the details of the same. Installation of ruby 2.1.2 through rvm is completed with following warnings.
After installation, when doing gem list getting below error.
I am pretty new to ruby on rails. Any leads on how to solve this please?
OS: Mac OS X El-Captain
current rails version: 5.0.0.rc1
ruby version: 2.3.1p112
I'm having following error. Googling and searching on Stack Overflow didn't give any results.
gem install rails -v 5.0.0.rc2
ERROR: While executing gem ... (Gem::Resolver::Molinillo::CircularDependencyError)
There is a circular dependency between camping and rack
I had to uninstall my version of Ruby (2.3.1) and re-install. Then running gem install rails --pre worked.
I use rbenv and ruby-build. The instructions for removing Ruby are found here, https://github.com/rbenv/rbenv#uninstalling-ruby-versions.
This appears to be related to out of date system gems. I encountered it installing bundler. I cleared it by entering :
gem update --system
I can install latest ruby, bundler, rails, and all works fine.
I'm running OS X 10.11.6.
Best,
John
I have worked with rails before and i thought that i would try out spree to learn more about engines. Following the getting started tutorial on sprees documentation it seemed very strait forward. I installed the gem gem install spree_cmd and then added gem 'spree' to the gemfile and ran bundler which ran fine. It installed several spree gems. But on the instruction to run spree install --auto-accept it returns
$ spree install --auto-accept
-bash: spree: command not found
I am running on mac OS X 10.8.4. ruby 1.9.3p327 rails 2.3.13 and rbenv and my ruby manager
any thing i am missing?
You should try to Add gem 'spree' to the Gemfile and after that
$ bundle install
and then $ spree install --auto-accept
I got this problem too! And I tried to search for a solution. Well, spree require an exact version of ruby and rails. So I think you need to install a correct ruby version. Try run :
$rbenv install 2.0.0-p247
This makes the spree command works for me
Ruby on Rails newbie configuration issue:
I screwed up my rails configuration by running "gem install pg". Now when I try to do a bundle install I get this error:
/usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.5/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'pg (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound)
And if I try to reinstall pg gem, I get this:
Any help is appreciated. Thanks!
Do you have Postgres installed and working correctly? The heroku supplied app is the most painless way to it if you havent.
While trying to install Rails 3, I get the following error:
command run: sudo gem install rails --pre
error'd now with:
Successfully installed rails-3.0.0.rc2
1 gem installed
Installing ri documentation for rails-3.0.0.rc2...
File not found: lib
Or if you don't want to worry about running versions side by side you can do
gem update rails
At least it worked for me.
Rails 3 is out of beta/rc now, so try:
gem install rails --version 3.0.0
It should work on Ruby 1.8.7 and 1.9.2-p0.
I haven't personally seen that issue, but you could try and get around it by using the --no-ri option.
sudo gem install rails --pre --no-ri
There's also a --no-rdoc option if you have trouble with that too.