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
Related
I can't get to install rails correctly, after doing "sudo gem install rails", all goes well, but if I try doing "rails -v", I get "Rails is not currently installed on this system...", I'm not using RVM, I installied Ruby through Homebrew.
The rails executable is in "/usr/local/Cellar/ruby/1.9.3-p286/bin/rails", but even if I add that path to my $PATH it won't find it, or something else in RubyGems is going wrong...
With homebrew, just use gem install rails or any gem name. Dont use sudo. That works for me.
$ which rails
/usr/local/Cellar/ruby/1.9.3-p194/bin/rails
After doing a bundle install, I run 'rails s' it runs into this error.
$ rails s
/Users/XXXX/.rvm/gems/ruby-1.8.7-p352#r3/gems/json-1.5.3/ext/json/ext/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin10.8.0]
Abort trap
Any help would be greatly appreciated
rvm gemset empty
rvm use ree#my-gemset
gem install bundler
bundle install
This solved the issue for me. Must be some extension got compiled against the wrong version of Ruby (in my case). Hope it works for you!
If you are not using RVM, I found this command to uninstall all gems:
'gem list | cut -d" " -f1 | xargs gem uninstall -aIx'
gem install bundler
bundle install
Also you might want to try using bundle exec rails s
Your gemset is not compiled for the version of ruby you are using. I found this worked for me:
rvm gemset empty
rvm gemset create your_gem_set_name
rvm use 1.8.7#your_gem_set_name --default
bundle install
The new version of Ruby 1.8.7 caused this issue. Had to downgrade back to one from the past.
Pull out the json gem and see if things work. If they don't then I'm lost. If they do work then you have to figure out why that gem won't work with your version of rails and your version of ruby.
If you look in Gemfile.lock you will see a "treeview" of gems, and the nested ones are ones that were pulled in by a dependency from the one they're nested under. See if you are using this json gem for something important or if it can go.
I had a very similar issue when I took my rails 3.0.9 and tried to deploy it on a host that only had 3.0.3 on it. It turned out that the json gem was for some 3.0.9 version of a rails gem...maybe ActiveSupport? I can't remember that part.
Can you tell us what version of rails you're using?
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
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.
I'm using Ubuntu 8.10 and I installed Ruby and Ruby on Rails following the directions on this site. The exact directions I followed are no longer there as it appears the rubyonrails.org wiki has changed recently. But I installed it the long way. Installed Ruby, then Gems, then installed Rails using "gem install rails".
I haven't really messed with Rails for a while, and I tried to use the Gem command today and...
The program 'gem' can be found in the following packages:
* rubygems1.8
* rubygems1.9
Try: sudo apt-get install <selected package>
bash: gem: command not found
That's just weird to me because I installed rails using the gem command. I have been seaching my computer for the gems binary so I could create a link to it in the bin directory but I can't find it. I know it's installed becaues when I run 'script/server' and go to localhost:3000 in a browser I get the following version information:
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.1
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Anyone know how I can get my gem command working again? Thanks for any help.
Note: I am new to Rails and fairly new to Ubuntu and Linux in general.
Did you install rubygems from apt-get? If yes, maybe you should try to remove it and install it from source.
Here is another article on installing Rails on Ubuntu:
http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html
Essentially, you can install Ruby from apt-get or source, but it's recommended to install rubygems from source.
You could look to see if it's in:
/usr/bin/gem1.8
if it is, then symlink /usr/bin/gem to it:
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
BTW, here's another tutorial on how to install rails on Ubuntu 8.10:
http://articles.slicehost.com/2009/1/6/ubuntu-intrepid-ruby-on-rails