Unable to run rails s on osx - ruby-on-rails

When I run my code on osx, I get following error. Same code works fine on Linux. What could be wrong?
Exiting
/Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require': no such file to load -- psych (LoadError)
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `require'
from /Users/jagratishringi/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/yaml.rb:16:in `yamler='
from /Users/jagratishringi/work/voylla_website/config/environment.rb:12:in `<top (required)>'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/jagratishringi/.rvm/gems/ruby-1.9.2-p320#voylla/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:640:i

In Gemfile
Please add
gem "psych", "~> 2.0.0"
bundle install
rails s
Thanks

Related

`require': cannot load such file -- ffi (LoadError) `require': cannot load such file -- ffi (LoadError) when trying to start rails console

Full stack trace:
/Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- ffi (LoadError)
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/sys-proctable-1.1.1-universal-darwin/lib/darwin/sys/proctable.rb:2:in `<top (required)>'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/sys-proctable-1.1.1-universal-darwin/lib/sys-proctable.rb:1:in `<top (required)>'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
from /Users/galharth/Documents/productbattle/config/application.rb:7:in `<top (required)>'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:141:in `require'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:141:in `require_application_and_environment!'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:67:in `console'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Rails version: 4.2.5
Ruby version: 2.3.0
Bundler version: 1.10.6
OSX: El Capitan (Co-worker using windows)
Try running gem install ffi --platform=ruby.
See this issue for more insight and resolution options.
I was able to successfully install the ffi gem by running gem install ffi --platform=ruby, adding the line gem 'ffi' to my Gemfile, and then running bundle install`.

Active_support/dependencies.rb:247 `require': cannot load such file -- 2.1/pg_ext (LoadError)

I'm using Ruby 2.1.5, Rails 4.1.6 and PostgreSQL 9.3.5 on a Windows machine.
When I try to bundle exec rails server, I end up with the following error:
DL is deprecated, please use Fiddle
c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require': cannot load such file -- 2.1/pg_ext (LoadError)
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in re...re'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependancy'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/pg-0.17.1-x86-mingw32/lib/pg.rb:10:in `rescue in <top (required)>'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/pg-0.17.1-x86-mingw32/lib/pg.rb:3:in `<top (required)>'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:76:in `require'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:72:in `each'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:72:in `block in require'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:61:in `each'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:61:in `require'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler.rb:133:in `require'
from C:/....../config/application.rb:5:in `<top (required)>'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:79:in `require'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:79:in `block in server
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `tap'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `server'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>'
I needed to use a newer version of pg gem:
gem 'pg', '~> 0.18.0.pre20141117110243'
After updating, sometimes happens.
Try remove all gems and install all again. like
rm -rf ./vendor/bundle
bundle install

