Hi,
I'm trying to install foreman 1.4 and the plugin foreman_content on a
CentOS 6.5.
After installing foreman with foreman-installer everything is working fine.
I then follow the Foreman 1.4 manual (Advanced: installing from gems), to
install the foreman_content plugin, because foreman_content is not
available as a RPM.
I do this by running the following commands as root:
scl enable ruby193 bash
gem install --ignore-dependencies foreman_content
Fetching: foreman_content-0.4.gem (100%)
Successfully installed foreman_content-0.4
1 gem installed
Installing ri documentation for foreman_content-0.4…
Installing RDoc documentation for foreman_content-0.4…
echo "gem 'foreman_content' >
/usr/share/foreman/bundler.d/Gemfile.local.rb
I need to install some extra dependencies for foreman_content.
gem install --ignore-dependencies runcible -v "0.4.10"
Fetching: runcible-0.4.10.gem (100%)
Successfully installed runcible-0.4.10
1 gem installed
Installing ri documentation for runcible-0.4.10…
Installing RDoc documentation for runcible-0.4.10…
gem install --ignore-dependencies deface
Fetching: deface-1.0.0.gem (100%)
Successfully installed deface-1.0.0
1 gem installed
Installing ri documentation for deface-1.0.0…
Installing RDoc documentation for deface-1.0.0…
gem install --ignore-dependencies nokogiri -v "1.6.0"
Building native extensions. This could take a while…
Successfully installed nokogiri-1.6.0
1 gem installed
Installing ri documentation for nokogiri-1.6.0…
Installing RDoc documentation for nokogiri-1.6.0…
gem install --ignore-dependencies colorize -v "0.5.8"
Fetching: colorize-0.5.8.gem (100%)
Successfully installed colorize-0.5.8
1 gem installed
Installing ri documentation for colorize-0.5.8…
Installing RDoc documentation for colorize-0.5.8…
After installing these deps and restarting httpd I get following error.
Web application could not be started
undefined method setting_options' for module
HomeHelper' (NameError)
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/module/aliasing.rb:31:in
`alias_method'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/module/aliasing.rb:31:in
`alias_method_chain'
/opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/app/models/concerns/content/home_helper.rb:4:in
`block in <module:HomeHelper>'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in
`class_eval'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in
`append_features'
/opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/lib/content/engine.rb:24:in
`include'
/opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/lib/content/engine.rb:24:in
`block in <class:Engine>'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:440:in
`_run__3955485975989203156__prepare__960248487373364547__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
`__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
`_run_prepare_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in
`run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in
`prepare!'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in
`prepare!'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in
`block in <module:Finisher>'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
`instance_exec'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
`run'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in
`block in run_initializers'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
`each'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
`run_initializers'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in
`initialize!'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing' /usr/share/foreman/config/environment.rb:5:in
<top (required)>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require'
config.ru:3:in `block in <main>'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in
`instance_eval'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in
initialize' config.ru:1:in
new'
config.ru:1:in `<main>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`eval'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`preload_app'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in
`<module:App>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in
`<module:PhusionPassenger>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in
`<main>'
Does anyone has any idea what to do next?