rhc set-env gives NoMethodError - openshift

When trying to set or list environment variables using rhc, this error shows up instead. I tried reinstalling the gem, but this doesn't resolve the error.
*****#DESKTOP-RMLK74E ~> rhc set-env CREDENTIALS-FILE=~/app-root/data/credentials.json
/home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/helpers.rb:580:in `exe?': undefined method `split' for nil:NilClass (NoMethodError)
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/git_helpers.rb:37:in `block in discover_git_executable'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/git_helpers.rb:36:in `select'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/git_helpers.rb:36:in `discover_git_executable'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/git_helpers.rb:15:in `has_git?'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/git_helpers.rb:85:in `git_config_get'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/context_helper.rb:138:in `from_local_git'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/commands.rb:311:in `block in fill_arguments'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/commands.rb:302:in `each'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/commands.rb:302:in `fill_arguments'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/commands.rb:281:in `block (3 levels) in to_commander'
from /home/*****/.gem/ruby/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
from /home/*****/.gem/ruby/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
from /home/*****/.gem/ruby/gems/commander-4.2.1/lib/commander/command.rb:155:in `run'
from /home/*****/.gem/ruby/gems/commander-4.2.1/lib/commander/runner.rb:419:in `run_active_command'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/command_runner.rb:72:in `run!'
from /home/*****/.gem/ruby/gems/commander-4.2.1/lib/commander/delegates.rb:8:in `run!'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/lib/rhc/cli.rb:37:in `start'
from /home/*****/.gem/ruby/gems/rhc-1.38.4/bin/rhc:20:in `<top (required)>'
from /home/*****/bin/rhc:23:in `load'
from /home/*****/bin/rhc:23:in `<main>'

Using Ruby version 1.9.3 fixes the problem. Hope that RedHat releases a 2.2+ compatible version eventually.

Related

rails server not starting on rails 3.1.2

I am using rails 3.2.1 with ruby 1.9.3 on ubuntu 13.10 with rbenv I hace everything good but when I try to start the server it gives an error anybody who know anything related to this please help. In a great need.
=> Booting WEBrick
=> Rails 4.2.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- uuid (LoadError)
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /home/ahmed/Insoshi-Rails-3/config/initializers/custom_requires.rb:17:in `<top (required)>'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/notifications.rb:166:in `instrument'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/engine.rb:651:in `load_config_initializer'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/engine.rb:615:in `each'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `each'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:180:in `each'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `public_send'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `method_missing'
from /home/ahmed/Insoshi-Rails-3/config/environment.rb:5:in `<top (required)>'
from /home/ahmed/Insoshi-Rails-3/config.ru:3:in `require'
from /home/ahmed/Insoshi-Rails-3/config.ru:3:in `block in <main>'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/builder.rb:55:in `instance_eval'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/builder.rb:55:in `initialize'
from /home/ahmed/Insoshi-Rails-3/config.ru:in `new'
from /home/ahmed/Insoshi-Rails-3/config.ru:in `<main>'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/builder.rb:49:in `eval'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/builder.rb:49:in `new_from_string'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/builder.rb:40:in `parse_file'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/server.rb:208:in `app'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands/server.rb:61:in `app'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/server.rb:336:in `wrapped_app'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands/server.rb:78:in `start'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/ahmed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>
It is possible that all dependencies are not installed. If you have not used rvm to install ruby, you should try using it to install your ruby version.
rvm install 1.9.3
or
rvm reinstall 1.9.3
refer https://rvm.io/rvm/install for step by step instructions.

I am having infinite problems trying to install and run Jekyll

