Installation trouble on FreeBSD

Hello…

I am trying to install Dradis on FreeBSD, and having some trouble. I followed the guide listed here and was able to complete most of the build. When trying to start Dradis it seemed like it was missing specific versions of some gems, but now Im at a point that I am not sure how to proceed.

Here is the error I am getting:

# sh /usr/local/etc/rc.d/dradis start
WARN: Unresolved specs during Gem::Specification.reset:
      thor (< 2.0, >= 0.14.6)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/usr/local/lib/ruby/gems/2.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:34:in `block in setup': You have already activated activesupport 3.2.22, but your Gemfile requires activesupport 3.0.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
        from /usr/local/lib/ruby/gems/2.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:19:in `setup'
        from /usr/local/lib/ruby/gems/2.1/gems/bundler-1.10.5/lib/bundler.rb:127:in `setup'
        from /usr/local/dradis/server/config/boot.rb:8:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/2.1/rubygems/core_ext/kernel_require.rb:121:in `require'
        from /usr/local/lib/ruby/site_ruby/2.1/rubygems/core_ext/kernel_require.rb:121:in `require'
        from script/rails:35:in `<main>'

Here is what my gem list looks like:

# gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.2.22, 3.0.4)
actionpack (3.2.22, 3.0.4)
activemodel (3.2.22, 3.0.4)
activerecord (3.2.22, 3.0.4)
activeresource (3.2.22, 3.0.4)
activesupport (3.2.22, 3.0.4)
ansi (1.5.0)
arel (3.0.3, 2.0.10)
builder (3.0.4, 2.1.2)
bundler (1.10.5)
coffee-rails (3.2.2)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
erubis (2.7.0, 2.6.6)
execjs (2.5.2)
hike (1.2.3)
i18n (0.7.0)
journey (1.0.4)
jquery-rails (3.1.3)
json (1.8.3)
json_pure (1.8.2)
mail (2.5.4, 2.2.20)
mime-types (1.25.1)
minitest (5.7.0)
multi_json (1.11.1)
polyglot (0.3.5)
rack (1.6.4, 1.4.7, 1.2.8)
rack-cache (1.2)
rack-mount (0.6.14)
rack-ssl (1.4.1)
rack-test (0.6.3, 0.5.7)
rails (3.2.22, 3.0.4)
railties (3.2.22, 3.0.4)
rake (10.4.2)
rdoc (3.12.2)
RedCloth (4.2.9, 4.2.5)
sass (3.4.15)
sass-rails (3.2.6)
sprockets (2.2.3)
sqlite3 (1.3.10)
sqlite3-ruby (1.3.2)
thor (0.19.1, 0.14.6)
tilt (2.0.1, 1.4.1)
treetop (1.6.3, 1.4.15)
turn (0.9.7)
tzinfo (0.3.44)
uglifier (2.7.1)

As you can see, I have two versions of activesupport installed which seems to be giving it problems. I tried uninstalling activesupport 3.2.22, but it complained about dependencies. Not sure where to go from here?

Any help would be appreciated.

OK, I was able to get past this error by running bundle exec /usr/local/etc/rc.d/dradis start from /usr/local/dradis/server

When starting it complained about not finding /usr/local/dradis/server/config/database.yml so I made a copy of the corresponding database.yml.template file. Now Im getting a new message:

root:/usr/local/dradis/server # bundle exec /usr/local/etc/rc.d/dradis start
/usr/local/lib/ruby/gems/2.1/gems/RedCloth-4.2.5/lib/redcloth.rb:10:in `<top (required)>': Use RbConfig instead of obsolete and deprecated Config.
/usr/local/lib/ruby/gems/2.1/gems/RedCloth-4.2.5/lib/redcloth.rb:10:in `<top (required)>': Use RbConfig instead of obsolete and deprecated Config.
=> Booting WEBrick
=> Rails 3.0.4 application starting in production on http://127.0.0.1:3004
/usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/connection_adapters/sqlite_adapter.rb:295:in `table_structure': Could not find table 'categories' (ActiveRecord::StatementInvalid)
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/connection_adapters/sqlite_adapter.rb:186:in `columns'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:679:in `columns'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:692:in `column_names'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:705:in `column_methods_hash'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:1035:in `block in all_attributes_exists?'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:1034:in `each'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:1034:in `all?'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:1034:in `all_attributes_exists?'
        from /usr/local/lib/ruby/gems/2.1/gems/activerecord-3.0.4/lib/active_record/base.rb:983:in `method_missing'
        from /usr/local/dradis/server/vendor/plugins/html_export/init.rb:4:in `block in <class:Plugin>'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/plugin.rb:81:in `eval'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/plugin.rb:81:in `block in <class:Plugin>'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/initializable.rb:25:in `instance_exec'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/initializable.rb:25:in `run'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/initializable.rb:50:in `block in run_initializers'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/initializable.rb:49:in `each'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/initializable.rb:49:in `run_initializers'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/application.rb:134:in `initialize!'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/application.rb:77:in `method_missing'
        from /usr/local/dradis/server/config/environment.rb:5:in `<top (required)>'
        from /usr/local/dradis/server/config.ru:3:in `require'
        from /usr/local/dradis/server/config.ru:3:in `block in <main>'
        from /usr/local/lib/ruby/gems/2.1/gems/rack-1.2.8/lib/rack/builder.rb:46:in `instance_eval'
        from /usr/local/lib/ruby/gems/2.1/gems/rack-1.2.8/lib/rack/builder.rb:46:in `initialize'
        from /usr/local/dradis/server/config.ru:1:in `new'
        from /usr/local/dradis/server/config.ru:1:in `<main>'
        from /usr/local/lib/ruby/gems/2.1/gems/rack-1.2.8/lib/rack/builder.rb:35:in `eval'
        from /usr/local/lib/ruby/gems/2.1/gems/rack-1.2.8/lib/rack/builder.rb:35:in `parse_file'
        from /usr/local/lib/ruby/gems/2.1/gems/rack-1.2.8/lib/rack/server.rb:162:in `app'
        from /usr/local/lib/ruby/gems/2.1/gems/rack-1.2.8/lib/rack/server.rb:253:in `wrapped_app'
        from /usr/local/lib/ruby/gems/2.1/gems/rack-1.2.8/lib/rack/server.rb:204:in `start'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/commands/server.rb:65:in `start'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/commands.rb:30:in `block in <top (required)>'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/commands.rb:27:in `tap'
        from /usr/local/lib/ruby/gems/2.1/gems/railties-3.0.4/lib/rails/commands.rb:27:in `<top (required)>'
        from script/rails:36:in `require'
        from script/rails:36:in `<main>'

I feel like Im missing something here. Any help would be appreciated…

Oh, I should add I did try to init the database, but it failed:

root:/usr/local/dradis/server # bundle exec /usr/local/etc/rc.d/dradis initdb
/usr/local/lib/ruby/gems/2.1/gems/RedCloth-4.2.5/lib/redcloth.rb:10:in `<top (required)>': Use RbConfig instead of obsolete and deprecated Config.
/usr/local/lib/ruby/gems/2.1/gems/RedCloth-4.2.5/lib/redcloth.rb:10:in `<top (required)>': Use RbConfig instead of obsolete and deprecated Config.
rake aborted!
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
/usr/local/dradis/server/Rakefile:13:in `<top (required)>'
(See full trace by running task with --trace)

I do have rdoc 3.12.2 installed.