Gem is installed but it is not found by bundle show - ruby-on-rails

I'm having trouble getting the pg gem working with my rails app.
When I do a sudo bundle install I get:
Using rake (10.0.4)
Using i18n (0.6.4)
Using multi_json (1.7.2)
Using activesupport (3.2.8)
Using builder (3.0.4)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.6)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.22)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.8)
Using coffee-rails (3.2.2)
Using jquery-rails (2.2.1)
Using pg (0.15.0)
Using bundler (1.1.5)
Using rails (3.2.8)
Using sass (3.2.7)
Using sass-rails (3.2.6)
Using uglifier (1.3.0)
However, when I do a 'bundle show' for any gem, I get:
Could not find pg-0.15.0 in any of the sources
Additionally, when I do any rake command, I get:
/usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find pg-0.15.0 in any of the sources (Bundler::GemNotFound)
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `map!'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `materialize'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.5/lib/bundler/definition.rb:127:in `specs'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.5/lib/bundler/environment.rb:27:in `specs'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-1.0.6/lib/rubygems-bundler/noexec.rb:41:in `candidate?'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-1.0.6/lib/rubygems-bundler/noexec.rb:60:in `setup'
from /usr/local/rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-1.0.6/lib/rubygems-bundler/noexec.rb:75:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:9:in `<main>'
I suspect that it has something to do with RVM and what version of Ruby I'm using since I recently changed to 1.9.3. Any ideas?

Try bundle install without sudo.

Related

ruby on rails error while starting mongrel :: no such file to load -- svn/core (MissingSourceFile)

I am using rails 2.3.8 ...i have the following gems installed
abstract (1.0.0)
actionmailer (2.3.8)
actionpack (2.3.8)
activemodel (3.2.8)
activerecord (2.3.8)
activeresource (3.2.8, 2.3.8)
activesupport (2.3.18, 2.3.8)
ar-extensions (0.9.5)
arel (3.0.2)
athlite-actionwebservice (2.3.8)
aws-s3 (0.6.2)
aws-ses (0.4.4)
builder (3.0.0)
bundler (1.3.5)
cgi_multipart_eof_fix (2.5.0)
cmdparse (2.0.2)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
columnize (0.3.1)
daemons (1.1.0)
dbi (0.4.5)
deprecated (2.0.1)
erubis (2.7.0)
execjs (2.0.2, 1.4.0)
fastthread (1.0.7)
ffi (0.6.3)
gem_plugin (0.2.3)
gmail (0.4.0)
gmail_xoauth (0.4.1)
hike (1.2.1)
hpricot (0.8.6)
httparty (0.8.3)
httpclient (2.3.4.1)
i18n (0.6.0)
journey (1.0.4)
jquery-rails (2.1.3)
json (1.8.1, 1.7.3)
linecache (0.43)
mail (2.4.4)
memcached (1.7.0)
mime (0.1)
mime-types (1.19)
mongrel (1.1.5)
mongrel_cluster (1.0.5)
multi_json (1.3.6)
multi_xml (0.5.5)
nokogiri (1.5.5)
oauth (0.4.7)
open4 (1.3.0)
polyglot (0.3.3)
rack (1.4.1, 1.1.6)
rack-cache (1.2)
rack-mount (0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (2.3.8)
railties (3.2.8)
rake (10.1.0, 0.9.2.2)
rbx-require-relative (0.0.9)
rdoc (3.12)
ref (1.0.5)
rmagick (2.13.2)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubygems-update (1.3.7)
sass (3.1.20)
sass-rails (3.2.5)
soap4r (1.5.8)
sprockets (2.1.3)
svn_wc (0.0.6)
thor (0.15.4)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
uglifier (1.2.7)
will_paginate (2.3.14)
xml-simple (1.1.2, 1.1.1)
but while restarting the mongrel server i am getting the following error in logs
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- svn/core (MissingSourceFile)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
from /usr/lib/ruby/gems/1.8/gems/svn_wc-0.0.6/lib/svn_wc.rb:20
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
from /usr/local/sokrati/.deployments/tasteIt.11132013143834/tasteIt/app/models/chuknu/svnHandler.rb:3
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
from /usr/local/sokrati/.deployments/tasteIt.11132013143834/tasteIt/app/models/chuknu/generatorScript.rb:5
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:265:in `require_or_load'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:224:in `depend_on'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:136:in `require_dependency'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:414:in `load_application_classes'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:413:in `each'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:413:in `load_application_classes'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:411:in `each'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:411:in `load_application_classes'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:197:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
from /usr/local/sokrati/tasteIt/config/environment.rb:17
i have svn_wc installed
what is the exact cause of this?
I am new to RoR ..en elaborate answer would certainly help!
To cite from the Readme of the svn_wc gem:
Requires that the Subversion (SWIG) Ruby Bindings are installed.
(which could be as easy as)
Linux
Redhat and Fedora: yum install subversion-ruby
Ubuntu and Debian: apt-get install libsvn-ruby
OS X
sudo port install subversion-rubybindings
Windows
unknown,...
Thus, you need to install the ruby bindings for your subversion clients first. They are not part of the gem and are shipped with subversion. Depending on how you installed your Ruby, it might thus be very easy (see above) or rather difficult to obtain the correct bindings (when using rbenv or rvm).
I guess SVN library of ruby is not installed. Just try:
apt get install libsvn-ruby
it works most of the time.
if it doesnt work, I guess you have to follow what Holger just mentioned.
I fixed these problem with this:
sudo apt-get install libsvn-ruby

