I'm trying to build the Yetus website content according to the
instructions in asf-site-src/source/contribute/website.md, but I'm running
into some problems. Can anyone please help? Warning: I don't know Ruby,
so there is a high probability I'm doing something stupid.
One thing I discovered is that there is a dependency on ruby-devel. That
part became obvious when the "bundle install" command failed due to a
missing Ruby header. We probably want to document that dependency.
After that, I made progress with the install, but trying to run middleman
showed that it couldn't find the command:
bundle exec middleman
bundler: command not found: middleman
Install missing gem executables with `bundle install`
That's despite bundle seemingly reporting that middleman is installed just
fine:
bundle install
...
Using middleman 3.4.0
Bundle complete! 8 Gemfile dependencies, 56 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
bundle show middleman
/home/cnauroth/.gem/ruby/gems/middleman-3.4.0
Searching the web showed a few reports that some environments needed
middleman installed globally for it to work correctly, so I followed a
recommendation to try repeating the installation as root. After that,
middleman can be found, but I'm getting a bizarre ruby backtrace:
bundle exec middleman version
/home/cnauroth/.gem/ruby/bundler/gems/redcarpet-47d7c4e5ab23/lib/redcarpet.
rb:1:in `require': cannot load such file -- redcarpet.so (LoadError)
from
/home/cnauroth/.gem/ruby/bundler/gems/redcarpet-47d7c4e5ab23/lib/redcarpet.
rb:1:in `<top (required)>'
from
/home/cnauroth/.gem/ruby/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in
`require'
from
/home/cnauroth/.gem/ruby/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in
`block (2 levels) in require'
from
/home/cnauroth/.gem/ruby/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in
`each'
from
/home/cnauroth/.gem/ruby/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in
`block in require'
from
/home/cnauroth/.gem/ruby/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in
`each'
from
/home/cnauroth/.gem/ruby/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in
`require'
from /home/cnauroth/.gem/ruby/gems/bundler-1.11.2/lib/bundler.rb:99:in
`require'
from
/home/cnauroth/.gem/ruby/gems/middleman-core-3.4.0/lib/middleman-core/load_
paths.rb:37:in `setup_load_paths'
from
/home/cnauroth/.gem/ruby/gems/middleman-core-3.4.0/bin/middleman:10:in
`<top (required)>'
from /usr/local/bin/middleman:23:in `load'
from /usr/local/bin/middleman:23:in `<main>'
There is mention of a redcarpet.so library in that message, so I tried
"gem install redcarpet". That seems to install fine, but it doesn't
resolve the middleman backtrace.
Has anyone seen this before?
--Chris Nauroth