`add_frozen_gem_path': undefined method `source_index' for Gem:Module - ruby-on-rails

i got this error & gem update --system 1.8.25 is not working for me so please help me to resolve this issue
/home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/initializer.rb:298:in `add_gem_load_paths'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/initializer.rb:132:in `process'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/initializer.rb:113:in `run'
from /home/rakshit/new/one_story/config/environment.rb:16:in `<top (required)>'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `block in require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/commands/server.rb:84:in `<top (required)>'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `block in require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from script/server:3:in `<main>'
my gem list is
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
acts_as_geocodable (2.0.3)
addressable (2.2.6)
aws-s3 (0.6.2)
bigdecimal (1.1.0)
builder (3.0.0)
bundler (1.3.5, 1.3.4)
closure-compiler (1.1.1)
cocaine (0.2.0)
daemons (1.1.4)
erubis (2.7.0)
eventmachine (0.12.10)
gem-wrappers (1.2.4)
graticule (2.4.0)
happymapper (0.4.1)
heroku (2.17.0)
hike (1.2.3)
i18n (0.3.7)
jammit (0.6.0)
journey (1.0.4)
json (1.8.1, 1.5.4)
launchy (2.0.5)
libxml-ruby (2.7.0)
mail (2.4.4)
mime-types (1.16)
minitest (2.5.1)
mysql (2.8.1)
open4 (1.1.0)
paperclip (2.4.5)
Platform (0.4.0)
polyglot (0.3.4, 0.3.3)
POpen4 (0.1.4)
rack (1.1.2)
rack-cache (1.2)
rack-test (0.6.2)
rails (2.3.11)
rake (0.9.2.2)
rdoc (3.9.4)
rest-client (1.6.7)
rmagick (2.13.2)
rubygems-bundler (1.4.2, 1.1.1)
rubyzip (0.9.5)
rvm (1.11.3.9, 1.11.3.7, 1.11.3.6)
sprockets (2.1.3)
term-ansicolor (1.0.7)
thin (1.2.11)
tilt (1.4.1, 1.3.6)
tins (1.0.1)
treetop (1.4.15)
which_browser (0.1.2)
will_paginate (2.3.14)
xml-simple (1.1.0)
yui-compressor (0.9.6)

Related

Unable to identify the object from ruby library

I recently updated the OS to ELcaptain and ever since my feature files are failing and not identifying object.
This is the error I get in terminal when I run a file:
cannot load such file -- rspec (LoadError)
/Users/xyz/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `require'
/Users/xyz/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
/Users/xyz/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:39:in `require'
/Users/xyz/ttv-cucumber/helper/auto_loader.rb:14:in `<top (required)>'
/Users/xyz/ttv-cucumber/flow-combo-selection/features/support/common.rb:1:in `require_relative'
/Users/xyzr/ttv-cucumber/flow-combo-selection/features/support/common.rb:1:in `<top (required)>'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/rb_support/rb_language.rb:99:in `load'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/rb_support/rb_language.rb:99:in `load_code_file'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/runtime/support_code.rb:232:in `load_file'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/runtime/support_code.rb:99:in `block in load_files!'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/runtime/support_code.rb:98:in `each'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/runtime/support_code.rb:98:in `load_files!'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:262:in `load_step_definitions'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:65:in `run!'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/lib/cucumber/cli/main.rb:32:in `execute!'
/Users/xyz/.rvm/gems/ruby-2.1.6/gems/cucumber-2.1.0/bin/cucumber:8:in `<top (required)>'
/Users/xyz/.rvm/gems/ruby-2.1.6/bin/cucumber:23:in `load'
/Users/xyz/.rvm/gems/ruby-2.1.6/bin/cucumber:23:in `<main>'
/Users/xyz/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `eval'
/Users/xyz/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `<main>'
And on the step definitions I get this error:
undefined method `expect' for #<Object:0x007fb6b1d1ac80> (NoMethodError)
This is my gem list:
appium_lib (8.0.0, 4.1.0)
awesome_print (1.6.1)
bigdecimal (1.2.7, 1.2.4)
blankslate (3.1.3, 2.1.2.4)
builder (3.2.2)
bundler-unload (1.0.2)
childprocess (0.5.8, 0.5.6)
chunky_png (1.3.5, 1.3.4)
coderay (1.1.0)
cucumber (2.0.0)
cucumber-core (1.3.0, 1.1.3)
diff-lcs (1.2.5)
executable-hooks (1.3.2)
ffi (1.9.10, 1.9.8)
gem-wrappers (1.2.7)
gherkin (2.12.2)
gherkin3 (3.1.2)
io-console (0.4.3)
jar_wrapper (0.1.8)
json (1.8.3, 1.8.1)
method_source (0.8.2)
mini_portile (0.6.2)
minitest (5.8.2, 4.7.5)
multi_json (1.11.1)
multi_test (0.1.2)
nokogiri (1.6.6.2)
parslet (1.5.0)
power_assert (0.2.6)
pry (0.10.1)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
rmagick (2.15.2)
rspec (3.3.0)
rspec-core (3.3.0)
rspec-expectations (3.3.0)
rspec-mocks (3.3.0)
rspec-support (3.3.0)
rubygems-bundler (1.4.4)
rubytest (0.8.1)
rubyzip (1.1.7)
rvm (1.11.3.9)
selenium (0.2.11)
selenium-cucumber (2.1.3)
selenium-webdriver (2.45.0)
slop (3.6.0)
test (1.0.0)
test-unit (2.1.6.0)
toml (0.1.2)
websocket (1.2.2)
zip (2.0.2)
Please try this if you haven't already:
run bundle install
If you do not have a spec helper or rails helper in the spec directory, run this: rails generate rspec:install