Version management of gems while working with ruby on rails

I have been coding in rails3 and have all the dependencies resolved. Now, I have moved back to rails 2 and there are lots of dependency issues. Is there any sane approach to make sure that all the gems and dependencies are resolved automatically based on the current rails version?
I keep getting this error
`default_options': undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError)
Error Log
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:90:in `<class:Base>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:85:in `<module:Generator>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:48:in `<module:Rails>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:6:in `<top (required)>'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator.rb:37:in `<top (required)>'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/bin/rails:15:in `<top (required)>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `load'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `<main>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in `eval'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in `<main>'
Gem List
*** LOCAL GEMS ***
actionmailer (3.2.13, 2.3.12, 2.3.8)
actionpack (3.2.13, 2.3.12, 2.3.8)
activemodel (3.2.13)
activerecord (3.2.13, 2.3.12, 2.3.8)
activeresource (3.2.13, 2.3.12, 2.3.8)
activesupport (3.2.13, 2.3.12, 2.3.8)
arel (3.0.2)
bourbon (3.0.1)
builder (3.0.4)
bundler (1.3.5)
bundler-unload (1.0.1)
cancan (1.6.10)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2)
commonjs (0.2.6)
daemons (1.1.9)
delayed_job (3.0.5)
delayed_job_active_record (0.4.4)
erubis (2.7.0)
execjs (1.4.0)
formtastic (2.2.1)
formtastic-bootstrap
(2.1.3)
haml (4.0.3)
hike (1.2.3)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (3.0.1, 2.3.0)
json (1.8.0)
kaminari (0.14.1)
less (2.3.2)
less-rails (2.3.3)
less-rails-fontawesome (0.5.0)
libv8 (3.11.8.17 x86-linux)
mail (2.5.4)
meta_search (1.1.3)
mime-types (1.23)
multi_json (1.7.7)
mysql (2.9.1)
mysql2 (0.3.11)
polyamorous (0.5.0)
polyglot (0.3.3)
rack (1.4.5, 1.1.6)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13, 2.3.8)
railties (3.2.13)
rake > (10.1.0, 10.0.4)
rdoc (4.0.1, 3.12.2)
ref (1.0.5)
rubygems-bundler (1.2.0)
rvm (1.11.3.8)
sass (3.2.9)
sass-rails (3.2.6)
sprockets (2.2.2)
therubyracer (0.11.4)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.14)
twitter-bootstrap-rails (2.2.7)
tzinfo (0.3.37)
uglifier (2.1.1)
why not make use of gemsets for each project?
create a file inside your app called .rvmrc
rvm use --create ruby-x.x.x-version#your_app_name
for exemple:
rvm use --create ruby-1.9.3-head#your_app_name
now when you'll run bundle it will gems to separate folder like in my case:
.rvm/gems/ruby-1.9.3-head#your_app_name
in this case switching from one app to another will load the needed gemset with gems for your app. It's like using RVM to switch between Ruby versions.

get error for activesupport 3.2.0 - cannot load such file -- spec_helper

/Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- spec_helper (LoadError)
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require'
from /Users/jeffreyerickatz/Desktop/sites/demo_app/spec/factories/user.rb:1:in `<top (required)>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions'
rom /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:19:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:15:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl_rails-4.1.0/lib/factory_girl_rails/railtie.rb:26:in `block in <class:Railtie>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application/finisher.rb:60:in `block in <module:Finisher>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `run'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:136:in `initialize!'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/jeffreyerickatz/Desktop/sites/demo_app/config/environment.rb:5:in `<top (required)>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:103:in `require'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:103:in `require_environment!'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I get that error (above) when I try to run my rails console, or really do anything. I am assuming some of my gems are not compatible with each other? I am updating from rails 3.1 to rails 3.2.
I recently did a bundle update. This what everything was updated to:
Jeffreys-MacBook-Pro:demo_app jeffreyerickatz$ bundle update
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.2)
Using i18n (0.6.1)
Using multi_json (1.3.7)
Installing activesupport (3.2.0)
Using builder (3.0.4)
Installing activemodel (3.2.0)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Installing actionpack (3.2.0)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Installing actionmailer (3.2.0)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Installing activerecord (3.2.0)
Installing activeresource (3.2.0)
Using annotate (2.5.0)
Using ansi (1.4.3)
Using xml-simple (1.1.2)
Using aws-s3 (0.6.3)
Using multi_xml (0.5.1)
Using httparty (0.9.0)
Using json (1.7.5)
Using nokogiri (1.5.5)
Using uuidtools (2.1.3)
Using aws-sdk (1.3.9)
Using bootstrap-sass (2.0.0)
Using will_paginate (3.0.3)
Using bootstrap-will_paginate (0.0.5)
Using bundler (1.1.5)
Using hsume2-state_machine (1.0.5)
Using call_center (0.1.7)
Using carmen (0.2.13)
Using clockwork (0.4.1)
Using cocaine (0.4.2)
Using coderay (1.0.8)
Using coffee-script-source (1.4.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.14.6)
Installing railties (3.2.0)
Using coffee-rails (3.2.2)
Using diff-lcs (1.1.3)
Using factory_girl (4.1.0)
Using factory_girl_rails (4.1.0)
Using faker (1.1.2)
Using fakeweb (1.3.0)
Using foreman (0.60.2)
Using googlecharts (1.6.8)
Using listen (0.6.0)
Using lumberjack (1.0.2)
Using method_source (0.8.1)
Using slop (3.3.3)
Using pry (0.9.10)
Using guard (1.5.4)
Using guard-rspec (1.2.1)
Installing jquery-rails (2.1.4)
Using jwt (0.1.5)
Installing nested_form (0.3.1)
Using paperclip (3.3.1)
Using pg (0.14.1)
Using pry-nav (0.2.2)
Using pry-rails (0.2.2)
Installing rails (3.2.0)
Using rest-client (1.6.7)
Using rspec-core (2.7.1)
Using rspec-expectations (2.7.0)
Using rspec-mocks (2.7.0)
Using rspec (2.7.0)
Using rspec-rails (2.7.0)
Using ruby-graphviz (1.0.8)
Installing sass (3.2.3)
Using sass-rails (3.2.5)
Using simple_form (2.0.4)
Using spork (0.9.2)
Using sqlite3 (1.3.6)
Installing timecop (0.5.4)
Using turn (0.9.6)
Using twilio-ruby (3.9.0)
Using uglifier (1.3.0)
By the backtrace, it looks like line 1 of /Users/jeffreyerickatz/Desktop/sites/demo_app/spec/factories/user.rb is trying to load spec_helper.rb - you can safely remove this line, only specs should be requiring spec_helper.

rails server can't be up, did bundle install but failed