rails console (`require': cannot load such file)

i am having problems with rails console, that send's me this error's
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require': cannot load such file -- readline (LoadError)
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
from /usr/local/lib/ruby/2.1.0/irb/completion.rb:9:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/console.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:128:in `require_command!'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:59:in `console'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
from /home/xploshioon/rails/mini_twitter/bin/rails:8:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:241:in `load'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:241:in `block in load'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:241:in `load'
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
and i haved problems like that with other aplication but solved creating the app again. but now i have some code so i don't want to create this again.
anyone know what is the problem here?
i have linux mint 17
ruby
2.1.4p265 (2014-10-27 revision 48166) [i686-linux]
Rails
4.1.8
Start with adding this to your Gemfile:
gem 'rb-readline'
Followed by:
bundle install
If this does not solve the issue, follow this:
Install readline:
sudo apt-get install libreadline-dev
remove and re-install ruby
rvm remove 2.1.4
rvm install 2.1.4
finally
bundle install

libffi.so.5: cannot open shared object file

I upgraded from Rails 3.0.11 to 3.1.3. When I start the server, it's giving the error:
>> Using rack adapter
rake aborted!
libffi.so.5: cannot open shared object file: No such file or directory - /home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/ffi-1.0.11/lib/ffi_c.so
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `block in require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/ffi-1.0.11/lib/ffi.rb:11:in `rescue in <top (required)>'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/ffi-1.0.11/lib/ffi.rb:2:in `<top (required)>'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `block in require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/ethon-0.5.3/lib/ethon.rb:2:in `<top (required)>'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `block in require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/typhoeus-0.5.3/lib/typhoeus.rb:2:in `<top (required)>'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `each'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `block in require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require'
/home/srikanth/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.1/lib/bundler.rb:128:in `require'
/home/srikanth/projects/tango/config/application.rb:19:in `<top (required)>'
/home/srikanth/projects/tango/Rakefile:8:in `require'
/home/srikanth/projects/tango/Rakefile:8:in `<top (required)>'
(See full trace by running task with --trace)
Any idea how to fix this?
Maybe the ffi gem was not installed properly?
gem uninstall ffi
Assuming you are using Ubuntu:
sudo apt-get install libffi libffi-dev
gem install ffi -v 1.0.11
As I already have 'ffi' installed. I have to find another solution, try below(Which helped me):
Locate the file "libffi.so.5", if it is not present check for "libffi.so." (in my case it was 6, that is libffi.so.6).
Now unlink the file associated with the "/usr/lib64/libffi.so.6". (In my case it was pointed to "libffi.so.6.0.1")
Now create a new symlink for "libffi.so.5", such that "/usr/lib64/libffi.so.5" should point to the new one, "libffi.so.6.0.1".
ie,the final set up should look like:- "/usr/lib64/libffi.so.5 -> libffi.so.6.0.1"
Hope this helps.(I use Amazon Linux AMI based instances.)
This worked for me.
ln -s /usr/lib64/libffi.so.6 /usr/lib64/libffi.so.5

What do I do with this error when I run tests in rails?

using ruby1.9.2 rails3.1.0
I am working from my netbook, so it is not my usual dev environment. I cloned a repo that I was working with on my desktop early this week. Now when I run rake test I get this error in the terminal.
^[[1;5C/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn/autorun/minitest.rb:14:in `<top (required)>': MiniTest v1.6.0 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn.rb:13:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/railties-3.1.0/lib/rails/test_help.rb:19:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/Desktop/sa_clubbing/test/test_helper.rb:3:in `<top (required)>'
from /home/work/Desktop/sa_clubbing/test/unit/blog_post_test.rb:1:in `require'
from /home/work/Desktop/sa_clubbing/test/unit/blog_post_test.rb:1:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block (2 levels) in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `<main>'
/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn/autorun/minitest.rb:14:in `<top (required)>': MiniTest v1.6.0 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn.rb:13:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/railties-3.1.0/lib/rails/test_help.rb:19:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/Desktop/sa_clubbing/test/test_helper.rb:3:in `<top (required)>'
from /home/work/Desktop/sa_clubbing/test/functional/landing_page_controller_test.rb:1:in `require'
from /home/work/Desktop/sa_clubbing/test/functional/landing_page_controller_test.rb:1:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block (2 levels) in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `<main>'
Errors running test:units, test:functionals!
I followed the instruction and did gem install minitest , but still get the same result. Anyone know what to do here?
I just checked my gem list and it says minitest version 2.6.2 is installed. I don't know why the error is saying MiniTest v1.6.0 is out of date I am not using that version
I fixed it in the following way:
add in your Gemfile following gem, Then run bundle install
group :test do
gem 'turn', '< 0.8.3'
end
bundle exec rake test
Having a .rvmrc file in the project's root directory is handy for automatically setting the correct ruby/gemset. Also make sure your Gemfile/Gemfile.lock are using the correct version.
Here is how to fix it...
go to the root of your aplication and type:
gem install minitest
Then go to your gemfile located in the root of your app and add
gem 'minitest' at the bottom of the file.

Resources