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.
Related
When I try deploy using capistrano gem I get:
rake stderr: rake aborted!
LoadError: cannot load such file -- nokogiri/nokogiri
In my Gemfile.lock I can see that nokogiri is installed nokogiri (1.11.2-x86_64-darwin) which is for mac since I'm using mac for development, and when I do gem list in my production which is ubuntu I see nokogiri (1.11.2 x86_64-linux).
Based on one of the answers on SO, I removed -x86_64-darwin from nokogiri (1.11.2-x86_64-darwin) but this gave me:
Downloading nokogiri-1.11.2 revealed dependencies not in the API or the lockfile (mini_portile2 (~> 2.5.0)).
Either installing with `--full-index` or running `bundle update nokogiri` should fix the problem.
I ran bundle update nokogiri with no luck and it only said: Bundler attempted to update nokogiri but its version stayed the same.
I know this issue might happen since the nokogiri in my local is for mac and for development is for Linux.
I'm not sure what I can do to resolve this issue. Any feedback is appreciated.
Rails: 6.1.3
Ruby: 2.5.8
I've faced a similar problem and this helped me.
Hi new to stackoverflow and Ruby on Rails in general. I'm following the Kevin Skoglund Ruby on Rails 3 Essential Training online tutorial and I'm having trouble starting out. I'm trying to boot WEBrick but each time I try I get this error:
C:\Users\Matt\Documents\Sites\simple_cms>rails server
Could not find gem 'sass-rails (~> 5.0) x86-mingw32' in any of the gem sources l
isted in your Gemfile or installed on this machine.
Run bundle install to install missing gems.
What do I do to install this missing sass-rails gem, so I can boot WEBrick?
You can certainly run bundle install in your terminal, or command line, as the output suggests.
$ bundle install
If that fails, run:
$ gem install bundler
$ bundle install
I always get an error when trying to install all gems of a given app.
$ bundle install --verbose --retry 4
Fetching from: https://bundler.rubygems.org/api/v1/dependencies
Fetching source index from https://rubygems.org/
Resolving dependencies...Fetching from: https://rubygems.org/quick/Marshal.4.8/sass-rails-4.0.3.gemspec.rz
Network error while fetching https://rubygems.org/quick/Marshal.4.8/sass-rails-4.0.3.gemspec.rz
I can fetch the file manually via wget or a web browser, so the network is not an issue !
Installing via the gem command works too but that's a pain.
Can someone help me on this one ? I'm clueless to what could be happening here
I am newbie, learning RoR, Running Mavericks, Trying it using RVM, Ruby version 2.1.2, Rails 4.1.4
When I tried running $ rails server, I was getting the below errors
and I have tried this being in my rails app folder
Network error while fetching
https://rubygems.org/quick/Marshal.4.8/sass-rails-4.0.3.gemspec.rz
$ gem install spring
Could not find gem 'jquery-rails (>= 0) ruby' in the gems available on this machine.
$ gem install jquery-rails
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
$ gem install sqlite3
Could not find gem 'sass-rails (~> 4.0.3) ruby' in the gems available on this machine.
$ gem install sass-rails
And for other errors like above I did install them one by one
I couldn't find any solution over the internet, even my system gems are updated. Then as a last resort I did this, installing them one by one.
And it started working
I am having trouble installing Ruby on Rails on OSX. I have gotten as far as too install the Rails, and have it create the application skeleton but when I go to run the server to test it's all working I get this:
Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile.
sqlite is in the gem folder/list:
* LOCAL GEMS *
sqlite3-ruby (1.2.4)
Any idea?
Found out solution was here:
http://www.ruby-forum.com/topic/1074909
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