I'm trying to install and setup Jekyll as use it for github pages but is getting very complicated, I have to add that I just started programming few months ago so maybe I cannot see the mistake as easy.
Followed the instructions on website:
~ $ gem install jekyll
~ $ jekyll new myblog
~ $ cd myblog
~/myblog $ jekyll serve
# => Now browse to localhost:4000
The part of jekyll serve fails:
Generating... Liquid Exception: cannot load such file -- yajl/2.0/yajl i
n _posts/2014-03-21-welcome-to-jekyll.markdown
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': c
annot load such file -- yajl/2.0/yajl (LoadError)
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/yajl-ruby-1.1.0-x86-mingw32/lib
/yajl/yajl.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/yajl-ruby-1.1.0-x86-mingw32/lib
/yajl.rb:1:in `<top (required)>'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:i
n `require'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:i
n `rescue in require'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:i
n `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/pygments.rb-0.5.4/lib/pygments/
popen.rb:3:in `<top (required)>'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/pygments.rb-0.5.4/lib/pygments.
rb:1:in `<top (required)>'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/tags/hi
ghlight.rb:52:in `render_pygments'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/tags/hi
ghlight.rb:45:in `render'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/liquid-2.5.5/lib/liquid/block.r
b:106:in `block in render_all'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/liquid-2.5.5/lib/liquid/block.r
b:93:in `each'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/liquid-2.5.5/lib/liquid/block.r
b:93:in `render_all'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/liquid-2.5.5/lib/liquid/block.r
b:82:in `render'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/liquid-2.5.5/lib/liquid/templat
e.rb:124:in `render'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/liquid-2.5.5/lib/liquid/templat
e.rb:132:in `render!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/convert
ible.rb:88:in `render_liquid'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/convert
ible.rb:150:in `do_layout'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/post.rb
:259:in `render'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/site.rb
:239:in `block in render'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/site.rb
:238:in `each'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/site.rb
:238:in `render'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/site.rb
:39:in `process'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/command
.rb:18:in `process_site'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/command
s/build.rb:23:in `build'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/lib/jekyll/command
s/build.rb:7:in `process'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-1.4.3/bin/jekyll:97:in `
block (2 levels) in <top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.1.6/lib/commander/c
ommand.rb:180:in `call'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.1.6/lib/commander/c
ommand.rb:180:in `call'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.1.6/lib/commander/c
ommand.rb:155:in `run'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.1.6/lib/commander/r
unner.rb:422:in `run_active_command'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.1.6/lib/commander/r
unner.rb:66:in `run!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.1.6/lib/commander/d
elegates.rb:8:in `run!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.1.6/lib/commander/i
mport.rb:10:in `block in <top (required)>'
Googling I found out that is necesary to install yajl-ruby gem, I do it, try again, same error so I try installing also gem pygments and win32-api but it keeps the same.
Also I tried to uninstall the current version 1.4.3 and installed the previous one 1.4.2 but the same problem appears.
Any thoughts?
If you are specifically aiming to use Jekyll with GitHub pages you can use their gh-pages Gem, which includes all the dependencies.
Try this install guide.

Rails MySQL Connection Problems

I am having an issue connecting to the mysql database using rails. I'm a newbie to rails but I have tried the guide here:
rails + MySQL on OSX: Library not loaded: libmysqlclient.18.dylib
and this still does not work. I believe I have two installations of mysql installed and this is confusing rails.
I have MAMP installed with it's own mysql and I also have the rails mysql2 gem installed. When I follow the steps from the link provided above, I think this is using the MAMP mysql install instead of the mysql2 install that I have with rails gems so it isn't recognizing it.
Is there any way I can consolidate the two mysql's into one? Or is it easier to modify rails so it can see the mysql2 gem?
Here is my error:
~/Sites/RoR3-Essentials/simple_cms ->rails s
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://localhost:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in
`connect': Unknown database 'simple_cms_development' (Mysql2::Error)
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
from /Users/markmilly/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
from /Users/markmilly/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.13/lib/active_record/railtie.rb:88:in `block in <class:Railtie>'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/markmilly/Sites/RoR3-Essentials/simple_cms/config/environment.rb:5:in `<top (required)>'
from /Users/markmilly/Sites/RoR3-Essentials/simple_cms/config.ru:3:in `require'
from /Users/markmilly/Sites/RoR3-Essentials/simple_cms/config.ru:3:in `block in <main>'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/markmilly/Sites/RoR3-Essentials/simple_cms/config.ru:in `new'
from /Users/markmilly/Sites/RoR3-Essentials/simple_cms/config.ru:in `<main>'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /Users/markmilly/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
#markmilly Answer to your last comment:
'rake db:create' creates the db that you specified in your config/database.yml file.
It will create the db for the current RAILS_ENV you're on. If the environment is not specified it will default to the development and test db's.
I see this answer is a bit late, but it might help someone else.

Issue generating ruby scaffolding

so I have set up my database and trying to generate some scaffolding for the app I made. I get this error, and I am a bit confused. Any advice? Thanks!
rails generate scaffold product title:string description:text image_url:string
/Users/Cameron/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 18 column 3 (Psych::SyntaxError)
from /Users/Cameron/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
from /Users/Cameron/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych.rb:151:in `parse'
from /Users/Cameron/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych.rb:127:in `load'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application/configuration.rb:115:in `database_configuration'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/base.rb:720:in `<top (required)>'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/railtie.rb:88:in `block in <class:Railtie>'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/Cameron/depot/config/environment.rb:5:in `<top (required)>'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application.rb:103:in `require'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
from /Users/Cameron/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:25:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
This is likely a problem in your config/database.yml file. The error is from Psych, which is Ruby's YAML parsing engine. I don't know of any other YAML files that are read during a rails g scaffold, and I can reproduce that failure by introducing a typo into my database.yml file.
There are some online YAML validators you can paste your file into for help debugging it. Or add it to your question above if you can't find the problem.

Sunspot running on windows with rails

I followed the instruction and installed the sunspot_rails gem
when I do
bundle exec rake sunspot:solr:start
it tells me
This command is not supported on i386-mingw32. Use rake sunspot:solr:run to run Solr in the foreground.
when I use that command I get
** Invoke sunspot:solr:run (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:solr:run
The syntax of the command is incorrect.
rake aborted!
You need a Java Runtime Environment to run the Solr server
C:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/server.rb:202:in `ensure_java_installed'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/server.rb:27:in `initialize'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/tasks.rb:23:in `new'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/tasks.rb:23:in `block (3 levels) in <top (required)>'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
C:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
C:/Ruby192/lib/ruby/gems/1.9.1/bin/rake:19:in `load'
C:/Ruby192/lib/ruby/gems/1.9.1/bin/rake:19:in `<main>'
Tasks: TOP => sunspot:solr:run
I am running windows 7 x64.
sunspot won't run on windows?
solved..
Thought it was a java issue, but even after I installed java it won't work.
I found the answer (which apparently shouldn't be an issue with latest push of sunspot..)
the latest push fixed the issue
https://github.com/sunspot/sunspot/commit/721d3419492852533764d58f2c7f398687891a94
since bundler apparently didn't fetch me the latest, I changed it manually and it now works..