Bundler::GemNotFound: Could not find i18n-0.7.0 in any of the sources

As title, I couldn't open my rails app.
Need help as I couldn't solve this through google.
I'm using rails 4.2.1 and ruby 2.2.1
Below are the error messages.
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/spec_set.rb:92:in `block in materialize'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/spec_set.rb:85:in `map!'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/spec_set.rb:85:in `materialize'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/definition.rb:132:in `specs'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/definition.rb:177:in `specs_for'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/definition.rb:166:in `requested_specs'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/environment.rb:18:in `requested_specs'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/runtime.rb:13:in `setup'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler.rb:122:in `setup'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/setup.rb:18:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
~/projects/linktest/config/boot.rb:3:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/projects/linktest/config/application.rb:1:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/projects/linktest/config/environment.rb:2:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/projects/linktest/config.ru:3:in `block in <main>'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `initialize'
~/projects/linktest/config.ru:1:in `new'
~/projects/linktest/config.ru:1:in `<main>'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `eval'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `load_config'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:42:in `initialize'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `new'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `run'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/bin/nack_worker:4:in `<main>'
Here are my gem list.
actionmailer (4.2.1, 4.0.0)
actionpack (4.2.1, 4.0.0)
actionview (4.2.1)
activejob (4.2.1)
activemodel (4.2.1, 4.0.0)
activerecord (4.2.1, 4.0.0)
activerecord-deprecated_finders (1.0.4, 1.0.3)
activesupport (4.2.1, 4.0.0)
airbrake (4.1.0)
anjlab-bootstrap-rails (2.3.1.2)
annotate (2.6.8)
arel (6.0.0, 4.0.2)
auto-facebook (0.4)
bcrypt (3.1.10)
bcrypt-ruby (3.1.5)
better_errors (0.9.0)
bigdecimal (1.2.0)
binding_of_caller (0.7.2)
bootstrap_helper (4.2.3)
bootstrappers (4.2.1)
builder (3.2.2, 3.1.4)
bundler (1.9.1)
bundler-unload (1.0.2)
byebug (4.0.4)
cape (1.8.0)
capistrano (3.4.0, 2.15.5)
capistrano-ext (1.2.1)
carrierwave (0.10.0)
carrierwave-meta (0.0.5)
chronic (0.10.2)
chunky_png (1.3.4)
coderay (1.1.0)
coffee-rails (4.1.0, 4.0.1)
coffee-script (2.3.0)
coffee-script-source (1.9.1)
colorize (0.7.5)
columnize (0.9.0)
compass (0.12.7)
compass-rails (1.1.7)
dalli (2.7.4)
debug_inspector (0.0.2)
devise (3.0.2)
erubis (2.7.0)
execjs (2.4.0)
executable-hooks (1.3.2)
faraday (0.9.1)
font-awesome-rails (3.2.1.3)
fssm (0.2.10)
gem-wrappers (1.2.7)
globalid (0.3.3)
hashie (3.4.0)
high_voltage (2.2.1)
highline (1.7.1)
hike (1.2.3)
hipchat (1.4.0)
httparty (0.13.3)
i18n (0.7.0)
io-console (0.4.2)
jbuilder (2.2.12, 1.5.3)
jquery-rails (4.0.3, 3.1.2)
json (1.8.2, 1.7.7)
jwt (1.4.1)
loofah (2.0.1)
magic_encoding (0.0.2)
mail (2.6.3, 2.5.4)
method_source (0.8.2)
mime-types (2.4.3, 1.25.1)
mini_portile (0.6.2)
minitest (5.5.1, 5.4.3, 4.7.5, 4.3.2)
multi_json (1.11.0)
multi_xml (0.5.5)
multipart-post (2.0.0)
mysql2 (0.3.18)
net-scp (1.2.1)
net-sftp (2.1.2)
net-ssh (2.9.2)
net-ssh-gateway (1.2.0)
nokogiri (1.6.6.2)
oauth2 (1.0.0)
omniauth (1.2.2)
omniauth-facebook (2.0.1)
omniauth-oauth2 (1.2.0)
open_graph_helper (0.2.0)
orm_adapter (0.5.0)
polyglot (0.3.5)
powder (0.3.0)
power_assert (0.2.2)
pry (0.10.1)
pry-nav (0.2.4)
pry-remote (0.1.8)
psych (2.0.0)
rack (1.6.0, 1.5.2)
rack-test (0.6.3)
rails (4.2.1, 4.0.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.1, 4.0.0)
rake (10.4.2, 0.9.6)
rdoc (4.2.0, 4.0.0)
rmagick (2.13.4)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
rvm-capistrano (1.5.6)
sass (3.4.13, 3.2.19)
sass-rails (5.0.3, 4.0.5, 4.0.4)
sdoc (0.4.1)
seo_helper (1.0.2)
settingslogic (2.0.9)
simple_form (3.0.3)
slop (3.6.0)
spring (1.3.3)
sprockets (2.12.3, 2.11.0)
sprockets-rails (2.2.4, 2.0.1)
sqlite3 (1.3.10)
sshkit (1.7.1)
test-unit (3.0.8, 2.0.0.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
treetop (1.4.15)
turbolinks (2.5.3)
tzinfo (1.2.2, 0.3.43)
uglifier (2.7.1)
warden (1.2.3)
web-console (2.1.2)
whenever (0.9.4)
will_paginate (3.0.3)
Thank you all for helping.
Based on the additional information in your comments I think this is probably a spring caching issue, try stopping spring with: spring stop and then retry running your app.

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

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.

undefined method `mount_uploader' for Category:Class Mongoid Nginx Passenger

I'm using carrierwave in my application. The problem is it works well in development mode. But when deploying to nginx with passenger it throws the following error:
/home/webserver/raw/releases/20110919033346/app/models/category.rb:11: undefined method `mount_uploader' for Category:Class (NoMethodError)
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:454:in `load'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:454:in `load_file'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:453:in `load_file'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:340:in `require_or_load'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:300:in `depend_on'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:216:in `require_dependency'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:55:in `load_model'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:18:in `load_models'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:17:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:17:in `load_models'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/paths.rb:102:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/paths.rb:102:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:16:in `load_models'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/mongoid/railtie.rb:88:in `_callback_before_5'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:420:in `_run_prepare_callbacks'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:33:in `new'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:33:in `build'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `build'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:209:in `inject'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `inject'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `build'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:162:in `build_middleware_stack'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application/finisher.rb:35
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `instance_exec'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `run'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:50:in `run_initializers'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `run_initializers'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:134:in `initialize!'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `send'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
from /home/webserver/raw/releases/20110919033346/config/environment.rb:5
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:103:in `require_environment!'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:22
from script/rails:6:in `require'
from script/rails:6
Here is my gem list
abstract (1.0.0)
actionmailer (3.0.9, 3.0.7)
actionpack (3.0.9, 3.0.7)
activemodel (3.0.9, 3.0.7)
activerecord (3.0.9, 3.0.7)
activeresource (3.0.9, 3.0.7)
activesupport (3.1.0, 3.0.9, 3.0.7)
akami (1.0.0)
arel (2.0.10)
bcrypt-ruby (3.0.0)
bson (1.3.1)
bson_ext (1.3.1)
builder (3.0.0, 2.1.2)
bundle (0.0.1)
bundler (1.0.13)
carrierwave (0.5.7, 0.5.6, 0.5.4)
daemon_controller (0.2.6)
erubis (2.6.6)
escape (0.0.4)
exception_notification_rails3 (1.2.0)
fastthread (1.0.7)
gyoku (0.4.4)
httpi (0.9.5, 0.9.4)
i18n (0.6.0, 0.5.0)
mail (2.2.19)
mime-types (1.16)
mini_magick (3.3, 3.2.1)
mongo (1.3.1)
mongoid (2.0.1)
multi_json (1.0.3)
nokogiri (1.5.0, 1.4.4)
nori (1.0.2, 0.2.2)
passenger (3.0.7)
polyglot (0.3.2, 0.3.1)
pr_geohash (1.0.0)
pyu-ntlm-http (0.1.3.1)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9, 3.0.7)
railties (3.0.9, 3.0.7)
rake (0.9.2, 0.9.0)
rdoc (3.9.4, 3.8)
rmagick (2.13.1)
rsolr (0.12.1)
rubyzip (0.9.4)
savon (0.9.7, 0.9.6, 0.9.2)
subexec (0.1.0, 0.0.4)
sunspot (1.2.1)
sunspot_rails_mongoid (1.2.1)
SystemTimer (1.2.3)
thor (0.14.6)
treetop (1.4.10, 1.4.9)
tzinfo (0.3.29, 0.3.27)
wasabi (2.0.0)
will_paginate (3.0.0, 3.0.pre4, 3.0.pre2)
The ruby version is ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02
Please, could give any idea about this.
Thank you in advance!
I had the the same / a similar problem. In my case, it was something silly. In my Gemfile, I just referenced the gem, but you need to require the mongoid extension. So your line in the Gemfile should look like this:
gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'

Resources