Error with Tar2RubyScript - ruby-on-rails

I was following this How-To on Distributing Rails Applications
http://www.erikveen.dds.nl/distributingrubyapplications/rails.html
However, by the time I do:
$ ruby tar2rubyscript.rb desktopApp/
The output is:
tar2rubyscript.rb:623:in `replace': can't modify frozen String (RuntimeError)
from tar2rubyscript.rb:623:in `block in <main>'
from tar2rubyscript.rb:577:in `block in newlocation'
from tar2rubyscript.rb:505:in `block in newlocation'
from tar2rubyscript.rb:472:in `newlocation'
from tar2rubyscript.rb:505:in `newlocation'
from tar2rubyscript.rb:577:in `newlocation'
from tar2rubyscript.rb:621:in `<main>'

Related

Rails - Ruby 3.1.1 will not load on CentOS but okay on OSX

I have a rails app that runs fine on my development iMac (Ventura). I pushed to production CentOS7. It bundled up fine but when trying to to assets precompile I get the error below. I have tried, removing lock file and re-bundling, updating bundler, did gem update and did yum update on server. I get the following when doing rake assets:clean precompile and I see similar error in apache log as well. I am running rails 7.0.4.2 and ruby 3.1.1. I need some guidance on how to resolve.
rake assets:clean precompile
rake aborted!
LoadError: cannot load such file -- Version
<internal:/usr/local/rvm/rubies/ruby-3.1.1/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/local/rvm/rubies/ruby-3.1.1/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/usr/local/rvm/gems/ruby-3.1.1/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
/admin/bin/rails/catering_bk/config/initializers/active_admin.rb:290:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-3.1.1/gems/activeadmin-2.13.1/lib/active_admin.rb:68:in `setup'
/admin/bin/rails/catering_bk/config/initializers/active_admin.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/engine.rb:667:in `load'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/engine.rb:667:in `block in load_config_initializer'
/usr/local/rvm/gems/ruby-3.1.1/gems/activesupport-7.0.4.2/lib/active_support/notifications.rb:208:in `instrument'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/engine.rb:666:in `load_config_initializer'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/engine.rb:619:in `each'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/engine.rb:619:in `block in <class:Engine>'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/initializable.rb:32:in `instance_exec'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/initializable.rb:32:in `run'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/initializable.rb:50:in `each'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/initializable.rb:50:in `tsort_each_child'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/initializable.rb:60:in `run_initializers'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/application.rb:372:in `initialize!'
/admin/bin/rails/catering_bk/config/environment.rb:5:in `<top (required)>'
<internal:/usr/local/rvm/rubies/ruby-3.1.1/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/local/rvm/rubies/ruby-3.1.1/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/usr/local/rvm/gems/ruby-3.1.1/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/application.rb:348:in `require_environment!'
/usr/local/rvm/gems/ruby-3.1.1/gems/railties-7.0.4.2/lib/rails/application.rb:511:in `block in run_tasks_blocks'
/usr/local/rvm/gems/ruby-3.1.1/gems/sprockets-rails-3.4.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
/usr/local/rvm/gems/ruby-3.1.1/bin/ruby_executable_hooks:22:in `eval'
/usr/local/rvm/gems/ruby-3.1.1/bin/ruby_executable_hooks:22:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
As noted above. I tried
Remove lock file and bundle again.
gem update
yum update
Also to note this is also an older app that was upgraded to be in compliance with Veracode. It works perfectly on OSX, so the issue must be within CentOS.

Rails, rake db:migrate gives me cannot load such file -- sqlite3/sqlite3_native error

I have just downloaded rails project from another computer. I have installed on my PC RubyMine, Rails, Ruby, DevKit, SQLite3 (Last versions for windows). I have installed all my gemfiles via console. When I run any rake command from console it throws me this error:
D:\SINOD\Programs\RUBY\Ruby_Projects\attendance\bin\rails
Error:D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': Could not load 'active_record/connection_adapters/sqlite3_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. (LoadError)
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/connection_specification.rb:175:in `spec'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_handling.rb:50:in `establish_connection'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activerecord-4.2.0/lib/active_record/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:27:in `each'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activerecord-4.2.0/lib/active_record/railtie.rb:116:in `block in <class:Railtie>'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0 /gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:345:in `each'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:345:in `call'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
Error: from D:/SINOD/Programs/RUBY/Ruby_Projects/attendance/config/environment.rb:5:in `<top (required)>'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:328:in `require_environment!'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:128:in `generate_or_destroy'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:50:in `generate'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
Error: from D:/SINOD/Programs/RUBY/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
Error: from D:/SINOD/Programs/RUBY/Ruby_Projects/attendance/bin/rails:4:in `require'
Error: from D:/SINOD/Programs/RUBY/Ruby_Projects/attendance/bin/rails:4:in `<main>'
Read the error carefully. It states:
Could not load 'active_record/connection_adapters/sqlite3_adapter'.
Make sure that the adapter in config/database.yml is valid. If you use
an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add
the necessary adapter gem to the Gemfile. (LoadError)
This clearly shows your application is not configured properly.
As you mentioned "I have just downloaded rails project from another computer", there is also a possibility you may have not installed Gems.
Assuming Ruby and bundler is setup in your computer, follow these steps:
Configure your application. Error points there is a database configuration issue.
run bundle install
Once you have done all this:
Find your sqlite3 gemspec file. One example is
C:\Ruby21\lib\ruby\gems\2.1.0\specifications
You should adjust according with your Rubygem path and sqlite3 version. Edit the file above and look for the following line
s.require_paths=["lib"]
change it to
s.require_paths= ["lib/sqlite3_native"]
reference: https://stackoverflow.com/a/17762417/3035830
I'm not sure where the change happened, I can't find any documentation on it, but it seems that in ruby 2.2 something has changed with the way gems with native extensions are installed and they are now supposed to be providing pre-compiled binaries in their gem packages. In previous versions of ruby, if you had rdevkit installed then the native extensions could usually be built locally (with a few exceptions like mysql).
I had this same problem and worked around it by uninstalling ruby 2.2 and installing ruby 2.1 (with rubyinstaller). I'll come back and try 2.2 again later when most gems are supporting it.