how do you solve this? i did bundle install yet i still get errors from below.
unable to run rails server when it shows all bundles are installed. please help me out.
Master:disrupreneurs shaunstanislaus$ bundle install
Using rake (10.0.2)
Using i18n (0.6.1)
Using multi_json (1.3.7)
Using activesupport (3.2.8)
Using builder (3.0.4)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using coffee-script-source (1.4.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.5)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using coffee-rails (3.2.2)
Using diff-lcs (1.1.3)
Using multipart-post (1.1.5)
Using faraday (0.8.4)
Using hashie (1.2.0)
Using httpauth (0.2.0)
Using jquery-rails (2.1.4)
Using jwt (0.1.5)
Using oauth (0.4.7)
Using oauth2 (0.8.0)
Using omniauth (1.1.1)
Using omniauth-oauth2 (1.1.1)
Using omniauth-facebook (1.4.1) from git://github.com/mkdynamic/omniauth-facebook.git (at master)
Using omniauth-google-oauth2 (0.1.13)
Using omniauth-google-plus-oauth2 (0.0.1) from https://github.com/luke-gru/omniauth- google-plus-oauth2.git (at master)
Using omniauth-oauth (1.0.1)
Using omniauth-twitter (0.0.14) from https://github.com/arunagw/omniauth-twitter.git (at master)
Using bundler (1.2.2)
Using rails (3.2.8)
Using rb-readline (0.4.2)
Using rspec-core (2.12.0)
Using rspec-expectations (2.12.0)
Using rspec-mocks (2.12.0)
Using rspec (2.12.0)
Using sass (3.2.3)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Using twitter-bootstrap-rails (2.1.6) from git://github.com/seyhunak/twitter-bootstrap- rails.git (at master)
Using uglifier (1.3.0)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
from this part it keeps failing to run rails s
how do i solve this'?
Master:disrupreneurs shaunstanislaus$ rails s
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties- 3.2.8/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `less' for # <Rails::Application::Configuration:0x007fe5032ffa18> (NoMethodError)
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/bundler/gems/twitter-bootstrap- rails-4ac83ab51931/lib/twitter/bootstrap/rails/engine.rb:15:in `block in <class:Engine>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config/environment.rb:5:in `<top (required)>'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:4:in `require'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:4:in `block in <main>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:1:in `new'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:1:in `<main>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Also add gem 'less-rails'
Check out this post too:
Rails railties gem error "undefined method: 'less'"
Add in gemfile:
gem "therubyracer"
and run bundle install again

Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)

While trying to update a rails app, where it required a new gem installed I got the following error when running my rails on the server (Apache2)
Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)
/home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/spec_set.rb 90 in `block in materialize'
1 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/spec_set.rb 83 in `map!'
2 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/spec_set.rb 83 in `materialize'
3 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/definition.rb 127 in `specs'
4 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/definition.rb 172 in `specs_for'
5 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/definition.rb 161 in `requested_specs'
6 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/environment.rb 23 in `requested_specs'
7 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler/runtime.rb 11 in `setup'
8 /home/server/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.4/lib/bundler.rb 107 in `setup'
And when I do bundle install, or gem list --local it list the gems fine:
actionmailer (3.2.3)
actionpack (3.2.3)
activemodel (3.2.3)
activerecord (3.2.3)
activeresource (3.2.3)
activesupport (3.2.3)
arel (3.0.2)
bcrypt-ruby (3.0.1)
builder (3.0.0)
bundler (1.1.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
devise (2.1.2)
dynamic_form (1.1.4)
erubis (2.7.0)
execjs (1.4.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
jquery-rails (2.0.2)
json (1.7.3)
mail (2.4.4)
mime-types (1.18)
multi_json (1.3.6)
orm_adapter (0.3.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.3)
railties (3.2.3)
rake (0.9.2.2)
rdoc (3.12)
sass (3.1.19)
sass-rails (3.2.5)
sprockets (2.1.3)
sqlite3 (1.3.6)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
uglifier (1.2.4)
warden (1.2.1)
But when I do ruby -v it says ruby 1.8.7, and error log says .rvm/gems/ruby-1.9.2-p320...
How do I tell it to use the installed 1.8.7, as this has always worked (am not interested in upgrading)
I found this post -[Why am I getting this Passenger error Could not find rake-0.9.2.2 in any of the sources?
[1]: Why am I getting this Passenger error Could not find rake-0.9.2.2 in any of the sources? - Tried it with no success!
To make things simple, create a gemset
rvm gemset first_app
create a .rvmrc file in the project folder and enter rvm use 1.8.7#first_app
when you enter the project, check by entering,
ruby -v
rails -v
rvm use first_app
Now do bundle install and then rails server, you should not get issues after this, reply back if any issues

Resources