Chef Server not finding require entries in init.rb


Followed web page on “Installing Chef Server Manually”,, pretty
closely in installation on CentOS 6.0.

couchdb installed and is running.

rabbitmq-server installed and is running.

chef-expander installed and is running.

chef-solr installed and is running.

When trying to start chef-server, I get the following:

[a-ckeagle@chelewedev004 bin]$ sudo chef-server -N -e production
[sudo] password for a-ckeagle:
Merb root at: /usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2
Loading init file from ./config/init.rb
require': no such file to load -- merb-assets (LoadError) from /usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb:20 from /usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:inload’
load_initfile' from /usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:inrun’
run' from /usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:inbootup’
start' from /usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:instart’
from /usr/bin/chef-server:19:in `load’
from /usr/bin/chef-server:19

Line 20 in init.rb is require ‘merb-assets’.

Here is what I am seeing:

ls -l /usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb -rw-rw-r-- 1 root root 2869 Dec 21 10:32 /usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb ls -l /usr/lib64/ruby/gems/1.8/gems/merb-assets-1.1.3/lib
total 8
drwxr-xr-x 2 root root 4096 Dec 20 16:11 merb-assets
-rw-r–r-- 1 root root 874 Dec 20 16:11 merb-assets.rb

They both have the same root directory, /usr/lib64/ruby/gems/1.8/gems. Are
there an extra entry or extra entries I should have in init.rb to make the
server find all 21 of it’s requires?

I have also written init.d scripts for chef-expander, chef-solr, chef-server,
and chef-webui so they will start at boot time. The couchdb and
rabbitmq-server init.d scripts were part of each of their installationa.
Copied them with minor changes.
Made chef-server required-start chef-expander and chef-solr. Made chef-webui
required-start chef-server. Made chef-solr required-start chef-expander.
Should I also make chef-expander required-start rabbitmq-server? Then the
other changes to start the right program.

It looks like it is close. Just need to work out these last items.