NoMethodError on Rails Vulcanize with Rubber

I am very new to rails and am trying to get my app setup via rubber. I was able to get a test app up without issue but am running into some sort of error when actually trying to vulcanize my built app. Tried to search high and low to no avail. Anyone have any idea what I need to do to get rid of the issue? Much appreciated.
localhost:thiswins markhayden$ rubber vulcanize complete_passenger_nginx_mysql
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.2.4/lib/rubber/commands/vulcanize.rb:53:in `block in <class:Vulcanize>': undefined method `-' for "complete_passenger_nginx_mysql":String (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/attribute/declaration.rb:33:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/attribute/declaration.rb:33:in `block in define_writer_for'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:13:in `block (2 levels) in parse_parameters'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:12:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:12:in `block in parse_parameters'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:10:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:10:in `parse_parameters'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/command.rb:55:in `parse'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/command.rb:68:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/subcommand/execution.rb:11:in `execute'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/command.rb:69:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/clamp-0.6.0/lib/clamp/command.rb:127:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.2.4/bin/rubber:17:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/rubber:19:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/rubber:19:in `<main>'
from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
We had this same problem with:
rubber vulcanize complete_passenger_postgresql
It seems to be an error in the gem at rubber/commands/vulcanize.rb on Line 53 because it tries to subtract an array from a string which is illegal. I changed it to (as sudo):
invalid = (arg.kind_of?(String) ? [arg] : arg) - VulcanizeThor.valid_templates
This allowed setup however I am not sure if the vulcanization did more than it was supposed to have because I am also new to Rubber. This was a drastic measure so be careful by trying it on a non-production environment first!

uninitialized constant when migrating rails from ubuntu to osx

i'm trying to move my rails app from ubuntu to osx. when running rspec, i get the following obscure error:
/Users/josh/dev/myproject/spec/support/devise.rb:3:in `block in <top (required)>': uninitialized constant RequestHelpers (NameError)
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core.rb:92:in `configure'
from /Users/josh/dev/myproject/spec/support/devise.rb:1:in `<top (required)>'
from /Users/josh/dev/myproject/spec/spec_helper.rb:21:in `block (2 levels) in <top (required)>'
from /Users/josh/dev/myproject/spec/spec_helper.rb:21:in `each'
from /Users/josh/dev/myproject/spec/spec_helper.rb:21:in `block in <top (required)>'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/spork-0.9.2/lib/spork.rb:24:in `prefork'
from /Users/josh/dev/myproject/spec/spec_helper.rb:4:in `<top (required)>'
from /Users/josh/dev/myproject/spec/controllers/comments_controller_spec.rb:1:in `require'
from /Users/josh/dev/myproject/spec/controllers/comments_controller_spec.rb:1:in `<top (required)>'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:66:in `rescue in run'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:62:in `run'
from /Users/josh/.rvm/gems/ruby-1.9.3-p286#myproject/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun'
everything works nicely in Ubuntu, so i guess it must be environmental. Any ideas where to start digging?
thanks
- Josh
EDIT: no idea why, but the file request_helpers.rb could not be found by rake. moving it elsewhere resolved the issue.
This hardly seems an operating system problem, much rather a matter of configuration. Make sure your environemnt is the same in terms of:
using rvm installed the same way
having all the needed gems in the Gemfile
using bundle to execute rspec
using the same version of everything.
By te way this is not an obscure message, it's in fact pretty clear:
uninitialized constant RequestHelpers (NameError)
so the spec/support/devise.rb file can't find the needed class.
Have you written that file? If not, how did you generate it? Repeat the procedure to generate it (probably rake something or rails generate something) and it will be OK.

Unknown encoding error on running rake

I have been writing a Rails app and only now started bringing it under
test coverage. I have written a basic test and when I execute the
'rake' command at the command prompt, I get the following errors:
E:\testapp>rake
(in E:/testapp)
E:/Ruby192/bin/ruby.exe: unknown encoding name - \Ruby192\lib
(RuntimeError)
E:/Ruby192/bin/ruby.exe: unknown encoding name - \Ruby192\lib
(RuntimeError)
E:/Ruby192/bin/ruby.exe: unknown encoding name - \Ruby192\lib
(RuntimeError)
Errors running test:units, test:functionals, test:integration!
When I run rake test:units, I get
E:\testapp>rake test:units
(in E:/testapp)
E:/Ruby192/bin/ruby.exe: unknown encoding name - \Ruby192\lib
(RuntimeError)
rake aborted!
Command failed with status (1): [E:/Ruby192/bin/ruby.exe -I"lib;test"
"E:/R...]
E:/Ruby192/lib/ruby/1.9.1/rake.rb:993:in `block in sh'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:1008:in `call'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:1008:in `sh'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:1092:in `sh'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:1027:in `ruby'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:1092:in `ruby'
E:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/test_unit/testing.rake:26:in `block (2 levels) in define'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:1110:in `verbose'
E:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/test_unit/testing.rake:11:in `block in define'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `call'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `each'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `execute'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:595:in `block ininvoke_with_call_chain'
E:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:581:in `invoke'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) intop_level'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `each'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:2058:in`standard_exception_handling'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
E:/Ruby192/lib/ruby/1.9.1/rake.rb:1992:in `run'
E:/Ruby192/bin/rake:31:in `<main>'
I have tried searching on the Net to no success.. I initially assumed
something was wrong with my test code, but I get the same errors with
a new rails app!!
I am using Rails 3.0.5 on Ruby 1.9.2p180 on Windows Vista. On a friend's suggestion, I
installed RubyInstaller and used DevKit, but I still get the same
error.
Any inputs?
Looking at the path it seems you are pointing to ruby 1.9.1
E:/Ruby192/lib/ruby/1.9.1/rake.rb
I'm not familiar with Windows but something must still be pointing at the old Ruby version

Resources